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