Ahmed Abd El Aziz :
Hello
I am a beginner in coding. I want to ask:
Why when i put"input" this code dose not work?
I know it is about this [] array, but how can i solve this problem?
You just need to read the message in the 'Errors' tab:
array is not allowed as input
You need to do something like this:
//--- input parameters input string InpSymbols ="EURUSD;USDJPY;GBPUSD"; //--- string m_array_symbols[]; // dynamic array //---
and already in OnInit (using StringSplit) fill your array 'm_array_symbols'
Documentation on MQL5: String Functions / StringSplit
- www.mql5.com
StringSplit - String Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
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
Hello
I am a beginner in coding. I want to ask:
Why when i put"input" this code dose not work?
I know it is about this [] array, but how can i solve this problem?