Pine Script: A two-target MACD Strategy
The Art of Trading
🚩 My Socials & More Free Content: https://theartoftrading.com 🚩 FREE Pine Script Basics Course: https://courses.theartoftrading.com/courses/pine-script-basics-course 🚩 Pine Script Mastery Course: https://courses.theartoftrading.com/courses/pine-script-mastery 🚩 My Indicators & Strategies Course (Steal My Code!): https://courses.theartoftrading.com/courses/my-indicators
🔷 Create your FREE TradingView Account: https://www.tradingview.com/gopro/?offer_id=10&aff_id=15271
-------------- LESSON INFO -------------- LESSON SOURCE CODE: https://courses.theartoftrading.com/pages/pine-script-mastery-code#strategy2 NICK RADGE'S TRADING BOOK: https://amzn.to/3B1dtPs MY ZEN LIBRARY SCRIPT: https://www.tradingview.com/script/yUWPxUBt-ZenLibrary/?offer_id=10&aff_id=15271 MY AUTOVIEW SERIES: https://www.youtube.com/watch?v=MZvgqJaaSNs&list=PLSP_1DBafH-EYd8t-DUrPaAhsoOD-vZ1D MY BAR MAGNIFIER VIDEO: https://www.youtube.com/watch?v=5UzXzewiFKQ
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how I created a 2-target MACD trading strategy script for TradingView's Strategy Tester.
I also share some of my thoughts on how I go about the process of vetting viable strategies to test.
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.
MORE RESOURCES: 🔷 My Blog & Socials: https://www.theartoftrading.com 🔷 My Free Indicators: https://zenandtheartoftrading.com/indicators/ 🔷 My Favorite Trading Books: https://zenandtheartoftrading.com/top-10-best-trading-books/ 🔷 My Favorite Trading Psychology Books: https://zenandtheartoftrading.com/trading-psychology/10-best-trading-psychology-books-of-all-time/ 🔷 My Trading Video Library: https://zenandtheartoftrading.com/video-library/
🎤 The Art of Trading Podcast: http://thetradingpodcast.com/
If you want more information about who I am and what I do, head over to https://zenandtheartoftrading.com/about.
â–¼Timestampsâ–¼ 00:00 - Intro 01:30 - Strategy Overview 11:44 - Hello World! 16:54 - Getting User Inputs 19:45 - Getting MACD Values 20:49 - Getting Filters & Indicators 23:30 - Detecting Entry Conditions 29:34 - Entering Trades 34:00 - Exiting Trades (2 targets) 37:11 - Coding Break-Even Stop Loss 42:36 - Calculating Fixed Percentage Risk On Forex 55:55 - Briefly Analyzing Performance 1:04:12 - Summary
#PineScript #TradingView #Indicator ... https://www.youtube.com/watch?v=P1Lol05qb5s
266389846 Bytes