Forum

Can an EA run on a custom timeframe?

Hi folks, Does anyone know if I can run an EA on a custom time frame? I mean run a live EA that places real orders. If you google it, you find plenty about using a custom time frame in Strategy Tester . But I have not come across anything about using one live. I have tried to attach an EA to a

MT4 Strategy Tester: more options for the spread value?

Hi there, does anyone know a way to get more values for the Strategy Tester spread than the currently offered 2, 5, 10, 30, 50, and 100? Might there be a jury rig? Thanks and best, Jeff

Bid/ask "boxes" (top left of MT4 chart) have disappeared

Hi all, I have MT4 running with the same account on two laptops. On one of them the bid/ask "boxes" have disappeared - the two boxes on the top left of a chart that show the bid and ask in large font. Please see the attached image file. I have searched the settings and googled the issue endlessly

Download maximum historical data in MT4?

Hi all, I am downloading historical data from MT4 History Center to use in an Excel-based backtest program. I am able to download about 1000 bars in each timeframe. At the same time, however, I see something like the following at the top of History Center: "Databases: 1003 / 2795 records". To me

EA doesn't work properly when attached to multiple charts (MT4)

Hi all, I have asked a few questions in the forum lately and very much appreciate the responses I have gotten. I am hoping for the same kind of luck again. I have written an EA that works perfectly on Strategy Tester . But I when open it in my live account on two different charts (two different

OrderModify() error 3

I am completely stumped and would welcome any ideas. The below code is part of a larger and fairly complex logical sequence, but because of the printing I can see that the logical structure is functioning properly. However the OrderModify function is generating error 3. Is it not correct to use

In an EA, how to determine the difference between a position (filled) and an open order (not filled)

Hi everyone, I am coding my first EA (so MQL4 newbie, but I have decent experience in VBA) and I need a way to distinguish existing positions (filled orders) from pending (unfilled) orders. I imagine there is a way to do this using one of the parameters of the OrderSelect() function, but the