chroma/lexers/testdata/tradingview.actual
2025-03-22 20:46:00 +13:00

14 lines
No EOL
392 B
Text

//@version=3
study(title="Chroma example script", overlay=true, precision=3)
emaLen = input(title="EMA Length", type=integer, defval=10)
emaVal = ema(close, emaLen)
plot(series=emaVal, style=circles, offset=2, linewidth=3)
// Colour background
bgcolor(color=close > open ? orange :
close != high[1] ? purple :
na, transp=80)
// Comment as last line should be recognised properly