Pine Script Video Lessons

Here’s a list of my YouTube Pine Script video lessons and the source code for each of them!

Lesson 1: Hello World!

study("Lesson 1")

Lesson 2: Drawing Data to the Chart

study("Lesson 2", overlay=true)
lookback = input(title="Lookback Period", type=input.integer, defval=50, minval=1)
highestHigh = highest(high, lookback)
lowestLow = lowest(low, lookback)
plot(highestHigh,, transp=0, linewidth=2)
plot(lowestLow,, transp=0, linewidth=2)

TradingView Charting Platform