Forum

Codage de détection...
 
Notifications
Clear all

Codage de détection des EDS et EDM  


Steph
(@steph)
Maitre Trader
Inscription: Il y a 10 ans
Posts: 299
Topic starter  

{
Nom : "S_Détection EDS et EDM"

Configuration : Style : "histogramme"
}

if barindex > 14 then
// ETOILE DU SOIR
// haut de tendance
c30 = high[1] = highest[14](high)
// 1ère bougie verte
c31 = open[2] < close[2]
// Gap haussier non comblé
c32 = open[1] > high[2] and low[1] > high[2]
// petit corps
c331 = max(open[1], close[1]) - min(open[1], close[1])
c33 = c331 <= average[14](c331)
// Gap baissier non comblé
c34 = open < low[1] and high < low[1]
// Bougie rouge
c35 = open > customclose
EDS = c30 and c31 and c32 and c33 and c34 and c35

// ETOILE DU MATIN
// Bas de tendance
c40 = low[1] = lowest[14](low)
// 1ère bougie rouge
c41 = open[2] > close[2]
// Gap baissier non comblé
c42 = open[1] < low[2] and high[1] < low[2]
// petit corps
c431 = max(open[1], close[1]) - min(open[1], close[1])
c43 = c431 <= average[14](c431)
// Gap haussier non comblé
c44 = open > high[1] and low > high[1]
// Bougie verte
c45 = open < customclose
EDM = c40 and c41 and c42 and c43 and c44 and c45

// L'INDICATEUR
if EDS then
c = -1
elsif EDM then
c = 1
else
c = 0
endif
endif

return 1 as "borne de centrage", c as "Détection EDS et EDM", -1 as "borne de centrage", 0 as "zéro"


Quote
Share:

activtrades

Courtiers Partenaires

livre bourse

Restez informés

Abonnez vous à la newsletter

captcha

activtrades

Posts Récents du Forum