never mind, already find the bug. I never compile the custom ema indicator.
![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
I tried to create a code from a custom indicator. From mt4 documentation I can create is using iCustom function. Below is my code, for the stop loss price the amount price is exactly what I want but for the take profit the result is 0. Can anyone tell me what's wrong with my code?
Thanks