Trending MACD + HMA Scan & Watchlist For ThinkOrSwim

TPTrades

Member
VIP
Good Afternoon Everyone,

I'm looking for a scanner or indicator where the price action crosses the MACD zero line and the 200 moving average. Most preferably the 200 Hulls Moving Average. Please help! I've back tested it on many charts and looks very promising. Also, hopes this helps someone else along with the community.
 
To Find Trending Stocks

Scan for Price crossing above Hullma and MACD crossing above 0
This is a script is written for the SCAN HACKER only.
As such, you can stuff this code straight into the scanner.

These scripts have been updated, to clean up some logic:
Ruby:
#Scan for Price crossing above Hull and MACD crossing above 0
input fast = 12;  input slow = 26;  input Length = 5;
def nMACD = MACD(fastLength = fast, slowLength = slow, MACDLength = Length);
input hullLEN = 200;
def hullAVG = HullMovingAvg(length = hullLEN);
plot scan =
((nMACD crosses above 0 within 3 bars) and close crosses above hullAVG)
 or
(nMACD crosses above 0 and (close crosses above hullAVG within 3 bars));

This script is written for WATCHLIST column only.
color key:
cyan = macd cross above 0 and hull cross above 200
green = macd above 0 and hull above 200
red = macd below 0 and hull below 200
gray = macd below 0 OR hull below 200

Ruby:
# Watchlist for Price above Hull and MACD above 0
input fast = 12;  input slow = 26;  input Length = 5;
plot nMACD = MACD(fastLength = fast, slowLength = slow, MACDLength = Length);
input hullLEN = 200;
def hullAVG = HullMovingAvg(length = hullLEN);


plot scan =
((nMACD crosses above 0 within 3 bars) and close crosses above hullAVG)
 or
(nMACD crosses above 0 and (close crosses above hullAVG within 3 bars));

AssignBackgroundColor(
if scan then color.cyan else
if nMACD > 0 and close > hullAVG  then color.green else
if nMACD < 0 and close < hullAVG then color.red else color.gray);
 
Last edited:

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
380 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