Rafa

Kumo Break

Category: Screeners By: Rafa Created: July 7, 2017, 8:31 AM
July 7, 2017, 8:31 AM
Screeners
13 Comments
Kumo Break

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]

Download
Filename: Kumo-Break.itf
Downloads: 320
Rafa
Rafa Senior
Code artist, my biography is a blank page waiting to be scripted. Imagine a bio so awesome it hasn't been coded yet.
Author’s Profile

Comments

Rafa
8 years ago
#

El chivato es el propio SCREENER, aparece cuando las condiciones se cumplen. Y se pueden combinar indicadores claro... con los que quieras.

Eusebio Garcia Nuez
8 years ago
#

tambien con que indicador se puede compaginar el ichimoku

Rafa
8 years ago
#

El chivato es el propio SCREENER, aparece cuando las condiciones se cumplen. Y se pueden combinar indicadores claro... con los que quieras.

Eusebio Garcia Nuez
8 years ago
#

mi pregunta es si se puede hacer un indicador que aparezca como alerta o chivato en la rotura de la nube

Eusebio Garcia Nuez
8 years ago
#

como seria el codigo del indicador no del screener

Rafa
8 years ago
#

No entiendo la pregunta... El indicador viene por defecto en PRT, pero en el SCREENER tienes el código de todos los elementos del Ichimoku

volpiemanuele
9 years ago
#

I have optimized it on Wallstreet cash 1 euro...tf 3h..best result

//****************************************************************
//*  Estrategia Rotura de Kumo Completa
//*  Autor: Rafa Barreto: Ayuda Nicolás
//****************************************************************
DEFPARAM CumulateOrders = false
// ===== 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 = 9
PeriodoMedio = 26
PeriodoLargo = 52
X=24
Z=1.1
 
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])
//Condicion7Larga = chikou > close[PeriodoMedio]


if not onmarket and (Chikou CROSSES OVER SpanA[PeriodoMedio] AND (Condicion1Larga AND Condicion5Larga )) or (Chikou CROSSES OVER SpanB[PeriodoMedio] AND (Condicion1Larga AND Condicion6Larga))   then
buy 1 shares at market
endif

 
// -- 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])
//Condicion8Larga = chikou < close[PeriodoMedio]
 

if not onmarket and (Chikou CROSSES UNDER SpanA[PeriodoMedio] AND (Condicion1Corta AND Condicion5Corta) ) or (Chikou CROSSES UNDER SpanB[PeriodoMedio] AND (Condicion1Corta AND Condicion6Corta) )   then
sellshort 1  shares at market
endif


set stop ploss X
SET TARGET PPROFIT X*Z

 

Rafa
9 years ago
#

Thanks a lot..

Best regards

 

Rafa
9 years ago
#

I have just realized is not finished yet. If we want to make it complete, we need to compare prices in different timeframes for example 4 hours and 1; or daily and 4 hours. I tried few things but is not working. Any ideas?

Thanks

volpiemanuele
9 years ago
#

Thanks, in the next days I developed a stretegy based on your screener... I attach here the code and the results. 

Rafa
9 years ago
#

Thanks Emanuele, 

It would be very interesting to see...

Best regards

volpiemanuele
9 years ago
#

hi,

I have developed some strategy with ichimoku and I can developed other based on your screener. In which time frame do you use your screener ? Thanks emanuele

Rafa
9 years ago
#

Hi Emanuale, I am using it in 15 minutes but I cross check H1 and H4

 

ProRealCode ProRealCode
Loading...