TRIN Label


Category:
0
0

Hello Pete,

How do I display a chart label in TOS for symbol $TRIN closing value of previous day. Also make the label color green is the value is over 2 and color gray if the value is between 0.5 to 2 and color red if value is below 0.5.

Thank you

Marked as spam
Posted by (Questions: 6, Answers: 5)
Asked on August 23, 2019 6:52 am
422 views
0
Private answer

def trinDailyClose = close(symbol = "$TRIN", period = AggregationPeriod.DAY)[1];
AddLabel(yes, trinDailyClose, if trinDailyClose > 2.0 then Color.GREEN else if trinDailyClose > 0.5 then Color.GRAY else Color.RED);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on August 23, 2019 9:07 am