Hello smart people, I have an easy question please and would like your help.
I am trying to have a % distance between two moving averages.
The code it not working, so I have done it incorrectly. Could you please correct me, please.
ma15 = ma(c,15);
ma62 = MA(c,62);
percentchangema = ((ma62 - ma15)/ ma15)*100;
Cond1ma = percentchangema > 5 ;// moving averages seperated by 5%
///So the distance between ma15 = ma(c,15) AND ma62 = MA(c,62) SHOULD be 5%
I am trying to have a % distance between two moving averages.
The code it not working, so I have done it incorrectly. Could you please correct me, please.
ma15 = ma(c,15);
ma62 = MA(c,62);
percentchangema = ((ma62 - ma15)/ ma15)*100;
Cond1ma = percentchangema > 5 ;// moving averages seperated by 5%
///So the distance between ma15 = ma(c,15) AND ma62 = MA(c,62) SHOULD be 5%