
After some times running live account with coded expert advisor, i notice some problem faced. Below are some that i found and have corrected.
1) Using the write/read file provided by the MT to store your open trade information (ticket, openprice, opentime, etc). this is usefull when you have to reload the EA or have to restart MT4 or restart the PC. By store the order ticket information and retrieve it when the EA load is going to put your trade still available and monitor by your EA. Else when you restart, you have to manually close those open trade.
2) using modifyorder command when you encounter error #129, #130, etc from closeorder(). Due to the server and the refreshdata command, sometimes it does not update latest bid and when you call closeorder, is will not execute and provide an error #129, #130, etc. By substitute closeorder with modifyorder, you suffer some pips lose but your EA still can close the order ticket that you want.

Above are problem that surfaced when run Live using EA via MT4. Hope it useful. Thanks
Expert Advisor Programming: Creating Automated Trading Systems in MQL for MetaTrader 4. Click here to see 19 customer reviews and choose from 14 suppliers
Algorithmic Trading and DMA: An introduction to direct access trading strategies.
Click here to see 26 customer reviews and choose from 17 suppliers
Getting Started in Currency Trading: Winning in Today's Forex Market Click here to see 4 customer reviews and choose from 39 suppliers
No comments:
Post a Comment