Pine Script Mastery Course: https://courses.theartoftrading.com/c...
FREE Pine Script Basics Course: https://courses.theartoftrading.com/c...
Source Code: https://courses.theartoftrading.com/p...
My Indicators: https://zenandtheartoftrading.com/ind...
Create Your FREE TradingView Account: https://www.tradingview.com/gopro/?of...
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to use For Loops in your scripts. Today we're 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 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://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