TTM_Wave A watchlist for above and below zero


Category:
0
0

Pete

Is there a way to color a watch list column green if wave A is above 0…The color code red if Wave A is below 0…

 

 

Thanks

Marked as spam
Posted by (Questions: 49, Answers: 42)
Asked on June 28, 2019 3:10 pm
219 views
0
Pete My question is not the same as the link you sent...I'm looking for TTM wave above zero to be green and below zero is red...The one you sent me just repaints red and green regardless if its above or below the Zero line
( at June 29, 2019 2:41 pm)
0
Private answer

Here you go:

plot data = TTM_Wave().Wave1;
AssignBackgroundColor(if data > 0 then Color.GREEN else if data < 0 then Color.RED else Color.CURRENT);

Marked as spam
Posted by (Questions: 37, Answers: 4117)
Answered on June 30, 2019 10:53 am