Search This Blog

Tuesday, August 6, 2019

Estrategia Bollinger Trender

ESTRATEGIA BOLLINGER TRENDER

Esta estrategia es una combinación del clásico quiebre de Bandas de Bollinger :


Mientras el mercado se mantiene dentro de las Bandas de Bollinger, no pasa nada.
Las barras pueden estar fuera de las bandas, pero la configuración busca una barra que cierre afuera, como en el trade que se muestra con una Flecha azul:



Esta configuración es útil en mercados volátiles donde después de una ruptura no hay retroceso, pero en la acción de precio habitual, el mercado tiende a tener rupturas leves del bollinger y luego un retroceso.

Esto es lo que estamos buscando en el Bollinger Trender: las flechas doradas muestran una operación de Compra y otra de Venta


El largo ocurrió justo después de una pequeña ruptura por encima de la banda superior de bollinger, no lo suficiente para un objetivo en la configuración de ruptura clásica, pero lo suficiente como para obtener un ganador en el retroceso.
El corto, en cambio, sucedió después de un quiebre exitoso por debajo de la banda inferior de Bolllinger, y también produjo un ganador en el rebote sobre la línea media.

Los objetivos son más pequeños, por supuesto, pero también el riesgo.

La característica interesante de esta configuración es su simplicidad, por lo que la creación de una estrategia con NinjaTrader Builder es fácil, y también lo es optimizar su configuración, como se muestra en el siguiente video:



Por favor deja tu comentario en el video de YouTube, y dame un like si te ha parecido interesante.

Y no olvides de Subscribirte a mi Canal



Pablo Maglio
photo
The Indicator Store
Skype Skype id : pmaglio
     

Risks

Bollinger Trender Trade Setup

BOLLINGER TRENDER SETUP

This Strategy is a combination of the classic Bollinger Bands Breakout :

While the Market keeps inside the Bollinger, nothing happens. 
The bars can be outside of the bands, but the setup is looking for a bar closing outside, like on the trade shown by a blue Arrow :










This setup is useful on volatile markets where after a breakout there is no pullback, but on usual price action, the market tends to have a minor breakout from the bollinger and then a pullback.

This is what we are looking for in the Bollinger Trender : the gold arrows show a long and a short trend.



The Long happened just after a small breakout above the upper bollinger band, not enough for a target on the classic breakout setup, but enough to get a winner on the pullback.
The short instead, happened after a successful breakout trade below the lower bolllinger band, and it also produced a winner.
Targets are smaller, of course, but also the risk.

The interesting feature of this setup is its simplicity, and so, the creation of a strategy using NinjaTrader Builder is easy, as also optimizing its settings, as shown on the following video :



Please live your comments on YouTube and give me a like if you find it useful.

And don't forget to Subscribe my Channel



Pablo Maglio
photo
The Indicator Store
Skype Skype id : pmaglio
     

Risks

Sunday, July 14, 2019

Rebote Setup : Market Bounce over a Moving Average

REBOTE SETUP

In this article I will describe another of the many ways to analyze bounces on a line, such as an exponential average.


In previous articles we saw the Setup EMA, which also consists in trading the rebounds of the price on an average, although the methods of defining the trend and then the entry method are different.


I will refer to the bounce line as the EMA (Exponential Moving Average), although the setup is valid for any line.


The concept of bounce is clear; If the price is above the EMA, we want to buy when the price touches the ema.


It only remains to define from what moment we start to be interested in buying, and then, in what way we enter the market.



In the Rebote Setup, I made the decision to count candles that are not touching the ema and that are also a minimum distance away.

Example :

In this chart we look for the bars not to be touching the bounce line for at least 5 candles and as we see, not necessarily in a consecutive way.


Just at the fifth candle we have defined the trend and start looking for a bounce.

The dedicated indicator TIS_Rebote, paints the background with the color corresponding to the current trend and also paints the entries

Once the trend is defined, it does not reset, there is no need to recount, and entering the market at all the rebounds from that moment, unless there is a separation from the other side of the ema, in which case we start the count but for the trend in the opposite direction.

Note: It would be necessary to analyze if after the first signal (red arrow) it may be convenient to reset the count and recount N separation candles (this is not analyzed in the dedicated indicator)


Once we have defined the trend, we start looking for Entries:



In the case of a Long, we look for a candle that has a low below or touching the ema and a close above. It must also be a bullish candle for purchase (green)

Example :

This setup is intended to operate at bar close; without intrabar analysis or placing Limit orders; Simply entering the market at bar close.

The reason why I opted for this type of analysis is to be able to optimize parameters in the Strategy Analyzer and not have to worry about what happens intrabar. It is very easy also to review a chart by looking at historical data precisely because there is no need to know what happened while market was painting a candle or to estimate whether a limit order had fill or not.


This does not mean that we can not put the indicator or strategy to work in intrabar mode, although in this case we must take the necessary precautions when using the strategy analyzer, for example using Ninjatrader 8 with High Fill Resolution.


The dedicated indicator includes several visual and filtering options, allows to expose the trend and input signals to be used from other scripts, such as Markers Plus to be able to automate and / or filter signals. It is compatible with Fast Signals™ by Markers Plus for Ninjatrader 8.

It also includes a strategy created with the builder that allows generating reports and optimizing parameters according to the logic described above. It is open source so that the user can add or change options.


Link to Purchase Page


In this video you can see a description of both :





Setup de Rebote del Mercado en una Media Exponencial

SETUP DE REBOTE

En este artículo describiré otra de las tantas formas de analizar rebotes sobre una línea, como por ejemplo una media exponencial.

En artículos anteriores vimos el Setup EMA, el cual también consiste en comerciar los rebotes del precio sobre una media, aunque los métodos de definir la tendencia y luego el método de entraba son distintos.

A continuación me referiré la la linea de rebote como la EMA ( Exponential Moving Average ), aunque el setup es válido para cualquier linea.

El concepto de rebote es claro ; si el precio esta por encima de la EMA, queremos comprar cuando el precio toque la ema.

Solo queda definir a partir de que momento empezaremos a estar interesados en comprar, y luego, de que modo entramos.

En el Setup de Rebote, tomé la decision de contar velas que no estén tocando la ema y que ademas estén alejadas una distancia mínima.

Ejemplo :

En este gráfico buscamos que las velas no toquen la linea de rebote por al menos 5 velas y como vemos, no necesariamente consecutivas.


Recién a la quinta vela tenemos definida la tendencia y comenzamos a buscar  un rebote.
El indicador dedicado TIS_Rebote, nos pinta el fondo de pantalla con el color correspondiente a la tendencia actual y también pinta las entradas
Una vez definida la tendencia, esta no se resetea, no hace falta volver a contar entrando en todos los rebotes a partir de ese momento, salvo que se produzca una separación del otro lado de la ema, en cuyo caso comenzamos la cuenta pero para la tendencia en sentido opuesto.

Nota : Habría que analizar si luego de la primer señal ( flecha roja ) tal vez convenga resetear la cuenta y volver a contar N velas de separación ( esto no esta analizado en el indicador dedicado )

Una vez que tenemos definida la tendencia, comenzamos a buscar entradas :

En el caso de una compra, buscamos una vela que tenga un low por debajo o tocando la ema y un close por encima. Ademas es una vela alcista para compra ( verde )

Ejemplo :

Este setup esta pensado para funcionar a cierre de vela ; sin análisis intrabar ni poniendo ordenes Limit ; simplemente entrando al mercado al cierre de vela.
La razón por la que opté por este tipo de análisis es para poder optimizar parámetros en el Strategy Analyzer y no tener que preocuparme por lo que pase intrabar. Es muy fácil también revisar un chart viendo datos históricos justamente por no tener necesidad de saber que paso mientras se pintaba una vela ni estimar si una orden limit tuvo o no fill.

Esto no quita que podamos poner el indicador o estrategia a trabajar en modo intrabar, aunque en este caso hay que tomar las precauciones necesarias al usar el strategy analyzer, por ejemplo usando Ninjatrader 8 con High Fill Resolution.

El indicador dedicado incluye varias opciones visuales y de filtrado, permite exponer la tendencia y señales de entrada para poder ser usada desde otros scripts, como por ejemplo Markers Plus para poder automatizar y/o filtrar señales. Es compatible con Fast Signals™ de Markers Plus para Ninjatrader 8.
Además incluye una estrategia creada con el builder que permite generar reportes y optimizar parámetros según la lógica antes descrita. Es de código abierto para que el usuario pueda agregarle o cambiarle opciones.


Link a la página de Compra


En este video se puede ver una descripción de ambos :







Wednesday, July 3, 2019

Indicador TIS_HMA_Crossover para NinjaTrader

El Indicador TIS_HMA_Crossover para NinjaTrader sigue el Setup descrito en el video de mas abajo y utiliza 2 líneas :
  • Una media rápida HMA
  • Una Regresión Lineal Lenta


Y como muchos pueden pensar, no estamos buscando el cruce entre esas 2 líneas ... no ...

Las señales de Entrada son producidas por el cruce de la línea HMA con una copia de sí misma, desplazada 1 barra:

Aquí tenemos un gráfico con una HMA rápida, usando un período de 33 :


Y ahora, agregamos otra HMA, con el mismo período pero desplazado 1 barra usando el parámetro de entrada de desplazamiento.

En este chart, está en color azul. :

Si observamos dónde ocurren esos cruces, estos son nuestros puntos de entrada.

Vayamos a los resultados pintados por el indicador personalizado TIS_HMA_Crossover, donde las señales son los triángulos azul y rojo: (ignoremos la línea negra por ahora)

Como podemos ver, recibimos señales donde la línea roja cambia su pendiente de tendencia alcista a bajista y así sucesivamente ...

Ahora, describamos la línea negra; es una regresión lineal porque su característica principal es permanecer lineal, por lo que es una buena manera de definir una tendencia, dadas las últimas N barras.

Usamos la línea negra como filtro; cuando está inclinada hacia arriba, solo tomamos señales largas, cuando está inclinada hacia abajo, solo tomamos señales cortas.

Aquí hay un ejemplo, donde evitamos los primeros 2 cortos porque la línea negra en esas barras está inclinada hacia arriba:


Algo a tener en cuenta es la forma de medir la pendiente.

No utilizo ángulos, porque el resultado es relativo a la compresión X-Y del gráfico; Si expandimos el eje X, el ángulo cambia ...

Uso algo muy simple, pero efectivo: la pendiente de una línea es la diferencia entre el valor actual de la línea y el valor 1 vela atrás.

Para calcular eso, podemos utilizar el Indicador Momentum ( o Impulso si tienen la plataforma en Español ), con un período de 1, y colocar dentro de la serie de entrada, el indicador cuya pendiente queremos medir.

Y conseguimos algo como esto:

Podemos ver la relación entre la pendiente de la línea roja y el histograma; cuando la línea roja es plana (horizontal), el histograma es cero. Cuando la línea roja está inclinada hacia abajo, el histograma es negativo.

Así podemos medir la pendiente y obtener no solo su tendencia, hacia arriba o hacia abajo, sino también su magnitud.

Luego podemos definir nuestro filtro para que tome largos cuando la pendiente sea positiva y más grande que un umbral, y tomar cortos cuando la pendiente sea negativa y esté por debajo de un umbral.

En este ejemplo, un umbral de 0.2 parece funcionar bien, porque evitamos el largo (triángulo azul) pero tomamos el corto (triángulo rojo):


De manera similar, también podemos especificar un umbral para la Línea Roja, para evitar crear señales falsas cuando está oscilando en un estado casi horizontal.

De esa manera, en total tenemos 4 parámetros de entrada para esta configuración:
  1. Período de la HMA, la línea roja que crea las señales de entrada
  2. Período del LinReg, la línea negra utilizada para filtrar las señales de entrada
  3. Umbral para el HMA, para reducir el número de señales falsas
  4. Umbral para el LinReg, para definir una consolidación en donde no se realiza ninguna operación.
Como podemos ver en la configuración del indicador tenemos estos 4 parámetros de entrada:


Y también la opción de pintar el fondo con la tendencia definida por la pendiente de la línea negra.

Y como podemos ver en este gráfico, si usamos un umbral diferente de cero, entonces tenemos 3 colores de tendencia de fondo posibles; tendencia hacia arriba, tendencia hacia abajo y sin tendencia :



Esta lógica se puede implementar fácilmente con el Strategy Builder en NinjaTrader 8 y el indicador TIS_HMA_Crossover incluye una estrategia de código abierto para que pueda editar el código, aprender cómo funciona, ejecutar informes de rendimiento y modificar la lógica para crear su propia configuración.

Ponte en contacto conmigo para más información en Pablo@TheIndicatorStore.Com

Visita nuestra sala de chat gratis en Discord : http://bit.ly/TIS_Room



Pablo Maglio
photo
The Indicator Store
Skype Skype id : pmaglio
     
Risks


TIS_HMA_Crossover Indicator for NinjaTrader

The TIS_HMA_Crossover Indicator for NinjaTrader follows the Setup described on this video :
and it uses 2 lines :
  • A fast HMA
  • A Slow Linear Regression
And as many may think, we are not looking for the crossover between those 2 lines....no...

The Entry signals are produced by the HMA line crossing with a copy of itself, displaced 1 bar :

Here we have a chart with a fast HMA , using a period of 33 :


And now, we add another HMA, with the same period but displaced 1 bar using the displacement input parameter.
On this chart, it is in color blue :

If we look at where those crossovers happen, these are our entry points

Lets go to the results painted by the custom indicator TIS_HMA_Crossover, where the signals are the blue and red triangles : ( ignore the black line by now )


As we can see, we get signals where the red line changes its slope from trending up to down and so on...

Now, lets describe the black line ; it is a linear regression because its main feature is to remain linear, so its a good way to define a trend, given the last N bars.
We use the Black Line as a Filter ; when it is sloping up, we only take long signals, when it is sloping down, we only take short signals.

Here is an example, where we avoid the first 2 shorts because the black line on those bars is sloping up :


Something to take into account is the way to measure the slope.
I do not use angles, because the result is relative to the chart X-Y compression ; if we expand the X axis, the angle change...
I use something very simple, but effective : the slope of a line is the difference between the current value and the value 1 bar back.
To calculate that, we can use the Momentum Indicator, with a period of 1, and placing inside the input series, the indicator whose slope we want to measure.
And we get something like this :

We can see the relation between the slope of the red line and the histogram ; when the red line is flat ( horizontal ), the histogram is zero. When the red line is sloping down, the histogram is negative.
So we can measure the slope and get not only its trend, up or down, but also its magnitude.
Then we can define our filter to take longs when the slope is positive and bigger than a threshold, and take shorts when the slope is negative and below a threshold.
On this example, a threshold of 0.2 seems to work fine, because we avoid the long ( blue triangle ) but take the short ( red triangle ):


In a similar way, we can also specify a threshold for the Red Line, to avoid creating fake signals when it is oscillating on an almost horizontal state.
That way, in total we have 4 input parameters for this setup :

  1. Period of the HMA , the red line that creates the Entry Signals
  2. Period of the LinReg, the black line used to filter the entry signals
  3. Threshold for the HMA, to reduce the number of fake signals
  4. Threshold fo the LinReg, to define a consolidation are where not taking any trade
As we can see on the settings of the indicator we have these 4 input parameters:


And also the option to paint the background with the trend defined by the slope of the black line.
And as we can see on this chart, if we use a threshold different than zero, then we have 3 possible background trend colors ; trending up, trending down and no trending :



This logic can be easily implemented with the Strategy Builder on NinjaTrader 8 and the Indicator TIS_HMA_Crossover includes an open code strategy so you can edit the code, learn how it works, execute performance reports and modify the logic to create your own Setup.

Contact me for more info at Pablo@TheIndicatorStore.Com

Visit our Free Chat Room on Discord : http://bit.ly/TIS_Room


Pablo Maglio
photo
The Indicator Store
Skype Skype id : pmaglio
     
Risks