How do i invoke an object.function in a mqh?
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.
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.