Bar colors change

abhinkoi

Active Member
#1
Hi All,

I am looking for an afl wherein the bar color changes based on the closing. If closing price is higher than the provious candle then the bar color should be green and if closing price is lower than the previous candle then the bar color shd be red.

Any help would be appreciated.

Thx in advance.

Cheers
Abhi
 

abhinkoi

Active Member
#2
Hello All,

In the Amibroker help only I found formula for this -

Finally thodi mehnat rang layi :)

Plot( Close, "Price", IIf( Close > Open, colorGreen, colorRed ), styleBar | styleThick );

Thx
Abhi
 

Similar threads