![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
Thanks for the help! Getting closer! Something seems to be missing, or I'm not quit doing it right. Am able to capture first MA but getting value of 0 for second.
Val1 = iCustom(NULL,0,"First_MA",13,3,0);
Val2 = iCustom(NULL,0,"Second_MA",0,6,0);
11:19:39 Test iCustom EURUSD,M1: Val1 = 30.11376832 : Val2 = 0.00000000
If I set Val1 at 0 for period I get: Val1 = 0.00000000 : Va2 = 0.00000000
But, no matter what value I set Val2 for period I get " Val2 = 0.00000000 "
Dear Yellowbeard:
i think i can see the error, you has put "0" value in the property position on the vector of desription, try this: Val2 = iCustom(NULL,0,"Second_MA",15,6,0);