Original Bollinger Bands but the basis line changes color when the slope is positive or negative If slope is positive the color is green (or lime) If slope is negative the color is red If slope is flat the color is black
how would you just do a color change on a single ema
parsa1368
⋅
@Zkodadi, Lets say your function is myema . then its something like this:
up= myema> myema[1]
down= myema< myema[1]
mycolor = up ? color.lime : down ? color.red : color.black
then you add mycolor to plot function same as above code
parsa1368
⋅
@parsa1368, up= myema> myema[1]
down= myema< myema[1]
mycolor = up ? color.lime : down ? color.red : color.black
then you add mycolor to plot function same as above code
ajaybabu7885
⋅
Hi parsa,
Can you please add another short moving average which you did for 20SMA. Thanks with regards,
BOM82
⋅
can you change color of bands IF BOLLINGER UPPER AND LOWER BANDS REACH TO A CERTAIN AMOUNT. like upper band < 0 => red. & lower band >0 =>green