Bonjour,
Je souhaite ajouter une colonne fraicheur du signal (nombre de jour depuis le croisement Tekan Kijun) à mon screener ainsi qu’un filtre avec un volume minimum.
Je veux bien un peu d’aide, je vous remercie par avance.
SCREENER(close as "close")
INDICATEUR = 0
enkansen = (highest[9](high)+lowest[9](low))/2
ijunsen = (highest[26](high)+lowest[26](low))/2
SSpanA = (enkansen[26]+ijunsen[26])/2
SSpanB = (highest[52](high[26])+lowest[52](low[26]))/2
Chikou = close // 26 périodes auparavant
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
screener[INDICATEUR]
Ci-dessous le code modifié, le critère de tri indique maintenant la quantité de chandeliers depuis la détection : (compatible v10.3)
//INDICATEUR = 0
tenkansen = (highest[9](high)+lowest[9](low))/2
kijunsen = (highest[26](high)+lowest[26](low))/2
SSpanA = (tenkansen[26]+kijunsen[26])/2
SSpanB = (highest[52](high[26])+lowest[52](low[26]))/2
Chikou = close // 26 périodes auparavant
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]
c6 = volume>10000
IF C1 and C2 and C3 and C4 and C5 and c6 THEN
INDICATEUR = 1
startbar=barindex
ENDIF
screener[INDICATEUR](barindex-startbar as "fraicheur")
Merci beaucoup nicolas.
La fraicheur dans le code est en quelle unité de temps ? J’ai également un problème avec le volume, le filtre ne marche pas as-tu une idée du problème?
Sais-tu comment indiquer une fraicheur maximal?
Merci
Il faudrait essayer avec cette version compatible v11, j’ai inclut un seuil de “maxFraicheur” pour indiquer la quantité de chandeliers maximum depuis l’événements des dernières conditions réunies.
maxfraicheur = 50
itenkansen = (highest[9](high)+lowest[9](low))/2
ikijunsen = (highest[26](high)+lowest[26](low))/2
SSpanA = (itenkansen[26]+ikijunsen[26])/2
SSpanB = (highest[52](high[26])+lowest[52](low[26]))/2
Chikou = close // 26 périodes auparavant
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]
c6 = volume>10000
IF C1 and C2 and C3 and C4 and C5 and c6 THEN
INDICATEUR = 1
startbar=barindex
ENDIF
screener[INDICATEUR and barindex-startbar<=maxfraicheur](barindex-startbar as "fraicheur")