Uploaded June 2023 | 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/detecting-key-trading-session-levels-in-pine-script
DAY TRADING TOOL LESSON: youtu.be/nT5RGa019kI
----------------------------------------------------
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to detect the highest high, lowest low and the closing price of a given trading session (based on a time window).
With over 16 years of coding experience and 5+ years of profitable 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 - Lesson Overview
01:38 - User Inputs
02:46 - Detecting When A Bar Falls Within A Certain Time
03:50 - Saving Session High/Low/Close
07:50 - Drawing Key Levels of Trading Session
09:39 - Summary
#PineScript #TradingView #Trading
🚩 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/detecting-key-trading-session-levels-in-pine-script
DAY TRADING TOOL LESSON: youtu.be/nT5RGa019kI
----------------------------------------------------
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to detect the highest high, lowest low and the closing price of a given trading session (based on a time window).
With over 16 years of coding experience and 5+ years of profitable 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 - Lesson Overview
01:38 - User Inputs
02:46 - Detecting When A Bar Falls Within A Certain Time
03:50 - Saving Session High/Low/Close
07:50 - Drawing Key Levels of Trading Session
09:39 - Summary
#PineScript #TradingView #Trading







![How To Use LABELS • 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#labels
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 guide covers how to use label objects to draw variable data onto your chart.
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:56 - Get EMA Difference
01:52 - Plotshape Limitation
02:35 - Label Function
06:51 - Convert Pips To Points
07:16 - Deleting Old Labels
07:50 - Use Cases
08:54 - Mastery Course
#PineScript #TradingView #Trading How To Use LABELS • Pine Script [OUTDATED V4] Tutorial](https://i.ytimg.com/vi/OdRZRWoGu3A/mqdefault.jpg)


