Uploaded February 2022 | Updated November 2026, 1 day ago
🚩 My Socials & More Free Content: theartoftrading.com
🚩 FREE Pine Script Basics Course: courses.theartoftrading.com/courses/pine-script-basics-course
🚩 Pine Script Mastery Course: courses.theartoftrading.com/courses/pine-script-mastery
🚩 My Indicators & Strategies Course (Steal My Code!): courses.theartoftrading.com/courses/my-indicators
🔷 Create your FREE TradingView Account: tradingview.com/gopro/?offer_id=10&aff_id=15271
This lesson covers repainting in great detail, including a few examples of when repainting occurs, why repainting occurs, and how to prevent repainting from occurring if it's interfering with your script's functionality.
A Great Case-Study Of Repainting: tradingview.com/script/00jFIl5w-security-revisited-PineCoders
Documentation On Repainting: tradingview.com/pine-script-docs/en/v5/concepts/Repainting.html
Best article / code examples of repainting issues: tradingview.com/script/cyPWY96u-How-to-avoid-repainting-when-using-security-PineCoders-FAQ
------------------------------------------------------------------------------------------------
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.
MORE RESOURCES:
🔷 My Blog & Socials: theartoftrading.com
🔷 My Free Indicators: zenandtheartoftrading.com/indicators
🔷 My Favorite Trading Books: zenandtheartoftrading.com/top-10-best-trading-books
🔷 My Favorite Trading Psychology Books: zenandtheartoftrading.com/trading-psychology/10-best-trading-psychology-books-of-all-time
🔷 My Trading Video Library: zenandtheartoftrading.com/video-library
🎤 The Art of Trading Podcast: thetradingpodcast.com
If you want more information about who I am and what I do, head over to zenandtheartoftrading.com/about.
â–¼Timestampsâ–¼
00:00 - Intro
00:15 - Overview
03:30 - Repainting Alerts
08:20 - Indicator Repainting
11:40 - Candle Setup Repainting
16:05 - Security Function Repainting
20:20 - Look-ahead Bias
25:40 - Summary
#PineScript #TradingView #Indicator
🚩 My Socials & More Free Content: theartoftrading.com
🚩 FREE Pine Script Basics Course: courses.theartoftrading.com/courses/pine-script-basics-course
🚩 Pine Script Mastery Course: courses.theartoftrading.com/courses/pine-script-mastery
🚩 My Indicators & Strategies Course (Steal My Code!): courses.theartoftrading.com/courses/my-indicators
🔷 Create your FREE TradingView Account: tradingview.com/gopro/?offer_id=10&aff_id=15271
This lesson covers repainting in great detail, including a few examples of when repainting occurs, why repainting occurs, and how to prevent repainting from occurring if it's interfering with your script's functionality.
A Great Case-Study Of Repainting: tradingview.com/script/00jFIl5w-security-revisited-PineCoders
Documentation On Repainting: tradingview.com/pine-script-docs/en/v5/concepts/Repainting.html
Best article / code examples of repainting issues: tradingview.com/script/cyPWY96u-How-to-avoid-repainting-when-using-security-PineCoders-FAQ
------------------------------------------------------------------------------------------------
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.
MORE RESOURCES:
🔷 My Blog & Socials: theartoftrading.com
🔷 My Free Indicators: zenandtheartoftrading.com/indicators
🔷 My Favorite Trading Books: zenandtheartoftrading.com/top-10-best-trading-books
🔷 My Favorite Trading Psychology Books: zenandtheartoftrading.com/trading-psychology/10-best-trading-psychology-books-of-all-time
🔷 My Trading Video Library: zenandtheartoftrading.com/video-library
🎤 The Art of Trading Podcast: thetradingpodcast.com
If you want more information about who I am and what I do, head over to zenandtheartoftrading.com/about.
â–¼Timestampsâ–¼
00:00 - Intro
00:15 - Overview
03:30 - Repainting Alerts
08:20 - Indicator Repainting
11:40 - Candle Setup Repainting
16:05 - Security Function Repainting
20:20 - Look-ahead Bias
25:40 - Summary
#PineScript #TradingView #Indicator

![Pine Script [OUTDATED V4] Tutorial | Lesson 6 | Detecting Engulfing Candles
Pine Script Mastery Course: https://courses.theartoftrading.com/courses/pine-script-mastery
FREE Pine Script Basics Course: https://courses.theartoftrading.com/courses/pine-script-basics-course
My Indicators: https://zenandtheartoftrading.com/indicators/
Pine Scripters Network (Forum): https://www.pinescripters.net
Want to learn how to code in Pine Script but unsure of where to even start? Fear not! I have you covered.
In this video lesson series Im going to teach you how to create your own scripts in TradingViews Pine Script programming language.
Todays lesson covers how to detect engulfing candles in Pine Script. By building on past lessons and including the RSI indicator as a filter, we create the beginnings of a strategy script or setup detection tool that you can customize for your own trading process.
Get ready to take your trading to the next level. Im excited to share my knowledge with the trading community to help you guys enhance your edge and become the best traders you can possibly be!
For more information visit my website where I have a series of text lessons as well as my collection of open-source TradingView indicators: https://zenandtheartoftrading.com/pinescript/
Lesson 6 Source Code: https://zenandtheartoftrading.com/pinescript/how-to-detect-candle-patterns/
Pine Script Wiki: https://www.tradingview.com/pine-script-docs/en/v4/Introduction.html
My Other Indicators: https://zenandtheartoftrading.com/indicators/
Visit https://zenandtheartoftrading.com for more forex and trading psychology tips!
Join My Mailing List: https://mailchi.mp/f29afd740719/zenandtheartoftrading
Public Forex Trading Journal: https://zenandtheartoftrading.com/forex-journal/
Best Trading Books: https://zenandtheartoftrading.com/top-10-best-trading-books/
Best Trading Videos: https://zenandtheartoftrading.com/video-library/
Best Charting Platform: https://zenandtheartoftrading.com/tradingview-review/
Best Indicators For Forex: https://zenandtheartoftrading.com/blog/forex/3-best-forex-trading-indicators/
Music: https://soundcloud.com/mjslabosz
Disclaimer:
The content covered in this video is NOT investment advice and I am not a financial advisor. The material covered and the resources offered are for educational purposes only. Always do your own research and only execute trades based on your own personal judgment.
#PineScript #TradingView #Indicator Pine Script [OUTDATED V4] Tutorial | Lesson 6 | Detecting Engulfing Candles](https://i.ytimg.com/vi/0dQmTf6K71U/mqdefault.jpg)







![How to use the STUDY Function • Pine Script [OUTDATED V4] Tutorial
Pine Script Mastery Course: https://courses.theartoftrading.com/courses/pine-script-mastery
FREE Pine Script Basics Course: https://courses.theartoftrading.com/courses/pine-script-basics-course
My Indicators: https://zenandtheartoftrading.com/indicators/
Pine Scripters Network (Forum): https://www.pinescripters.net
Want to learn TradingViews Pine Script? Look no further. I have you covered!
This lesson covers how to properly use the Study Annotation Function.
With over 15 years of coding experience and 4+ years of trading experience, I now specialize in TradingViews Pine Script programming language and Im here to pass on everything Ive learned about both trading and coding.
If you want more information about who I am and what I do, head over to https://zenandtheartoftrading.com/about.
â–¼Timestampsâ–¼
00:00 - Intro
00:55 - The Study Function
02:36 - Title
03:01 - Short Title
03:54 - Overlay
04:45 - Format
6:10 - Precision
7:25 - Scale
8:06 - Max Bars Back
9:10 - Outro
#PineScript #TradingView #Trading How to use the STUDY Function • Pine Script [OUTDATED V4] Tutorial](https://i.ytimg.com/vi/2v6shE34NQc/mqdefault.jpg)
