NexusFi: Find Your Edge


Home Menu

 





predictive RSI indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one stratiG with 3 posts (2 thanks)
    2. looks_two bomberone1 with 2 posts (0 thanks)
    3. looks_3 Zondor with 2 posts (5 thanks)
    4. looks_4 redratsal with 2 posts (5 thanks)
    1. trending_up 14,350 views
    2. thumb_up 12 thanks given
    3. group 10 followers
    1. forum 12 posts
    2. attach_file 4 attachments




 
Search this Thread

predictive RSI indicator

  #1 (permalink)
 
stratiG's Avatar
 stratiG 
knox
 
Experience: Intermediate
Platform: NT
Broker: iqfeed/mb trading
Trading: equities
Posts: 10 since Nov 2009
Thanks Given: 5
Thanks Received: 3

http://www.protradingindicators.com/tradestation-indicators/dig-predictive-rsi

Does anyone know if someone has coded this here? It looks interesting.

George

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 BTTFT Michael 
East Bend
 
Experience: Advanced
Platform: NinjaTrader, Tradestation, MetaTrader
Broker: Mirus/Kinetick
Trading: Futures, Oil, Gold, NQ
Posts: 50 since Mar 2010
Thanks Given: 2
Thanks Received: 67


I haven't seen anything like this posted here. It does look really interesting though.

I love "predictive" anything.

Please send me a Private Message if you have any questions about BTTFT services
Follow me on Twitter Reply With Quote
  #4 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


stratiG View Post
http://www.protradingindicators.com/tradestation-indicators/dig-predictive-rsi

Does anyone know if someone has coded this here? It looks interesting.

George

Multichart version

 
Code
/*******************************************************************
Description	: This Indicator plots the Reverse Engineering RSI
Provided By	: TS Support, LLC for eSignal
********************************************************************/

function preMain(){
	setPriceStudy(true);
	setStudyTitle("Reverse Engineering RSI");
	setCursorLabelName("RSI",0);
	setDefaultBarFgColor(Color.red,0);
}

var AUC_1 = 0;
var ADC_1 = 0;

function main(value,WildPer){
	if(value == null)
		value = 50;
	if(WildPer == null)
		WildPer = 14;
	
	ExpPer = 2 * WildPer - 1;
	K = 2 / (ExpPer + 1);
	
	if(close() > close(-1)){
		AUC = K * (close() - close(-1)) + (1 - K) * AUC_1;
		ADC = (1 - K) * ADC_1;
	}	
	else {
		AUC = (1 - K) * AUC_1;
		ADC = K * (close(-1) - close()) + (1 - K) * ADC_1;
	}
	
		
	x = (WildPer - 1) * (ADC * value / (100 - value) - AUC);
	
	if(x >= 0)
		RevEngRSI = close() + x;
	else
		RevEngRSI = close + x * (100 - value) / value;
	
	if (getBarState() == BARSTATE_NEWBAR){
		AUC_1 = AUC;
		ADC_1 = ADC;
	}
		
	return RevEngRSI;
}
Courtesy https://www.multicharts.com/files/efs/RevEngRSI.efs

amibroker version My Simple Quant: RSI Predictor for Amibroker

For ninja you need to find a good soul to translate the formula

PS

Do not rely on RSI or Reversed RSI, overbought and oversold mean nothing if not compared to the PA context

Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 
stratiG's Avatar
 stratiG 
knox
 
Experience: Intermediate
Platform: NT
Broker: iqfeed/mb trading
Trading: equities
Posts: 10 since Nov 2009
Thanks Given: 5
Thanks Received: 3

I'll post it and see if anyone can translate it into NT.
Thank you for sharing the code.

George




redratsal View Post
Multichart version

 
Code
/*******************************************************************
Description	: This Indicator plots the Reverse Engineering RSI
Provided By	: TS Support, LLC for eSignal
********************************************************************/

function preMain(){
	setPriceStudy(true);
	setStudyTitle("Reverse Engineering RSI");
	setCursorLabelName("RSI",0);
	setDefaultBarFgColor(Color.red,0);
}

var AUC_1 = 0;
var ADC_1 = 0;

function main(value,WildPer){
	if(value == null)
		value = 50;
	if(WildPer == null)
		WildPer = 14;
	
	ExpPer = 2 * WildPer - 1;
	K = 2 / (ExpPer + 1);
	
	if(close() > close(-1)){
		AUC = K * (close() - close(-1)) + (1 - K) * AUC_1;
		ADC = (1 - K) * ADC_1;
	}	
	else {
		AUC = (1 - K) * AUC_1;
		ADC = K * (close(-1) - close()) + (1 - K) * ADC_1;
	}
	
		
	x = (WildPer - 1) * (ADC * value / (100 - value) - AUC);
	
	if(x >= 0)
		RevEngRSI = close() + x;
	else
		RevEngRSI = close + x * (100 - value) / value;
	
	if (getBarState() == BARSTATE_NEWBAR){
		AUC_1 = AUC;
		ADC_1 = ADC;
	}
		
	return RevEngRSI;
}
Courtesy https://www.multicharts.com/files/efs/RevEngRSI.efs

amibroker version My Simple Quant: RSI Predictor for Amibroker

For ninja you need to find a good soul to translate the formula


Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090

You don't need to ask here is the NT version:

NinjaTrader Support Forum

and the original workout by François Bertrand called RSI BANDS AND REVERSE ENGINEERING

Letters - June 2008

Attached Files
Elite Membership required to download: April2008SC.zip
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

This version is more efficient. Further improvements are possible.

Does not have reusable instances of the external EMA's because their periods keep changing. I have a fix in mind for that.

Or maybe go back to the MultiCharts code.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Attached Files
Elite Membership required to download: ARSI.cs
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

This indicator uses EMA's whose periods vary from bar to bar.

The usual method of creating reusable instances of the external EMA's breaks down because each of those instances would only have one period, and you may not know in advance how many different values of periods would ultimately be needed for those EMA's, or what the values of those periods would be. (For this indicator, the number of different MA periods ends up being about the same as the Period of the indicator.)

This problem can be solved by using Dictionary objects that hold collections of EMA classes having the needed parameters. For each entry, the key is an integer and the value is an instance of an EMA class, including the value of its parameters. For each entry we simply make the value of the smoothing period the same as that of the key. Of course, before attempting to Add a value to the Dictionary, you must make sure that the Dictionary does not already contain an entry having that key by doing a ContainsKey test.

Once the Dictionary contains an entry having a given key, for example 7, you just call for that value whenever you need an EMA with a period of 7. For example, result = EMADictionary[7][0], where the key is 7 and the value is EMA(HolyGrailDataSeries,7) gives result = EMA(HolyGrailDataSeries,7)[0].

Simple! Works great! I learned it all from @gomi ! I don't think that those people whose first names begin with N have thought of this, and it is doubtless "unfortunately beyond the scope of anything we would be able to support at this time.."

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #9 (permalink)
 
stratiG's Avatar
 stratiG 
knox
 
Experience: Intermediate
Platform: NT
Broker: iqfeed/mb trading
Trading: equities
Posts: 10 since Nov 2009
Thanks Given: 5
Thanks Received: 3

@Zondor

Thank you very much for your detailed response. Unfortunately, I only understood about 20%, but I
will do some homework on the subject you described in such detail. The least I can do.

George

Started this thread Reply With Quote
  #10 (permalink)
 bomberone1 
London
 
Experience: Beginner
Platform: MultiCharts
Posts: 277 since Nov 2010
Thanks Given: 14
Thanks Received: 29


I try this indicator but a lot of error have into debug.
IT is not working into mc,
why do you say that it work?

Reply With Quote




Last Updated on June 12, 2020


© 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