Pine Script V4: A Breakout Strategy

Published: 26 August 2021
on channel: The Art of Trading
32,768
644

🚩 My Socials + More FREE CONTENT: https://theartoftrading.com/
🚩 Pine Script Mastery Course: https://courses.theartoftrading.com/c...
🚩 My Indicators & Strategies Course (Steal My Code!): https://courses.theartoftrading.com/c...

LESSON RESOURCES:
📊 Source Code: https://courses.theartoftrading.com/p...
📊 Backtesting Guide: https://www.backtestingfx.com/

🔷 FREE Pine Script Basics Course: https://courses.theartoftrading.com/c...
🔷 Create your FREE TradingView Account: https://www.tradingview.com/gopro/?of...
🔷 My FREE Indicators: https://zenandtheartoftrading.com/ind...

In this lesson I answer a question from a Mastery Course student. He wanted to create a tool to assist him in trading intraday breakouts of previous daily highs & lows, and that's exactly what this script does!

Want to learn Pine Script? Look no further. I have you covered.

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 https://theartoftrading.com/

▼Timestamps▼
00:00 - Intro & Overview
01:25 - User Input
02:43 - Get Daily High & Low
04:35 - Calculating Entry, Stops & Targets
07:14 - Detecting A New Day
08:24 - Setting Buy Stop & Sell Stop Orders
10:00 - OCA (One-Cancels-All Parameter)
12:05 - Exiting Trades
13:10 - Drawing Strategy Info to Chart
14:34 - Analyzing Some Example Trades
15:25 - Warning About TradingView's Strategy Tester
18:05 - Notes About Backtesting & Confirming Profitability
21:23 - Summary & Outro

#PineScript #TradingView #Strategy