Paint candles if above or below TEMA?

tomsk

Well-known member
VIP
Sure they are unless the ticker symbol on your chart does not have this condition. As an example load that study on a 30 min chart of INTC, you'll see this condition
 

arod49

New member
I see that they painted now but when I set them to different settings they don't get colored for example TEMA 10 and VMA 50 none of the bars get pained
 

tomsk

Well-known member
VIP
The default lengths for the TEMA and VariableMA are 10. So since you like to use TEMA(10) and VariableMA(50), use the following study and load it on say a daily chart of INTC. It does paint blue candles

Code:
AssignPriceColor(if TEMA(length = 10) > VariableMA(length = 50) then Color.Blue else Color.CURRENT);
 

Similar threads

Top