Archives

MT4

This tag is associated with 8 posts

MQL4: Get the highest price of a set number of periods, candles, bars

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

Extern variables not updating after editing “Expert Advisors -> Properties” (F7 shortcut)

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

MetaTrader 4 Client Terminal Build 509 (Compile error addressed)

Metaquotes promptly resolved the compiler error with build 509. Good going! http://forum.mql4.com/56329

MetaTrader 4 Client Terminal Build 507 (MetaEditor compile error)

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

MetaTrader 4 Client Terminal Build 500

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

Archives

Visitors

Flag Counter