High[x] returns the high price of the period at shift x. https://docs.mql4.com/predefined/high iHighest() returns the shift of where the highest price is observed for the defined periods. https://docs.mql4.com/series/ihighest Combine them to obtain the highest price for the defined periods: double highestPrice = High[iHighest(Symbol(), 0, MODE_HIGH, 10, 1)]; In this example, the last parameter being “1” … Continue reading
I see this tripping up MT4 programmers enough that it warrants a post. A quick background for the uninitiated, Metaquotes structured MT4 EAs with 3 main event processes. init(), start() and deinit() This is clean, minimal and logically sound. init() runs ONCE on starting up, or when editing your EA properties, allowing you to do … Continue reading
Metaquotes promptly resolved the compiler error with build 509. Good going! http://forum.mql4.com/56329
New build. Features and updates as announced here. http://forum.mql4.com/56286 With the release of build 500 and its forcing of update for existing builds above 482, there’s been quite a bit of ire from developers. Justly so because newer builds tend to break some functionality, see https://raidenworks.com/2012/08/11/metaeditor-corrupt-compile/ and build 417 errorneous return of double from the DLL functions. And it’s … Continue reading
Quick post, Metaquotes has rolled out their latest MT4 build 500. Significant thing to note is that it appears to be a mandatory update the moment your selected broker decides to roll it out to clients, i.e. completely bypassing the liveupdate.exe in the root folder. The most glaring intro to this is a pop-up window you’ll … Continue reading