Wilson Wong :
I am new to MQL5 and am currently stuck with this issue:
In my main mq5:
and it my mqh "custom.mqh"
and when I compile the EA.mq5, I got an error saying:
Description | File |
---|---|
'PositionClose' - undeclared identifier | custom.mqh |
Thanks for helping.
Wrap the lines
CPositionInfo myPosition; CTrade myTrade;
to your *.mqh file.

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 am new to MQL5 and am currently stuck with this issue:
In my main mq5:
and it my mqh "custom.mqh"
and when I compile the EA.mq5, I got an error saying:
Thanks for helping.