Pine Script Tutorials
Start from zero and build indicators, signals, strategies, alerts, and trading tools one lesson at a time.
All examples in this course use Pine Script v6.
Foundations
Section titled “Foundations”001 — What is Pine Script?What the language is, what it can build, and where it fits in a trading workflow.
002 — Your first indicatorCreate a complete indicator and understand every line.
003 — Price data and seriesUse OHLCV data, historical values, and bar-to-bar calculations.
004 — Inputs and moving averagesMake scripts configurable and calculate a simple moving average.
005 — Conditions and signalsCreate crossover conditions, chart markers, and alert conditions.
Course roadmap
Section titled “Course roadmap”The next sections will expand toward:
- Plotting, colors, shapes, labels, lines, boxes, and tables
- Variables, types, operators, conditions, loops, functions, and methods
- Technical-analysis functions in the
tanamespace - Timeframes, sessions, symbols, and
request.security() - Indicators, strategies, orders, stops, targets, commissions, and slippage
- Repainting, realtime bars, confirmed signals, and reliable alerts
- Webhooks, broker connections, automation, and production safeguards
The numbering is intentionally permanent. New lessons can be added without changing existing URLs.