Hello friends,
After several attempts and after much annoying Nicholas, I have managed to realize the Screener of the complete kumo break.
This time he takes into account all the scenarios.
In this strategy the line Chikou Span is important because it is of confirmation, that is why the Screener only takes into account the crosses of Chikou with the cloud.
Break in Length: Several conditions. A) Current price> than the Cloud; B) (Option 1) the Span A in n periods> Span B in n periods then the break occurs when Chikou Span crosses Span A, c) (Option 2) Span A in n periods <Span B in n periods Break occurs when Chikou Span Crosses on SpanB long.
Following the same example but in reverse the conditions for Short are established.
As notes there are other conditions that are not used, but that are valid for other strategies with Ichimoku, Depending on the strategy you can “activate” or “disable” conditions, so I left it that way.
Hola amigos,
Tras varios intentos y después de molestar mucho a Nicolás, he conseguido realizar el Screener de la rotura de kumo completa.
En esta ocasión tiene en cuenta todos los escenarios.
En esta estrategia la línea Chikou Span es importante porque es de confirmación, es por esto por lo que el Screener sólo tiene en cuenta los cruces de Chikou con la nube.
Rotura en Largo: Varias condiciones. a) Precio actual > que la Nube; b) (Opción 1) la Span A en n periodos > Span B en n periodos entonces la rotura se produce cuando Chikou Span cruza en largo Span A, c) (Opción 2) Span A en n periodos < Span B en n periodos la rotura se produce cuando Chikou Span Cruza en largo SpanB.
Siguiendo el mismo ejemplo pero a la inversa se establece las condiciones para Corto.
PS. Como notas hay otras condiciones que no se usan, pero que son válidas para otras estrategias con Ichimoku, Dependiendo de la estrategia se puede “activar” o “desactivar” condiciones, por eso lo dejé así.
//****************************************************************
//* Estrategia Rotura de Kumo Completa
//* Autor: Rafa Barreto: Ayuda Nicolás
//****************************************************************
// ===== VALORES MODIFICABLES =====
// -- Construyendo la graficación Ichimoku --
// -- Valores NO Standar: Fibonacci: 8; 21; 55 --
// -- Valores NO Standar: Actuales : 7;22;44
// -- Valores Standar: 9; 26; 52
PeriodoCorto = 7
PeriodoMedio = 22
PeriodoLargo = 44
Tenkan = (highest[PeriodoCorto](High) + lowest[PeriodoCorto](Low)) / 2
Kijun = (highest[PeriodoMedio](High) + lowest[PeriodoMedio](Low)) / 2
SpanA = (TenKan[PeriodoMedio] + Kijun[PeriodoMedio]) / 2
SpanB = (highest[PeriodoLargo](High[PeriodoMedio]) + lowest[PeriodoLargo](Low[PeriodoMedio])) / 2
Chikou = Close
// ===== A partir de aquí no se toca el código =====
// --- Condiciones de Posiciones Largas ---
Condicion1Larga = (close > SpanA) AND (close > SpanB)
//Condicion2Larga = (Tenkan > SpanA) AND (Tenkan > SpanB)
//Condicion3Larga = (Kijun > SpanA) AND (Kijun > SpanB)
//Condicion4Larga = (Chikou > SpanA) AND (Chikou > SpanB)
Condicion5Larga = (SpanA[PeriodoMedio] > SpanB[PeriodoMedio])
Condicion6Larga = (SpanA[PeriodoMedio] < SpanB[PeriodoMedio])
RoturaLargoOpcion1 = Chikou CROSSES OVER SpanA[PeriodoMedio] AND (Condicion1Larga AND Condicion5Larga)
RoturaLargoOpcion2 = Chikou CROSSES OVER SpanB[PeriodoMedio] AND (Condicion1Larga AND Condicion6Larga)
// -- Condiciones de Posiciones Cortas ---
Condicion1Corta = (close < SpanA) AND (close < SpanB)
//Condicion2Corta = (Tenkan < SpanA) AND (Tenkan < SpanB)
//Condicion3Corta = (Kijun < SpanA) AND (Kijun < SpanB)
//Condicion4Corta = (Chikou < SpanA) AND (Chikou < SpanB)
Condicion5Corta = (SpanA[PeriodoMedio] < SpanB[PeriodoMedio])
Condicion6Corta = (SpanA[PeriodoMedio] > SpanB[PeriodoMedio])
RoturaCortoOpcion1 = Chikou CROSSES UNDER SpanA[PeriodoMedio] AND (Condicion1Corta AND Condicion5Corta)
RoturaCortoOpcion2 = Chikou CROSSES UNDER SpanB[PeriodoMedio] AND (Condicion1Corta AND Condicion6Corta)
// ===== SCREENER =====
SCREENER [RoturaLargoOpcion1 OR RoturaLargoOpcion2 OR RoturaCortoOpcion1 OR RoturaCortoOpcion2]