petermitchell / Publications
Forum
InternetOpenUrlA problem in MT4 Version 4.0 Build 600
I am updating my EAs to work with the latest release of MT4 Version 4.0 Build 600. Everything has ported across to the new compiler with relative ease, however InternetOpenUrlA is now returning an error. I am using the following code. Can anyone advise why this function is behaving differently with
SimplePanel - Documentation Needed
There is an indicator provided with MT4 called SimplePanel. It can be found in Indicators/Examples. This demonstrates the use of an object oriented technique for drawing graphical objects. Does anyone know where I can find some documentation on how to use this
Double Calls to OnInit() and OnDeinit()
I have noticed that MT4 Build 600+ makes a double call to OnInit() and OnDeinit() when you change the parameters by clicking on the smiley face. In the Experts log you will observe the sequence: Expert EURUSD,M30: initialized Expert EURUSD,M30: uninit reason 5 Expert EURUSD,M30: inputs
Lot Size - Error 131 Invalid Trade Volume
I am getting an error 131 "Invalid Trade Volume " when I place an order using Lots rounded to two decimal places. However, MarketInfo (Symbol(),MODE_LOTSTEP) returns 0.01 indicating that I should be able to use two decimal places for Lot sizes. The EA works correctly when I use a Lot size rounded to