Alert: HA candle closes above SMA

MacGyver85

New member
VIP
Hello, new to the forum as a paying user, after having spent some time earlier this calendar year investigating some of the awesome things that many of you have built here. I am not what anyone would consider to be a coder, although I'd like to learn.

I've attached a screenshot of a set of studies that had been cobbled together earlier in the year, and while I apologize for not knowing who to credit for them, I wanted to make sure credit was being given as best as possible.

Now to my question.....in the second picture, of the 3m SPY timeframe, the HA candles are a special study, while the blue and mustard candles are the standard view of my chart. I've also added a SMA 1-period white line, based on the closing standard candle price. What I'm looking to do is create some kind of sound and visual alert for instances where the normal candle close (the white line) was entirely above the full range of the HA candle (including wicks) and the HA candle was red, and also for instances where the normal candle close (again, the white line) sat below the entirety of a green HA candle.
1763952994533.png
Screenshot 2025-11-23 at 9.59.43 PM.png
Screenshot 2025-11-23 at 9.59.43 PM.png
I've circled two separate instances where I'd want for this alert to "fire" after the candles have closed. Is this possible? I'm surely hoping that it is, and I'm happy to try and learn how to fish if anyone has resources I could reference. Open to any and all feedback/suggestions, literal solutions, etc. TYIA!
 
Welcome to our community.

Please provide the indicators you're working with, especially those in question and needing modification.

Just viewing pictures isn't enough for us to help debug or modify your script.
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
590 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top