Hi all,
is it possible to use a BACKGROUNDCOLOR fonction with coordinates ?, the idea its if my condition is rigth now so I want to color in the past ?
Best Reguards
You can’t use BACKGROUNDCOLOR in the past. A simple work around is to use a rectangle with endless boundaries in price coordinates (such as 0 to close*100 for instance).
Examples:
Couleur du background (fond d’ecran)
Indicateur pour colorer le fond des graphiques
…
You can’t use BACKGROUNDCOLOR in the past. A simple work around is to use a rectangle with endless boundaries in price coordinates (such as 0 to close*100 for instance).
Examples:
https://www.prorealcode.com/topic/couleur-du-background-fond-decran/
https://www.prorealcode.com/topic/indicateur-pour-colorer-le-fond-des-graphiques/#post-119105
…
Tks you , I tryed the 1st link with code and it’s working perfect like I want it (Like I want it now, we will see in the future 🙂 )
//defparam drawonlastbaronly=true
if islastbarupdate then
indic = average[20,1]
diff = indic - indic[1]
if diff > 0 then
drawrectangle(0,0,barindex,close*100) coloured(0,255,0,30) bordercolor(0,255,0,0)
else
drawrectangle(0,0,barindex,close*100) coloured(255,0,0,30) bordercolor(0,255,0,0)
endif
endif
return