Uploaded May 2021 | Updated November 2026, 2 days ago
+ Pine Script Mastery Course: courses.theartoftrading.com/courses/pine-script-mastery
+ FREE Pine Script Basics Course: courses.theartoftrading.com/courses/pine-script-basics-course
+ My Indicators & Strategies Course: courses.theartoftrading.com/courses/my-indicators
+ Source Code: courses.theartoftrading.com/pages/pine-script-mastery-source-code#positionsize
+ My Free Indicators: zenandtheartoftrading.com/indicators
+ Create your FREE TradingView Account: 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 calculate your position size to use in your script's AutoView alerts for auto-trading forex through Oanda.
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 zenandtheartoftrading.com/about.
â–¼Timestampsâ–¼
00:00 - Intro
07:50 - Forex Position Size Theory
11:53 - Preparing Required Data
17:38 - Calculating Position Size
27:44 - Practical Example
40:14 - Outro + Discount!
#PineScript #TradingView #AutoView
+ Pine Script Mastery Course: courses.theartoftrading.com/courses/pine-script-mastery
+ FREE Pine Script Basics Course: courses.theartoftrading.com/courses/pine-script-basics-course
+ My Indicators & Strategies Course: courses.theartoftrading.com/courses/my-indicators
+ Source Code: courses.theartoftrading.com/pages/pine-script-mastery-source-code#positionsize
+ My Free Indicators: zenandtheartoftrading.com/indicators
+ Create your FREE TradingView Account: 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 calculate your position size to use in your script's AutoView alerts for auto-trading forex through Oanda.
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 zenandtheartoftrading.com/about.
â–¼Timestampsâ–¼
00:00 - Intro
07:50 - Forex Position Size Theory
11:53 - Preparing Required Data
17:38 - Calculating Position Size
27:44 - Practical Example
40:14 - Outro + Discount!
#PineScript #TradingView #AutoView










![Pine Script [OUTDATED V4] Tutorial | Lesson 5 | TradingView Script Alerts
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
Note: I forgot to mention in this lesson that you can only use ONE alert function per script. So if your script generates multiple alert conditions, then you must include all of your alert booleans in the single line of code. For example:
alertcondition(isRsiOB or isRsiOS or someThirdCondition or someFourthCondition, title=Alert Title, message=Alert Message)
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 add alert functionality to your custom-built scripts or any scripts that you find on TradingView that do not contain alert functionality already.
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 5 Source Code: https://zenandtheartoftrading.com/pinescript/how-to-create-tradingview-alerts/
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 5 | TradingView Script Alerts](https://i.ytimg.com/vi/BJr5JGDsMis/mqdefault.jpg)