Bonjour,
Je n’arrive pas à créer un screener de détection de bougie d’indécision (sans corps avec mèche haute et basse comme sur METEX vendredi en journalier). Je n’ai pas fait par programmation car je n’y connais rien malheureusement et l’aide à la création ne me permet pas de ressortir ce que je veux.
Donc en gros un prix de clôture égale (ou très proche) du prix d’ouverture de la bougie journalière.
Quelqu’un peut il m’aider ?
Merci d’avance
Si tu veux partir sur ce screener: https://www.prorealcode.com/prorealtime-market-screeners/heikin-ashi-doji-screener/
alors on peut faire comme ceci pour arriver en critère de tri la quantité de chandeliers depuis la dernière détection d’un Doji:
//PRC_Doji Heikin Ashi | screener
//10.01.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
// --- parameters
DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
// ---
if barindex>1 then
haclose=(open+close+low+high)/4
haopen=(haopen[1]+haclose[1])/2
xHigh = Max(haOpen, haClose)
xLow = Min(haOpen, haClose)
hahigh = Max(High,xHigh)
halow = Min(Low,xLow)
endif
data=(abs(haopen - haclose) <= (hahigh - halow) * DojiSize/100)
if data then
databar=barindex
endif
screener [databar](barindex-databar as "fraicheur")
//PRC_Doji Heikin Ashi | screener //10.01.2017 //Nicolas @ http://www.prorealcode.com //Sharing ProRealTime knowledge // — parameters DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick // — if barindex>1 then haclose=(open+close+low+high)/4 haopen=(haopen[1]+haclose[1])/2 xHigh = Max(haOpen, haClose) xLow = Min(haOpen, haClose) hahigh = Max(High,xHigh) halow = Min(Low,xLow) endif data=(abs(haopen – haclose) <= (hahigh – halow) * DojiSize/100) if data then databar=barindex endif screener [databar](barindex-databar as “fraicheur”)
Merci! Par contre le dernier qui ressort date de 63 bougies sur CRCAM alors que Total en a fait un il y a quelques jours le 29 aout … bizarre non ?
Je ne sais pas, le critère est-il correct ? Soit une taille de 5% (pourcentage de la taille du corps par rapport à la taille complète du chandelier), à vérifier 😉
Donc un Doji avec bougie Heikin Ashi, voir par exemple:
https://www.prorealcode.com/prorealtime-indicators/heikin-ashi-doji-candle/
https://www.prorealcode.com/prorealtime-market-screeners/heikin-ashi-doji-screener/
https://www.prorealcode.com/topic/heikin-ashi-haramidoji/
https://www.prorealcode.com/topic/heikin-ashi-doji/
merci beaucoup!
Comment ajouter un indice de fraicheur svp ?
Par exemple sur ce code: comment rajouter le signal de fraicheur ?
// — parameters
DojiSize = 5 //x% percent of body size compared to the complete range of the candlestick
// —
if barindex>1 then
haclose=(open+close+low+high)/4
haopen=(haopen[1]+haclose[1])/2
xHigh = Max(haOpen, haClose)
xLow = Min(haOpen, haClose)
hahigh = Max(High,xHigh)
halow = Min(Low,xLow)
endif
data=(abs(haopen – haclose) <= (hahigh – halow) * DojiSize/100)
screener [data]