![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,professors !
I want to get your help: how to compile the custom indicators of PR.
The main body of PR is just below:
Pr1=(iMA(NULL,PERIOD_H1,10,0,MODE_SMA,PRICE_CLOSE,0)-iMA(NULL,PERIOD_H1,20,0,MODE_SMA,PRICE_CLOSE,0));
Pr2=(iMA(NULL,PERIOD_H1,10,0,MODE_SMA,PRICE_CLOSE,1)+iMA(NULL,PERIOD_H1,10,0,MODE_SMA,PRICE_CLOSE,2)-iMA(NULL,PERIOD_H1,20,0,MODE_SMA,PRICE_CLOSE,1)- iMA(NULL,PERIOD_H1,20,0,MODE_SMA,PRICE_CLOSE,2));
PR= Pr1/Pr2;
long for you answer ! Thank you very much !