NexusFi: Find Your Edge


Home Menu

 





Momentum Indicator


Discussion in NinjaTrader

Updated
    1. trending_up 2,258 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?
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Hormuz Completely Closed: US Strikes Day 2, Iran Shoots …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098


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