Pine Script
Indicators, strategies, and TradingView scripting from first principles.
Getting Started with Pine Script v5
A practical introduction to Pine Script v5: scripts vs. studies, the execution model, and writing your first indicator on TradingView.
Read articlePlotting and Styling in Pine Script
Learn how to render values, lines, fills, and shapes on a TradingView chart with Pine Script v5 plotting functions and styling parameters.
Read articleCreating Alerts in Pine Script
Understand the difference between alertcondition and the alert function in Pine Script v5, and how to fire reliable notifications without acting on unconfirmed bars.
Read articleMulti-Timeframe Data with request.security
Pull higher-timeframe data into a Pine Script v5 chart with request.security while avoiding repainting through barmerge.lookahead_off and closed-bar offsets.
Read articleBacktesting a Strategy in Pine Script
How to declare a Pine v5 strategy, place and exit orders, configure commission and slippage, read the Strategy Tester, and avoid repainting.
Read article