I need a PPO drawn with a 20 EMA

 

Hi All,

I was wondering if any of you could be kind to a stranger with MQL4. I am sure this would take you just 5 minutes. Please help.

The Percent Price Oscillator, PPO is calculated like this;

=(FastEMA-SlowEMA)/SlowEMA


I am used to the normal Price Oscillator, PO which has slightly different features and it is caluclated like below;

=FastEMA-SlowEMA

-with no division by the SlowEMA.

I tried deleting the Slow EMA myself but I kept getting the error message " 'for'- expression too complicated".


I was also trying to delete the 'Signal line' that is drwan over the PPO and replace it with a 20 dayEMA and a 5SMA.

If you could edit the PPO Indicator script for me into a PO with a 20EMA, I would be ever so grateful. And I would put you in my prayers.

Thank you for your time,

Please reply,

Akosa


( P.S You can find the PPO.mq4 file in this link; https://www.mql5.com/en/code/10538)

Reason: