Color the background of chart with R,G,B,alpha values.
Syntax:
1 |
BACKGROUNDCOLOR(R,G,B,a) |
Example :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
sto = Stochastic[10,3](close) signal = average[5](sto) rge = averagetruerange[10](close) if sto[1]>80 and sto crosses under signal then DRAWARROWDOWN(barindex[1],high[1]+rge/2)coloured(255,10,10) direction = -1 elsif sto[1]<20 and sto crosses over signal then DRAWARROWUP(barindex[1],low[1]-rge/2)coloured(10,255,10) direction = 1 endif if direction > 0 then backgroundcolor(10,255,10,100) else backgroundcolor(255,10,10,100) endif RETURN |
In the help page…
https://www.prorealcode.com/documentation/backgroundcolor/
I suggest explain the menaning and function of the fourth parameter, “alpha”.
Maybe the alpha parameter is for transparecy, but it is not documented anywhere… what range of values?
Color the background of chart with R,G,B,alpha values.
Yes it is for transparency, alpha value is range between 0 and 255.
Some forum topics tagged “backgroundcolor”: https://www.prorealcode.com/topics-tag/backgroundcolor/
salut j’aimerais que une barre vertical apparait sur la 10éme bougie après mon signal d’entrée, mais j’arrive pas à mettre en place.
merci d’utiliser les forums pour les demandes de code personnalisés.
Hi, I would like to add just background colour, red and green applied to the price directly is this possible? If yes can you please show me the code?