Hello,
Can anyone please code the following:
slowMA = Slow moving average
fastMA = Fast moving average
osc = Moving average oscillator
trend = Moving average of oscillator
The oscillator is the difference between the fast- and slow-moving averages
osc = fastMA − slowMA
I would really appreciate it.
Thank you.
It is almost as you wrote it:
slow = 100
fast = 50
period = 25
slowMA = average[slow]
fastMA = average[fast]
osc = fastMA - slowMA
trend = average[period](osc)
return trend
Put your own values in for the slow and fast average periods and the period for the average of OSC.
@Vonasi,
Thank you very much. Really appreciate your time. I will put the code in the software and let you know.
Thanks once again.
Regards,
Maisam