Forum

export type=balance (rollover, funds) from AccountHistory in MT4

Hi, I know how to export historical trades from AccountHistory in MT4. But how do I export type=balance (rollover, funds) from Account History in MT4? Thanks

OnChartEvent throws error

Hi, in my MQL4-Expert Advisor the following code always throws an error due to missing {. But I don't understand why. void OnChartEvent ( const int id, const long & lparam, const double & dparam, const string & sparam) { if (id== CHARTEVENT_KEYDOWN ) Print (lparam); } Thanks

Historical data for non-FX

Hi, where can I find historical data (at least H1) for the last 10 years for non-FX like SPX, NAS, ESTX, ... ? My broker is FXCM. Thanks

How shift bars for indicator-calculation?

Hi, I use daily timeframe to display indicators like MACD etc. For this purpose the iMACD-function uses the daily bars of the underlying equity. How do I calculate a new MACD that uses daily bars (24h) where the bar starts at an arbitrary hour, e.g. 10:00 and lasts until 09:59 the next day? Thanks