Diagnostics
T403
indicator input mixes timeframes
T403
The inputs to this indicator come from subscriptions with different timeframes. Compute it from one subscription, or align the data first.
Failing example
script "conf"
data a = subscribe(data.ohlcv, symbol: "a")
data b = subscribe(data.ohlcv, symbol: "b")
plot out = plot.line(title: "out")
on a.update {
out.plot(ta.ema((a.close ?? 0.0) - (b.close ?? 0.0), 5))
}Corrected example
script "fixed"
data chart = subscribe(data.ohlcv)
on chart.update { let average = ta.ema(chart.close, 3) }