NexusFi: Find Your Edge


Home Menu

 





Help translating indicator to Ninjascript


Discussion in NinjaTrader

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




 
Search this Thread

Help translating indicator to Ninjascript

  #1 (permalink)
3dvg
los angeles, california
 
Posts: 1 since Nov 2016
Thanks Given: 0
Thanks Received: 0

Hi everyone, I would like to know if any of you has translated John Ehlers forward reverse EMA to Ninjascript. I know its available for amibroker, tradestation and metatrader.

I don't know how to translate it. And I haven't found it for Ninjascript. So it would be great if any of you has it or knows how to do it.

Below is the code in EasyLanguage:

 
Code
{
	Forward / Reverse EMA
	(c) 2017 John F. Ehlers
}

Inputs:
	AA(.1);
	
Vars:
	CC(.9),
	RE1(0),
	RE2(0),
	RE3(0),
	RE4(0),
	RE5(0),
	RE6(0),
	RE7(0),
	RE8(0),
	EMA(0),
	Signal(0);

CC = 1 - AA;	
EMA = AA*Close + CC*EMA[1];

RE1 = CC*EMA + EMA[1];
RE2 = Power(CC, 2)*RE1 + RE1[1];
RE3 = Power(CC, 4)*RE2 + RE2[1];
RE4 = Power(CC, 8)*RE3 + RE3[1];
RE5 = Power(CC, 16)*RE4 + RE4[1];
RE6 = Power(CC, 32)*RE5 + RE5[1];
RE7 = Power(CC, 64)*RE6 + RE6[1];
RE8 = Power(CC, 128)*RE7 + RE7[1];

Signal = EMA - AA*RE8;

Plot1(Signal);
Plot2(0);

Thank you in advance

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
32 thanks
Just another trading journal: PA, Wyckoff & Trends
26 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
19 thanks
  #2 (permalink)
 nailz420 
NYC
 
Experience: Beginner
Platform: NinjaTrader
Posts: 14 since Dec 2009
Thanks Given: 9
Thanks Received: 9

TRADERS’ TIPS - SEPTEMBER 2017

Reply With Quote




Last Updated on August 4, 2017


© 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