TradingView Pine Script programming tutorials
PART 1
Introduction
Platform
PART 2
Fundamentals
Operators
IntroOperators for variablesArithmetic operators
History operatorIf/else operators
If/else
Types of if statements
Strings
String comparison
String manipulationString casingString formatting
PART 3
Settings
Script settings
IntroName settingsChart settings
Indicator settings
Strategy settings
Intro
- The strategy() function
- All strategy settings
- Recommended settings
- Manual strategy settings
- Configure with code or hand
Commission settingsOrder settings
Inputs
Types of inputs
PART 4
Work with Pine Script
Bar data
Price data
Instrument data
IntroductionSymbol nameSymbol tick
Currency
Symbol featuresSymbol time
Chart information
Time frame tests
Ungrouped
Bar state
Math
Time & date
Time countdown
Time zone
Intro
Session
Define sessionsSession info
Technical analysis
Example indicators
Volatility indicators
PART 5
Visual output
Colours
Bar colour
Bar colour examples
Background colour
Colour full background
Colour background part
Filled background examples
Plots
PART 6
Alerts
Alert conditions
IntroProgram alertsAlert placeholders
Alerts on chart
Strategy alerts
Alert placeholders
PART 7
Drawings
Labels
Change label location
- Move label functions
- Update time coordinate
- Update price coordinate
- Update time & price
- Modify time coordinate style
- Set label anchoring
Work with label text
Boxes
Set box location
- Functions that move box
- Move right border
- Move left border
- Update top border
- Update bottom border
- Change left & top borders
- Change right & bottom borders
Visual appearance
Trend lines
Make & delete linesGet line coordinatesUpdate line coordinates
Extend linesChange appearance
PART 8
Advanced Pine Script
Arrays
PART 9
Trading strategies
Orders
Entry ordersExit ordersOrder features
Stop-loss examplesOrder functions
Trailing stop examplesOrder groupsOrder issuesOrders FAQTake profit examplesUngrouped
Backtesting
Trade info
Position info
Strategy performance
ProfitEquity
Trades
Risk management
IntroGlobal risk functions
Intra-day risk functionsStreak management
Weekly risk metricsOther
Money management
Automated trading
Example strategies
Trend following
Price actionCountertrendMean reversionVolatilityCalender
Alert automation
Intro
PART 10
Appendix
Errors
Script errors
- Bad session spec
- One output function call
- Needs indicator() or strategy()
- Out of depth at index
- Requests too many securities
- Loop too long
Function errorsIndicator errorsStrategy errors
There are 40 chapters, 506 lessons, 1440 images, and 872k words in total.
