Topic: MetaTrader Bar Closing issue and fix with Forex Strategy Builder

Hello Traders,

This video demonstrates a bug of MetaTrader for generating ticks near to the end of a bar in tick mode.
I show a workaround to that problem.

2 (edited by Hannes 2017-02-21 19:05:13)

Re: MetaTrader Bar Closing issue and fix with Forex Strategy Builder

I have a similar, but slightly different problem.
I want to open positions directly upon weekly opening gaps. The ticks are coming (and it works in "Every Tick" mode in MT4 backtesting), but the broker is still closed and rejects my orders. I guess the broker accepts orders within a minute or so.

I tried using "Entry Time" opening (at 0:01), but then there are no trades made. One way I tried to solve the problem is, I tried to use two different opening logic conditions for the gap detection; (1) Previous Bar Closing and (2) "Open Close Gap". But they both seem to rely on the "Bar Opening" opening point to work and don't work with "Entry Time" opening point. Any suggestions how I could go about that?

Re: MetaTrader Bar Closing issue and fix with Forex Strategy Builder

You can use Entry Time but it must be "divisible" by the time frame. For example, if you use M15 time frame, you have to set entry time at 00:15, if you use H1 time frame, the entry must be at 01:00.
Entry at 00:01 is possible only at M1 time frame.

4

Re: MetaTrader Bar Closing issue and fix with Forex Strategy Builder

I think this one should be a sticky note