Daily $tick MA Label on intraday ES chart?


Category:
0
0

Hi Pete,

I’m wondering if you can create Thinkscript to place a label on my intraday ES chart that shows a daily simple moving average of the $TICK? 8 days for example. Thank you!

Marked as spam
Posted by (Questions: 2, Answers: 4)
Asked on October 29, 2019 2:37 pm
111 views
0
Private answer

This should do it.

input tickerSymbol = "$TICK";
input maType = AverageType.SIMPLE;
input maLength = 8;
def priceC = close(symbol = tickerSymbol, period = AggregationPeriod.DAY);
def ma = MovingAverage(maType, priceC, maLength);
AddLabel(yes, Concat(tickerSymbol, Concat(" SMA: ", ma)), Color.WHITE);AddLabel(yes, Concat("$TICK 8SMA: ", ma), Color.WHITE)

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on October 29, 2019 8:32 pm