NexusFi: Find Your Edge


Home Menu

 





Momentum Indicator


Discussion in NinjaTrader

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




 
Search this Thread

Momentum Indicator

  #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?
How to apply profiles
Traders Hideout
About a successful futures trader who didnt know anythin …
Psychology and Money Management
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
 
  #2 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


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: 99
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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts