I´m trying to make a simple % deviation from af moving average calculation. In plain language something like this:
((price.close-SMA(period))/SMA(period))*100
But although I have read the instructions in the help file I can´t seem to get it right in NJ Script - and I have no programming experience.
Can anyone provide me with the correct code for this indicator? And maybe a small explanation in plain english of how it is constructed?
King Regards
René
Comment