ichimoki screener

This topic contains 1 reply, has 2 voices, and was last updated by  swapping 1 year, 1 month ago.

Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 2 posts - 1 through 2 (of 2 total)
• #92421

Hola a todos:

He estado navegando por la librería en busca de un screener para Ichimoku y me he encontrado el siguiente: Ichimoku Tenkan-kijun cross Screener, cuyo código es:

 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 INDICATEUR = 0 Tenkansen = (highest[9](close)+lowest[9](close))/2 Kijunsen = (highest[26](close)+lowest[26](close))/2 SSpanA = (tenkansen[26]+kijunsen[26])/2 SSpanB = (highest[52](high[26])+lowest[52](low[26]))/2 Chikou = close[26] // ACHAT C1 = close > SSpanA and close > SSpanB C2 = Tenkansen crosses over Kijunsen C3 = Tenkansen > SSpanA and Tenkansen > SSpanB C4 = Kijunsen > SSpanA and Kijunsen > SSpanB C5 = Chikou > SSpanA[26] and Chikou > SSpanB[26] IF C1 and C2 and C3 and C4 and C5 THEN INDICATEUR= 1 ENDIF // VENTE C1v = close < SSpanA and close < SSpanB C2v = Tenkansen crosses under Kijunsen C3v = Tenkansen < SSpanA and Tenkansen < SSpanB C4v = Kijunsen < SSpanA and Kijunsen < SSpanB C5v = Chikou < SSpanA[26] and Chikou < SSpanB[26] IF C1v and C2v and C3v and C4v and C5v THEN INDICATEUR= –1 ENDIF return INDICATEUR as “ICHIMOKU TKC”

Me gustaría sustituir las condiciones C5 y C5v por las siguientes , pero no sé como hacerlo:

C5 (para posiciones largas): Chikou Span está sobre la curva de precios.

C5V (para posiciones cortas): Chikou Span está por debajo de la curva de precios.

Pienso que con estas condiciones dan más fortaleza a las señales de compra/venta.

Gracias.

#92438

Ola Domingos

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login