Uploaded January 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
LINKS TO RESOURCES MENTIONED IN THIS VIDEO:
Free Pine Beginner Guide: youtube.com/watch?v=HYyuYgPRLpc
User-Defined Types Blog Post: tradingview.com/blog/en/pine-script-does-objects-35230
User-Defined Types Documentation: tradingview.com/pine-script-docs/en/v5/language/Objects.html
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to use user-defined data types in Pine Script.
User-defined types allow us to group several variables under a single object, which is not a significant change to how Pine Script functions, but is a convenient quality-of-life update that makes coding easier in some circumstances.
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 - Intro & Overview
02:53 - Defining A User Type Object
08:19 - Using User-Defined Types to Detect Pivots
13:44 - Using User-Defined Types in Arrays
19:30 - Summary & Outro
#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
LINKS TO RESOURCES MENTIONED IN THIS VIDEO:
Free Pine Beginner Guide: youtube.com/watch?v=HYyuYgPRLpc
User-Defined Types Blog Post: tradingview.com/blog/en/pine-script-does-objects-35230
User-Defined Types Documentation: tradingview.com/pine-script-docs/en/v5/language/Objects.html
Want to learn Pine Script? Look no further. I have you covered!
This lesson demonstrates how to use user-defined data types in Pine Script.
User-defined types allow us to group several variables under a single object, which is not a significant change to how Pine Script functions, but is a convenient quality-of-life update that makes coding easier in some circumstances.
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 - Intro & Overview
02:53 - Defining A User Type Object
08:19 - Using User-Defined Types to Detect Pivots
13:44 - Using User-Defined Types in Arrays
19:30 - Summary & Outro
#PineScript #TradingView #Trading

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

