• Get $40 off VIP by signing up for a free account! Sign Up

5-Minute MOMO Trade Indicator for ThinkorSwim


Staff member
I came across this strategy on the TradingSetupReviews site and thought it was interesting. The strategy is called 5-Minute Forex “MOMO”. There are only two components required for this setup. The Exponential Moving Average (EMA) and MACD. Of course, you would use this on the 5m chart as well.

Potential long setup:
  1. Price crosses above 20-period EMA
  2. MACD is crossing from negative to positive or has crossed to positive not more than 5 bars ago
  3. Go long 10 pips above 20-period EMA
  4. Stop loss at last swing low
Potential short setup:
  1. Price crosses below 20-period EMA
  2. MACD is crossing from positive to negative or has crossed to negative not more than 5 bars ago
  3. Go short 10 pips below 20-period EMA
  4. Stop loss at last swing high
You can learn more about this strategy here.


thinkScript Code

# 5-MINUTE Forex “MOMO” Indicator
# Based on the Forex Trade Setup mentioned on tradingsetupsreview.com
# Assembled by BenTen at useThinkScript.com

# Start EMA
input price = close;
input length = 20;
input displace = 0;
def AvgExp = ExpAverage(price[-displace], length);
def emaBull = price crosses above AvgExp;
def emaBear = price crosses below AvgExp;

# Run MACD
input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
input MACDaverageType = AverageType.EXPONENTIAL;
def Value = MovingAverage(MACDaverageType, close, fastLength) - MovingAverage(MACDaverageType, close, slowLength);
def Avg = MovingAverage(MACDaverageType, Value, MACDLength);
def Diff = Value - Avg;
def bullishEntry = Diff crosses above 0 within 5 bars;
def bearishEntry = Diff crosses below 0 within 5 bars;

# Plot Signals
plot longEntry = emaBull and bullishEntry;
plot shortEntry = emaBear and bearishEntry;

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

Can you make a bullish and bearish scan for this, please? I understand there will be a lot of results but I would limit my search criteria drastically to get the results I want.
Ben can you added a label to go long or short when the arrows signal. thanks
These labels only appear, if there is an arrow occurred on the current candle.

Put this code at the bottom of your script:
AddLabel(emaBull and bullishEntry, "go Long", color.green) ;
AddLabel(emaBear and bearishEntry, "go Short", color.red) ;

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
279 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.