TMO with Higher Agg_Mobius @ TSL

Thanks MerryDay! so the original code I have has the green overbought area, and the global version has the Red up there. I've tried, but I can't figure out where in the code to change those colors around, can someone point me in the right direction?
 

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

Turned this into an upper indicator with breakout arrows and it's amazing for reversals. You'll get alot of fakeouts in choppy markets, so look for confirmations elsewhere. Quickest reversal alert I've found.

Code:
# TMO ((T)rue (M)omentum (O)scillator) With Higher Aggregation breakouts only
# Mobius
# custom by WTF_Dude based off V01.05.2018
#hint: TMO calculates momentum using the DELTA of price. Giving a much better picture of trend, trend reversals and divergence than momentum oscillators using price.
 
declare upper;
 
input length = 21;
input calcLength = 5;
input smoothLength = 3;
input agg = AggregationPeriod.DAY;

 
def o = open(period = agg);
def c = close(period = agg);
def data = fold i = 0 to length
           with s
           do s + (if c > getValue(o, i)
                   then 1
                   else if c < getValue(o, i)
                        then - 1
                        else 0);
def EMA5 = ExpAverage(data, calcLength);
def Main = ExpAverage(EMA5, smoothLength);
def Signal = ExpAverage(Main, smoothLength);
     #Main.AssignValueColor(if Main > Signal
       #                    then color.green
         #                 else color.red);
    # Signal.AssignValueColor(if Main > Signal
     #                        then color.green
      #                       else color.red);
    # Signal.HideBubble();
     #Signal.HideTitle();
#addCloud(Main, Signal, color.green, color.red);



plot Bull = Crosses(main, signal, CrossingDirection.ABOVE);
plot Bear = Crosses(main, signal, CrossingDirection.BELOW);
Bull.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Bull.SetDefaultColor(Color.CYAN);
Bull.SetLineWeight(2);
Bear.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Bear.SetDefaultColor(Color.MAGENTA);
Bear.SetLineWeight(2);
Hey just FYI I was testing the original post 1 minute TMO with 14, 6, 2 (I know 1 minute wasn't recommended) but when I tried your upper study I couldn't get them to match at their pivots now matter how much I tried dialing them in.
 
Hey just FYI I was testing the original post 1 minute TMO with 14, 6, 2 (I know 1 minute wasn't recommended) but when I tried your upper study I couldn't get them to match at their pivots now matter how much I tried dialing them in.
Test on higher aggregations, that way you can determine if the problem is due to the noise on the 1min aggregation or if this is a problem that needs trouble-shooting. Come back and tell us your results
 
Last edited:
Hi @markos, @MerryDay, @BenTen, I know this thread is for TMO with aggregation, and there's a problem with aggregation when scanning in TOS. I only need the 2 min, is there any way to hard code the 2 min in TMO and not allow any other aggregations (1,3,4,5..etc), so I can use the TOS scanner? TIA.
The ToS platform Scan Hacker only provides for single timeframe scanning.
 
Thread starter Similar threads Forum Replies Date
tenacity11 Archived: TMO True Momentum Oscillator Indicators 346
BenTen TMO True Momentum Oscillator For ThinkOrSwim Indicators 121

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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