Technical Charting for Stocks
Custom Indicator
Pro feature. Scripts run locally in your browser and are saved to your account
when settings sync is available. Return one numeric value per candle using
data, index, and candles.
Custom indicators are a Pro feature.
drag or click
Formula code
Return one number or
null for each candle. Tips
data is the current candle: open, high, low, close, volume.index is the current candle number, starting at 0.candles is the full loaded candle array for lookbacks.Use warm-up guards like
if (index + 1 < period) return null;.Do not use future bars like
candles[index + 1].Keep the output numeric so it can be plotted as a line.
Indicator Parameters
Change the core calculation periods for built-in studies. Saved chart templates remember these values.