Anyone knows a code which can draw lines for daily SMA5, Daily SMA10, ..etc. on other charts with different time frames or ticks charts or range bars charts.
Thanks
There you go:
Timeframe(Daily,UpdateOnClose)
DailySMA10a = average[10,0](close)
Timeframe(Daily,default)
DailySMA10b = average[10,0](close)
Timeframe(default)
RETURN DailySMA10a AS "DailySMA10a",DailySMA10b AS "DailySMA10b"
but you can only use this indicator with time-based charts, not ticks, range bars, etc…