Uploaded November 2022 | 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 SOURCE CODE: courses.theartoftrading.com/pages/referencing-lower-timeframes-in-pine-script
HOW TO USE TABLES: youtube.com/watch?v=B7uXJTFc_Hs
MAKE A BACKTESTER DISPLAY USING TABLES: youtube.com/watch?v=EYg50SX43JQ
----------------------------------------------------
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to access lower timeframe data. Specifically, in today's tutorial we are going to use arrays to reference the past 10 day's worth of ATR values on the Weekly and Monthly charts - but this technique works on all timeframes.
With over 16 years of coding experience and 5+ 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 - Student Question
03:11 - Getting User Input
04:04 - Safely Retrieving Array Values
07:17 - Getting Lower Timeframe Data
10:20 - Using Arrays To Store Data
19:00 - Validating Our Code
24:05 - Getting More Lower Timeframe Data
26:10 - Displaying Array Data in a Table
27:18 - Summary & Outro
#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
LESSON SOURCE CODE: courses.theartoftrading.com/pages/referencing-lower-timeframes-in-pine-script
HOW TO USE TABLES: youtube.com/watch?v=B7uXJTFc_Hs
MAKE A BACKTESTER DISPLAY USING TABLES: youtube.com/watch?v=EYg50SX43JQ
----------------------------------------------------
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to access lower timeframe data. Specifically, in today's tutorial we are going to use arrays to reference the past 10 day's worth of ATR values on the Weekly and Monthly charts - but this technique works on all timeframes.
With over 16 years of coding experience and 5+ 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 - Student Question
03:11 - Getting User Input
04:04 - Safely Retrieving Array Values
07:17 - Getting Lower Timeframe Data
10:20 - Using Arrays To Store Data
19:00 - Validating Our Code
24:05 - Getting More Lower Timeframe Data
26:10 - Displaying Array Data in a Table
27:18 - Summary & Outro
#PineScript #TradingView #Indicator





![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)




