Codes

Inverse Distance Weighted Moving Average (IDWma) for MetaTrader 4

This multi-timeframe capable moving average discounts prices far from the average. It is smoother than SMA but follows price similar to an EMA of the same length

Forum

dynamic_cast

At the bottom of Typecasting - MQL4 Documentation it says You can use the explicit casting to convert the base class pointers to the pointers of a derived class. But you must be fully confident in the admissibility of such a transformation, because otherwise a critical runtime error will occur and

Alphabetic Index of MQL4 Functions (600+)

Alphabetic Index of MQL4 Functions - MQL4 forum (2009.12.18 08:55) updated for Build 600+ AccountBalance FileFindFirst IsExpertEnabled SendFTP AccountCompany FileFindNext IsLibrariesAllowed SendMail AccountCredit FileFlush IsOptimization SendNotification AccountCurrency FileGetInteger IsStopped

Large USA broker drops mt4

Received via Mt4 Mailbox tab Dear Demo Account Holder, XXXX has made the business decision to discontinue support of MT4. Therefore, effective at market close today, Friday, September 19, 2014 all XXXX demo accounts will be disabled and you will no longer be able to login. Two hours notice. I've

iBarShift doesn't match documentation.

iBarShift - MQL4 Documentation states that when a match is not found it returns the nearest (exact == false). In tester (Build 500) on M15 bar <2001.02.19 01:30>, iBarShift returned 11, for a request of <2001.02.18 22:00> Time[11] = <2001.02.16 21:00> 49 hours earlier - Last bar before market close

Tester incorrectly generates error 134

I had a typo in my EA that resulted in opening many orders, so the margin exhaustion is expected. But since the code does check margin, the 134 was not. RefreshRates(); ... /* However, the broker doesn't care about the at.risk/account balance. They * care about margin. Margin used=lots