Ichimoku strategy based screener

Category: Screeners By: Rafa Created: May 27, 2017, 8:30 AM
May 27, 2017, 8:30 AM
Screeners
4 Comments

Dear Friends,

I’m getting into Screeners programming and strategies, so I’m a newbie.

Here I leave you the code of 2 basic strategies with Ichimoku charts.

  1. Strategies
    1. Kumo break
    2. Crossing of the Delayed Line (Chikou – Sen) with the price of n periods. N refers to the middle period, of 21 or 26, depending on whether fibonacci or standard Ichimoku values ​​are used, this data is found as text in the code.
  2. It could be made more complete as looking at the relative position between SpanA – SpanB, TenkanSen – KijunSen in different periods, I just still do not know how to do it, and I would understand that this screener is not to your liking totally. But something is started and this is my small contribution.
  3. There are situations that this Screener does not include such as the Kumo Break if the future Kumo is already changing, The reason is simple. I still do not know how to do it. But I leave these notes to see if we could all improve it.

I await your feedback


Estimados amigos,

Me estoy introduciendo en la programación de Screeners y estrategias, por lo que soy un novato.

Aquí os dejo el código de 2 estrategias básicas con graficación Ichimoku.

  1. Estrategias
    1. Rotura de Kumo
    2. Cruce de la Línea Retardada (Chikou – Sen) con el precio de hace n periodos. N hace referencia al Periodo Medio, de 21 o 26, dependiendo si se usa fibonacci o valores estándar de Ichimoku, estos datos se encuentran como texto en el código.
  2. Se podría hacer más completo como mirando la posición relativa entre SpanA – SpanB, TenkanSen – KijunSen en diferentes periodos, simplemente aún no sé como hacerlo, y entendería que este screener no sea de vuestro agrado totalmente. Pero por algo se empieza y esta es mi pequeña contribución.
  3. Hay situaciones que este Screener no contempla como por ejemplo la Rotura de Kumo si el Kumo futuro ya está cambiando, El motivo es sencillo. Aún no se como hacerlo. Pero dejo estas notas para ver si entre todos podríamos mejorarlo.

Espero vuestros feedbacks

//*************************************************************
//* Estrategias básicas con Ichimoku: Rotura de Kumo y cruce       *
//* con el precio que le corresponde.                                                      *
//* Autor: Rafa Barreto                                                                              *
//*************************************************************

// -- Construyendo la graficación Ichimoku --
// -- Valores NO Standar: Fibonacci: 8; 21; 55 --
// -- Valores Standar: 9; 26; 52

PeriodoCorto = 8
PeriodoMedio = 21
PeriodoLargo = 55

// ===== A partir de Aquí no se toca el código =====

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

// -- Se determina si está alcista o Bajista ---

Alcista = SpanA > SpanB
Bajista = SpanA < SpanB

// --- Kumo Break Out ---

CruceAlcista = Close CROSSES UNDER SpanA
CruceBajista = Close CROSSES OVER SpanB

CruceChikouAlcista = Chikou CROSSES UNDER SpanA
CruceChikouBajista = Chikou CROSSES OVER SpanB

// --- Cruce Chikou con el precio Periodo Medio sesiones ---

CruceAlcistaChikouPrecio = Chikou CROSSES UNDER Close[PeriodoMedio]
CruceBajistaChikouPrecio = Chikou CROSSES OVER Close[PeriodoMedio]

// ===== SCREENER =====

IF Alcista AND CruceChikouAlcista THEN
 SCREENER [CruceAlcista OR CruceAlcistaChikouPrecio]
ELSIF Bajista AND CruceChikouBajista THEN
 SCREENER [CruceBajista OR CruceBajistaChikouPrecio]
ENDIF

 

 

Download
Filename: Ichimoku-strategy-screener.itf
Downloads: 290
Rafa Senior
Developer by day, aspiring writer by night. Still compiling my bio... Error 404: presentation not found.
Author’s Profile

Comments

Logo Logo
Loading...