J’ai fais ça :
// CLOSE UP ZG 29.09.2022
sma200 = average [200] (close)
hh = average[200](high) + 5 * averagetruerange [200] (close)
If close crosses over hh then
cup = 1 // candlestick UP
else
cup = 0
endif
If close crosses under hh then
cdw = 1 // candlestick DW
else
cdw = 0
endif
//////////////////////////////////////////////////////////////////
If close > hh then
drawcandle(open,high,low,close) coloured(30,144,255) //bordercolor (143,255,31)
endif
If close < cup then
drawcandle(open,high,low,close) coloured(200,20,60) //bordercolor (200,20,60)
endif
If close > hh then
colorbetween (close,hh,"green",150)
endif
//else
//colorbetween (close,hh,"red",150)
//endif
/////////////////////////////////////////////////////////////////
Return hh as "hh" ,sma200 as "sma200" ,cup as " cup " coloured ("green") , cdw as " cdw " coloured ("red")
////////////////////////////////////////////////////////////////////////////////////
// CLOSE UP ZG 29.09.2022
// sma200 = average [200] (close)
hh = average[200](high) + 5 * averagetruerange [200] (close)
If close crosses over hh then
cup = 1 // candlestick UP
else
cup = 0
endif
If close crosses under hh then
//cdw = 1 // candlestick DW
else
//cdw = 0
endif
//////////////////////////////////////////////////////////////////
If close > hh then
//drawcandle(open,high,low,close) coloured(30,144,255) //bordercolor (143,255,31)
endif
If close < cup then
//drawcandle(open,high,low,close) coloured(200,20,60) //bordercolor (200,20,60)
endif
If close > hh then
//colorbetween (close,hh,"green",150)
endif
//else
//colorbetween (close,hh,"red",150)
//endif
/////////////////////////////////////////////////////////////////
//Return hh as "hh" ,sma200 as "sma200" ,cup as " cup " coloured ("green") , cdw as " cdw " coloured ("red")
c1 = close => hh
SCREENER [ c1 ]
resultat daily du screener : EDF, BIC
Je joins un graphe de Argan en weekly qui est pas mal