Primer
Step-by-step tutorials that build real indicators.
- Your first indicatorBuild a moving average indicator line by line, see what each line does on the chart, then grow it with a second line and a color that follows the trend.
- Next stepsWhere to go after your first indicator - the reference manual, the official scripts you can read and copy, the starters, the tutorials and the Community.
- Tutorial: moving average ribbonBuild a ribbon of five EMAs over the price, filled between the outer lines and colored green, red or gray by how the averages are stacked.
- Tutorial: RSI divergence marksAn RSI in its own pane with levels and a shaded band, plus triangle marks where simple pivot-based bullish and bearish divergences are confirmed.
- Tutorial: volume spikesA volume histogram colored by bar direction, its moving average, highlighted spikes and alert conditions that fire when volume jumps.
- Tutorial: session high and lowTrack the high and low of each day, or of a trading session you choose, with state variables, and draw them as lines with price labels.
- Tutorial: multi-timeframe trendRead an EMA from a higher timeframe with request.tf, plot it on a lower-timeframe chart, color by trend, and learn which at mode avoids repainting.
- Tutorial: dashboard tablePut a small table in a corner of the chart that shows the trend, RSI and ATR, created once and filled in on the last bar.