NexusFi: Find Your Edge


Home Menu

 





Momentum Indicator


Discussion in NinjaTrader

Updated
    1. trending_up 2,152 views
    2. thumb_up 2 thanks given
    3. group 5 followers
    1. forum 2 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
felixolmo
Washington DC
 
Posts: 1 since Dec 2021
Thanks Given: 0
Thanks Received: 0

Hi all - New to this community. Previously I was trading on ThinkorSwim, and currently I am also using Ninja Trader to trade futures. I normally use an indicator in ThinkorSwim called "True Momentum Oscillator"

I have been trying to convert that to Ninja Trader, but have been hitting a brick wall. I have some coding knowledge however might not be as good as I thought when talking about this conversation.

Does anyone have seen this indicator on Ninja Trader? Or Can anyone provide any support based on the Think or Swim Code?

declare Lower;

input length = 14;
input calcLength = 5;
input smoothLength = 3;


def o = open;
def c = close;
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);
plot Main = ExpAverage(EMA5, smoothLength);
plot Signal = ExpAverage(Main, smoothLength);


Thank you if anyone can help put.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
New Section 301 Probes Target 16 Trading Partners -- Tra …
Traders Hideout
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
Orban at 29pct as Hungary Votes Tomorrow -- McIlroy Surg …
Prediction Markets & Event Contracts
Q1 2026 Shatters All Derivatives Volume Records -- CME H …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
  #2 (permalink)
 
cory's Avatar
 cory 
virginia
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093


felixolmo View Post
..

Thank you if anyone can help put.

I modify a copy of Ninja indicator so it won't have all the features from the original TMO.


Attached Files
Elite Membership required to download: TMO.cs
Reply With Quote
Thanked by:
  #3 (permalink)
 Belly 
Nantes, France
 
Experience: Intermediate
Platform: Ninjatrader
Trading: Futures
Frequency: Daily
Duration: Minutes
Posts: 7 since Aug 2023
Thanks Given: 112
Thanks Received: 2



cory View Post
I modify a copy of Ninja indicator so it won't have all the features from the original TMO.


Thank you very much for this indie !


Reply With Quote




Last Updated on February 14, 2024


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts