Pine Script Mastery Course:
FREE Pine Script Basics Course:
Create Your FREE TradingView Account:
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to create an ATR-based trailing stop loss script that triggers inbuilt AutoView alerts to tell Oanda to automatically update your stop loss to lock in open profits.
With over 15 years of coding experience and 4+ years of trading experience, I specialize in TradingView’s Pine Script programming language and I’m here to pass on everything I’ve learned about both trading and coding.
If you want more information about who I am and what I do, head over to
00:00 – Intro
00:44 – Overview
02:35 – Getting User Input
07:31 – Preparing Trailing Stop Variables
09:52 – Calculating ATR Trailing Stop
14:00 – Resetting Trailing Stop
17:11 – Preparing AutoView Alert Prefix
20:51 – AutoView Alert Code
27:25 – Adding Bar Time Input
30:57 – Live Trade Example
32:22 – Outro
#PineScript #TradingView #AutoView
This post was automatic generated with this wp-automatic-plugin