Matous Bartl: Any idea how to fix it?
c_EAF_instrument = new C_instrument(str_EAF_symbolName);
- Don't post code that will not compile; unknown variable c_EAF_instrument. Post all relevant code.
- You created an object with new. Then you try to assign the pointer to a object.
- Just create your object and assign it to your global object.
c_EAF_instrument = C_instrument(str_EAF_symbolName);
- or just create your global object on load
C_instrument c_EAF_instrument(_Symbol);

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 folks,
Maybe I have dumb question, but I'm not abel to solve following issue for a while in MQL4:
I have an object with string attribute I'd like to initialize in constructor:
This part is compiled without errors. Trying to call the object contructor:
I'm getting following compile error:
"'C_instrument' - parameter passed as reference, variable expected"
Any idea how to fix it?