Uploaded November 2021 | Updated November 2026, 3 hours 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
LESSON RESOUCES:
🔷 ZenLibrary Source Code: tradingview.com/script/yUWPxUBt-ZenLibrary
🔷 TradingView Blog: tradingview.com/blog/en/say-hello-to-pine-script-v5-26900
🔷 Library Documentation: tradingview.com/pine-script-docs/en/v5/concepts/Libraries.html#libraries
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how the new library feature works in Pine Script. You can now create custom libraries that contain reusable functions in them, meaning that you can write your code once and then import it into as many scripts as you like (or publish them for other traders to use).
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:
🔷 This Lesson's Source Code: courses.theartoftrading.com/pages/pine-script-mastery-source-code#
🔷 My Blog: 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
01:35 - Library Overview
07:15 - How to Import Libraries
09:34 - ZenLibrary - Utility Functions
15:34 - ZenLibrary - Technical Analysis Functions
22:12 - ZenLibrary - Candle Pattern Detection Functions
31:22 - ZenLibrary - Conditional Filter Functions
34:40 - ZenLibrary - Display Functions
25:22 - Summary
#PineScript #TradingView #Library
🚩 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
LESSON RESOUCES:
🔷 ZenLibrary Source Code: tradingview.com/script/yUWPxUBt-ZenLibrary
🔷 TradingView Blog: tradingview.com/blog/en/say-hello-to-pine-script-v5-26900
🔷 Library Documentation: tradingview.com/pine-script-docs/en/v5/concepts/Libraries.html#libraries
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how the new library feature works in Pine Script. You can now create custom libraries that contain reusable functions in them, meaning that you can write your code once and then import it into as many scripts as you like (or publish them for other traders to use).
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:
🔷 This Lesson's Source Code: courses.theartoftrading.com/pages/pine-script-mastery-source-code#
🔷 My Blog: 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
01:35 - Library Overview
07:15 - How to Import Libraries
09:34 - ZenLibrary - Utility Functions
15:34 - ZenLibrary - Technical Analysis Functions
22:12 - ZenLibrary - Candle Pattern Detection Functions
31:22 - ZenLibrary - Conditional Filter Functions
34:40 - ZenLibrary - Display Functions
25:22 - Summary
#PineScript #TradingView #Library
![How To Use EMA FILTERS • 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
Source Code: https://courses.theartoftrading.com/pages/pine-script-mastery-source-code#emafilters
My Indicators: https://zenandtheartoftrading.com/indicators/
Pine Scripters Network (Forum): https://www.pinescripters.net
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to use Exponential Moving Average (EMA) filters in your scripts to determine when NOT to display trading signals.
With over 15 years of coding experience and 4+ years of trading experience, I 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
01:08 - User Input
01:26 - Get EMAs
02:34 - Detect Entry Reasons
05:46 - Get Filters
11:47 - EMA Breach Filter
17:47 - Pine Script Mastery Course
#PineScript #TradingView #Indicator How To Use EMA FILTERS • Pine Script [OUTDATED V4] Tutorial](https://i.ytimg.com/vi/xud0IdskTf4/mqdefault.jpg)
![💹 How to use AUTOVIEW ALERTS to manage profitable TRADES 💹 [PSv4]
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
AutoView: https://autoview.with.pink/
My Indicators: https://zenandtheartoftrading.com/indicators/
Create Your FREE TradingView Account: https://www.tradingview.com/gopro/?offer_id=10&aff_id=15271
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to use AutoView to manage your stop loss by moving it to break-even after price goes into your favor.
With over 15 years of coding experience and 4+ years of trading experience, I 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
02:20 - Clear Orders Command
04:04 - Updating Stop Loss & Take Profit
06:27 - Setting Up Trade Management Alert
08:50 - Example Demonstration
#PineScript #TradingView #AutoView 💹 How to use AUTOVIEW ALERTS to manage profitable TRADES 💹 [PSv4]](https://i.ytimg.com/vi/y3mS9nh80FY/mqdefault.jpg)
![How to add FILTERS to a STRATEGY SCRIPT 🤖 AutoView Guide (PART 7/8) [PSv4]
+ 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 & Strategies Course: https://courses.theartoftrading.com/courses/my-indicators
+ Source Code: https://courses.theartoftrading.com/pages/pine-script-mastery-source-code#hammers
+ Podcast: http://thetradingpodcast.com/
+ My Free Indicators: https://zenandtheartoftrading.com/indicators/
+ Create your FREE TradingView Account: https://www.tradingview.com/gopro/?offer_id=10&aff_id=15271
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to add GTD limit order functionality to our previous script as well as how to implement several different conditional filters to attempt to enhance the accuracy of the strategy.
With over 15 years of coding experience and 4+ years of trading experience, I 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
01:25 - Compiler Warnings
04:20 - Adding GTD to Limit Orders
15:20 - ATR Filter
19:41 - EMA Filter
25:10 - Date Filter
27:22 - Time Filter
31:44 - Visual Feedback
34:08 - Outro & More Info!
#PineScript #TradingView #AutoView How to add FILTERS to a STRATEGY SCRIPT 🤖 AutoView Guide (PART 7/8) [PSv4]](https://i.ytimg.com/vi/y6GVGDCrWSc/mqdefault.jpg)

![How to use FOR LOOPS in Pine Script • 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
Source Code: https://courses.theartoftrading.com/pages/pine-script-mastery-source-code#forloops
My Indicators: https://zenandtheartoftrading.com/indicators/
Create Your FREE TradingView Account: https://www.tradingview.com/gopro/?offer_id=10&aff_id=15271
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to use For Loops in your scripts. Today were using a For Loop to count the past X amount of positive bars, then converting that number into a percentage in order to create a Positive Bars Oscillator.
With over 15 years of coding experience and 4+ years of trading experience, I 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
01:16 - Setting Up The Script
02:20 - Getting User Input
03:17 - Using For Loops
05:51 - Counting Bullish Bars
07:23 - For Loop Operators
09:20 - Getting Positive Bars %
09:50 - Plotting Data to Chart
13:46 - Adding Alert Functionality
18:40 - Recap
20:10 - Pine Script Courses
#PineScript #TradingView #Indicator How to use FOR LOOPS in Pine Script • Pine Script [OUTDATED V4] Tutorial](https://i.ytimg.com/vi/yE3aAx8plLk/mqdefault.jpg)



![Detecting HAMMERS & SHOOTING STARS • 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
Source Code: https://courses.theartoftrading.com/pages/pine-script-mastery-source-code#hammerstars
My Indicators: https://zenandtheartoftrading.com/indicators/
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to detect hammer & shooting star candles.
With over 15 years of coding experience and 4+ years of trading experience, I 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:56 - The Theory
02:24 - Get User Input
03:30 - Calculating Fibonacci Levels
04:33 - Getting Price Source
05:42 - Detecting Hammers & Shooting Stars
06:32 - Drawing Signals
07:09 - Adding Alerts
07:56 - Color Filter
09:58 - Pine Script Mastery Course
#PineScript #TradingView #Indicator Detecting HAMMERS & SHOOTING STARS • Pine Script [OUTDATED V4] Tutorial](https://i.ytimg.com/vi/z3Sq6snvFQs/mqdefault.jpg)

