Search This Blog

Tuesday, September 18, 2012

Impulse Mode Setup

Impulse Mode

As we all know, one of the most profitable types of Market is the Impulse Mode.
Once the impulse mode is established, there are lower than average or not pullbacks at all, so it is very difficult to enter the market until the move is finished.
This is the reason why it is so important to determine when the market is ready to start an impulsive move and get into the last pullback.
The definition of this rule is critical to avoid to take a lot of fakes moves, but even taking several failures, the profit potential is so big that compensates taking several loses before the final winner.

The rule I use to define when a market is about to start a trending mode is the Bollinger Crossover and it works as follows ;
We need a fast moving average and a slow Bollinger Band. And the the settings we must find are those that make the fast moving average to stay inside of he Bollinger on sideways and even slow trending markets.
When we get a Bollinger crossover ( Fast moving average crossing outside of the Bollinger Band) , then the setup is trade ready in the direction of the crossover, and the entry is a limit order at the middle of the band
See attached picture :


I created a set of Indicators to trade this setup :
PM_Bollinger_XO : It draws vertical lines and triggers audible and text alerts at crossovers. It is possible to filter only the first signal on each direction ( like on the picture )
PM_Trend : It paints bar colors according to the setup

For those who like doing research ( like me ) or auto trading a setup, I also created the strategy PM_Impulse_v2 :


I will post my research on different markets here and if you want to share any setting, info , comment or suggestion, please feel free to do it...

Regards,
Pablo Maglio
www.TheIndicatorStore.com

Thursday, September 6, 2012

Trading a Moving Average

Is it possible to define a trade system only with a moving average (MA) ?
That would be something like this ;
If price is above the MA then we place a limit order at its price value...
If price is below, then we place a sell limit at the MA price value...
We could also define a zone where no trades should be placed...
...let say, while price is too close the MA, then we have no trend ; so no trades.
If price goes far enough from the MA, then we have a defined trend, so we start chasing the MA.
Sounds easy...but ;
Can we find a combination of timeframe and period of MA that produces results ?

I created a long time ago a strategy that exploits that edge, it is called PM_EMA and its first purpose was just that ; find good moving averages to work with...

Using the Strategy Analyzer Tool on Ninjatrader we can run an optimization process where we test the strategy using a range of moving averages, and then create a chart where we can get the PnL vs period ( see attached picture )


The horizontal axis represents the period of an exponential moving average, the histogram is the Profit/Loss of trading it with fixed target and stop. The red line is the number of trades ( its value is on the right vertical axis ).
So we must find the best spots where the profit is maximized and the number of trades is low enough to cover the comisions...

I started this thread to all those followers as me to discuss the best settings we find about this setup.
Regards,
Pablo

Tuesday, August 21, 2012

Introducción a Sistemas de Tendencia

La mayoría de los Sistemas actuales de Trading utilizan uno o varios indicadores dedicados y reglas complejas. Muchas veces es necesario automatizarlos para poder seguirlos sin cometer errores. Para un principiante, lo mejor es empezar con un Sistema que utilice reglas claras y fáciles de aprender y seguir. En esta nota vamos a desarrollar un Sistema que opera en momentos que hay Tendencia definida y utiliza indicadores convencionales, de los que cualquier plataforma ofrece. Para seguir este sistema vamos a necesitar Bandas de Bollinger y Medias Exponenciales. Con este sistema no solo podremos definir la tendencia, sino también cuantificarla e incluso detectar cuando el mercado analizado pasa de un movimiento de tendencia fuerte a completamente impulsivo. Los movimientos impulsivos son los que más relación Ganancia/Riesgo ofrecen, y usualmente conviene operarlos con trailing stops en lugar de Objetivos fijos. A continuación veremos la confección del grafico para seguir este sistema. Dado un Mercado y un Marco de Tiempo comenzamos por agregar al gráfico 3 Bandas Exponenciales de Bollinger con Periodo 200 y Número de Desvío Standard 0.5 , 1 y 2. Luego agregamos una Media Exponencial Rápida de Periodo 17.

tabla 1
 tabla 1


Mientras la Media Exponencial rápida de periodo 17 “EMA(17)”se mueva dentro de la banda menor, el sistema está en modo neutral, y es un indicio de que el Mercado esta en consolidación. En cuanto la EMA(17) se salga de la primer banda, el sistema entra en modo tendencia ; Si superó la banda superior la tendencia es alcista, si superó la banda inferior, la tendencia es a la baja. En un caso simple de tendencia alcista, donde la EMA(17) no va mucho mas lejos de la primer banda sin llegar a atravesar marcadamente la segunda banda, la entrada de compra clásica es en la mitad de la banda, o sea en la EMA(200) con un Stop promedio ubicado entre la primer y segunda banda ; 

tabla 2
 tabla 2


Los objetivos también pueden determinarse con las Bandas de Bollinger, como se ve en el grafico adjunto, siendo cada una de las Bandas subsiguientes un posible objetivo. Para el caso particular de este ejemplo, luego del objetivo 2 hay una re-entrada en la EMA(200) ya que luego de obtener el objetivo 1 se volvió a producir un cruce de la EMA(17) con la primer Banda. En este caso esta entrada funcionó muy bien, aunque estadísticamente las mejores operaciones son las primeras luego de cada cambio de tendencia. En el ejemplo siguiente se puede observar un caso de Impulso : Cuando la EMA(17) no solo pasa la segunda Banda sino que casi toca o sobrepasa la tercera, podemos considerar que el mercado ha entrado en modo Impulso y que debemos buscar entradas más agresivas que en la EMA(200). Lo usual es utilizar la banda previamente atravesada como entrada y usar la misma o la anterior como trailing stop: 


tabla 3
 tabla 3


Este sistema, a pesar de ser sencillo no deja de tener muy buena performance. Puede utilizarse en cualquier mercado (Forex, Futuros o Índices de Acciones ) y en distintos Marcos de Tiempo. En el siguiente ejemplo puede verse este sistema aplicado al futuro del Crudo en un marco de Rango 5, donde cada operación tiene un riesgo máximo de 15 ticks ( usd 150 x contrato ) y objetivos del orden de 40 ticks ( usd 400 ). Este es un grafico muy rápido con muchas operaciones por día, lo cual demuestra que el sistema es aplicable a cualquier mercado. 

Por Pablo Maglio

Friday, August 17, 2012

PM_EMA

http://www.screencast.com/t/




wfOXiSI4cvAu
One of my best strategies that can be configured to be profitable in all kind of markets, from crude oil to bonds
This is the performance on crude oil trading just 1 contract with 15 ticks of target and stop


Friday, April 30, 2010

Internal Fibs Indicator

It draws the internal fibs between Max and Low made during for the selected session time ( crossing outside it could be considered an impulse move start )

Dibuja los niveles internos Fibonacci entre los Máximos y Mínimos operados para la sesión seleccionada ( cruzar fuera de este rango generalmente implica comenzar un movimiento impulsivo )

EMA Envelope Indicator

Draws 2 lines ; Above and Below an exponential Moving Average. Input Parameters are XMA period and distance between XMA and each line

Dibuja 2 lineas ; arriba y debajo de una media exponencial. Los parámetros son : Periodo de la media exponencial y distancia de las lineas a la media.

Yesterday Hi Lo Indicator

Show yesterday’s session Open, Close, High and Low

Muestra la Apertura, Máximo, Mínimo y Cierre de la sesión de Ayer.