top of page

BACKTEST YOUR STRATEGIES USING TRADINGVIEW!

pine script.png
LEARNING TRADINGVIEW PINE SCRIPT (1).png

FREE TRADINGVIEW PINE SCRIPT COURSE

Watch classes and copy codes for free to learn the basics for using the TradingView Pine Editor

Lesson 1 - Creating Stochastic Indicator

Cópia de Cópia de Cópia de Cópia de Cópi

//@version=4
study(title = "stochastic", overlay = false)
stochastic = ((close - lowest(low,5)) / (highest(high,5) - lowest(low,5))) * 100
plot(stochastic)

Click to watch the video

Lesson 2 - Inputs for Stochastic Indicator

Cópia de Cópia de Cópia de Cópia de Cópi

//@version=4
study(title = "stochastic", overlay = false)
k = input(5, title = "k")
stochastic = ((close - lowest(low,k)) / (highest(high,k) - lowest(low,k))) * 100
plot(stochastic)
plot(70)
plot(30)

Click to watch the video

Lesson 3 - Plotting a Moving Average

Design sem nome (8).png

//@version=4
study(title = "name", overlay = true)
MovingAverageSource = input(close, title = "Source")
MovingAverageLength = input(20, title = "Length")
a = sma(MovingAverageSource,MovingAverageLength)
plot(a)

Click to watch the video

Lesson 4 - Variable declaration and variable assignment

Cópia de Cópia de Cópia de Cópia de Cópi

Click to watch the video

//@version=4
study(title = "name", overlay = false)

//variable declaration
var int a = na
var float b = na
var bool c = na
var color d = na

// variable assignment
a := 7
b := 7.77
c := true
d := color.lime

plot(a, color = d)
plot(b, color = d)

Lesson 5 - Creating Macd

Cópia de Cópia de Cópia de Cópia de Cópi

//@version = 4
study("MACD")
FastLenght = ema(close,12)
SlowLenght = ema(close,26)
macd = FastLenght - SlowLenght
signal = ema(macd,12)

plot(macd, color=color.blue)
plot(signal, color=color.red)

Click to watch the video

Lesson 6 - If else

STATEMENTS.png

//@version=4
study(title = "if else", overlay = true)

var color c = na

a = 7
b = 3

if (a < b)
    c := color.blue
else
    c := color.yellow

    
barcolor(c)    

Click to watch the video

Lesson 7 - Identifying the market trend with if statements

Cópia de Cópia de Cópia de Cópia de Cópi

//@version=4
study(title = "name", overlay = true)

var color x = na

a = close
b = sma(close,50)

if (a > b)
    x := color.lime
    
if (a < b)
    x := color.red
    
barcolor(x)
plot(b, color = x)

Click to watch the video

More Lessons Coming Soon!

 

If you want more videos just subcribe to the channel

LEARNING TRADINGVIEW PINE SCRIPT (1).png

Learning TradingView Pine Script Programming Trough Examples (Backtesting)

Learn quickly and objectively how to use the TradingView Pine Script language to test different strategies and become a better trader. This ebook contains several strategies explained and written in Pine Script to serve as a basis for building other strategies.

​THIS IS A PRACTICAL AND OBJECTIVE MANUAL WITH SEVERAL CODES WRITTEN IN PINE SCRIPT AND EXPLAINED FOR TRADERS WHO WANT TO TEST STRATEGIES

bottom of page