Diagnostics
T408
TA source uses a calendar timeframe
T408
Indicators cannot run directly on variable-length month or year timeframes. Use a fixed-length timeframe, such as hours, days, or weeks, before applying the indicator.
Failing example
script "example"
data chart = subscribe(data.ohlcv, timeframe: 1M)
on chart.update { let value = ta.ema(chart.close, 3) }Corrected example
script "fixed"
data chart = subscribe(data.ohlcv, timeframe: 1h)
on chart.update { let average = ta.ema(chart.close, 3) }