I've just started using MetaTrader4 and would appreciate help with coding the "Relative Slope" indicator (shown in Amibroker code below).
If possible could an mq4 version be posted, please?
K=EMA((H+L+C)/3,10);
S1=2*(K-REF(K,-1))/(K+REF(K,-1));
RS=100*EMA(S1,3);
[I then just need to plot the zero line and the RS value over it]
Notes...
1st line above:
K = 10 bar exponential MA of the expression (High+Low+Close)/3
2nd line:
REF(K,-1) is value of K for previous bar
Many thanks for any help.
Mike
If possible could an mq4 version be posted, please?
K=EMA((H+L+C)/3,10);
S1=2*(K-REF(K,-1))/(K+REF(K,-1));
RS=100*EMA(S1,3);
[I then just need to plot the zero line and the RS value over it]
Notes...
1st line above:
K = 10 bar exponential MA of the expression (High+Low+Close)/3
2nd line:
REF(K,-1) is value of K for previous bar
Many thanks for any help.
Mike