Forum

MQL4 version of CopyTicks()

In the absence of the CopyTicks() function in MQL4 I can try to construct an array of the last n ticks in a market by using the ArrayCopySeries() function in conjunction with the OnTick event and harvesting the [0] element of the resultant. Is there a better way? Thanks, James

Using compiled MQL5 EAs within MT4

Hi W‌hen I compile MQL5 an EX5 file is created in the ...Teminal\long-unique-number\MQL5\experts folder. I‌ am using MT4 and so no EA appears in my navigator window, even if I move the EX5 file into ...Terminal\long-unique-number\MQL4\experts Is it possible to use compiled MQL5 within MT4. Is a file

Debugging functionality

Hi ‌I'm attempting to debug MQL4 code in MetaEditor 5.00 while using MT4 as a platform and cannot seem to debug my EA or Indicator code. Breakpoints are ignored when I select Debug/Start on Real Data (having selected a market under Tools/Options/Debug) and there is no 'debug' section visible on the

Debugging Problem

Hi I‌'m attempting to debug an MQL4 EA in MetaEditor however I am not being offered the 'Start on history data' (or indeed the Start on Real Data) option under the Debug menu. It is greyed out despite me specifying a dataset under Tools/Options/Debug. U‌nder the Journal tab of the Toolbox I see the

History Center wiped after Windows re-install

Hi I recently had to re-install windows and had also to select to wipe all files and data, so I lost all my accumulated broker price data from History Center. My broker (IG) says that they can't help. How can I re-download my lost accumulated data? Thanks, James

Intra-bar trades

Hi If I am using an EA whose logic runs using the OnTick() event, and it is linked to a chart whose timeframe is M1 then will trades ONLY occur at minute start/ends, or is an intra-minute trade possible? Thanks

Non-standard Chart Time-frames

Hi Is it possible within MQL4/5 to use a chart time-frame other than the default ones? For example if I wished to calculated an MACD using a 30-second time-frame? Many thanks, James