TD_I translation

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

TD_I translation

Postby datasos » Wed Sep 01, 2010 5:42 pm

I'm using a different trading station but trying to switch in marketscope ... I try to translate the following indicator but not yet sufficient knowledge of language :? Any help?

def high_diff = Max(0, high - high[1]);
def low_diff = Max(0, low[1] - low);

def high_avg = Average(high_diff, 8);
def low_avg = Average(low_diff, 8);
plot TD_I = if high_avg == 0 && low_avg == 0 then 0 else high_avg / (high_avg + low_avg) * 100;
TD_I.SetDefaultColor(GetColor(1));
------

And further questions about RSI, is it possible to use the RSI on the basis of WilldersAverage without any special programming or is it enough to just recalculate current RSI which is based on EMA, with the formula 2 * n - 1 ...

And one more :oops: : if I need same indicator, RSI for example, in two versions, (value for use on Strategies) one with Open price and one with Close price, do I need two separate RSI indicator, lets say RSI_Open and RSI_Close or we can calculate diff. value latter in Signal or Strategies based on same RSI (Close as standard) using diff input Open-Close ?

Thanks in advance :)
datasos
 
Posts: 5
Joined: Wed Sep 01, 2010 5:22 pm

Re: TD_I translation

Postby Apprentice » Thu Sep 02, 2010 3:10 am

1.
Added to developmental cue.
2.
f you want to use WilldersAverag as a data source for RSI.
Modified RS = Average Gain / Average Loss of relations requires a change to the code
3.
Signals can be called one or more indicators with different settings.
Or we could write a new indicator that draws both the RSI indicator ,
Or some of their derivatives.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36478
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TD_I translation

Postby datasos » Thu Sep 16, 2010 7:44 am

OK this problem is solved ... :D Of course there are more to come ... :? but one by one ... thanks for support :)
datasos
 
Posts: 5
Joined: Wed Sep 01, 2010 5:22 pm

Re: TD_I translation

Postby Alexander.Gettinger » Thu Oct 07, 2010 3:50 pm

TD_I indicator you may find here: viewtopic.php?f=17&t=2359
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 30 guests