NexusFi: Find Your Edge


Home Menu

 





ITrend Indicator - John Ehler


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Zendo with 2 posts (0 thanks)
    2. looks_two cory with 2 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 kienow with 1 posts (0 thanks)
    1. trending_up 3,243 views
    2. thumb_up 0 thanks given
    3. group 5 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 kienow 
Winona, MN USA
 
Experience: None
Platform: nt,ts
Trading: es
Posts: 3 since Oct 2010
Thanks Given: 0
Thanks Received: 0

I have a third party indicator that I use on the TOS platform.
I would like to have the indicator written for NinjaTrader 8.
I copied the code source from the TOS platform.
It is a follows:

# The Itrend indicator from John Ehler's book "Cybernetic Analysis for Stocks and Futures"

input price = hl2;
input alpha = 0.07;

rec itd = compoundValue(7,(alpha - alpha*alpha/4) * price + 0.5*alpha*alpha*price[1] - (alpha - 0.75*alpha*alpha) * price[2] + 2 * (1-alpha)*itd[1] - (1-alpha)*(1-alpha)*itd[2], (price+2*price[1] + price[2])/4);

def trg = 2*itd-itd[2];

plot Itrend = itd;
plot Trigger = trg;

Itrend.DefineColor("Up", Color.Blue);
Itrend.DefineColor("Down", Color.Red);

Itrend.AssignValueColor(if Itrend[0] > Itrend[1] then Itrend.color("Up") else Itrend.color("Down"));

I would like someone to convert this code from TOS to NT 8.
Any suggestions?
Thanks,
Leon


Started this thread Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (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


I post it in NT8 thread.


kienow View Post
I have a third party indicator that I use on the TOS platform.
...
Leon


Reply With Quote
  #4 (permalink)
 Zendo 
Hannover Germany
 
Experience: Intermediate
Platform: Ninja Tradovate
Trading: ES DAX
Posts: 8 since Feb 2018
Thanks Given: 0
Thanks Received: 1


cory View Post
I post it in NT8 thread.

I can t find it. Can you share the link?
Thanks!


Reply With Quote
  #5 (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


Zendo View Post
I can t find it. Can you share the link?
Thanks!

it's here


Reply With Quote
  #6 (permalink)
 Zendo 
Hannover Germany
 
Experience: Intermediate
Platform: Ninja Tradovate
Trading: ES DAX
Posts: 8 since Feb 2018
Thanks Given: 0
Thanks Received: 1


cory View Post
it's here

Thany you very much! Have a great weekend.


Reply With Quote




Last Updated on August 17, 2018


© 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