These 2 examples show a Buy order accepted by the broker at far higher price. In the second case, this position was opened at quite a stupid price!
I have tried the following:
Thanks to both of you.
In fact, the above examples were for Buy decisions, but the same happens for Sell's. In other words, if the expert decides to sell based on the Bid line, I also have the same difference between current price and order price, except that for Sell's it's the contrary: the price is far lower. To me, a Sell decision is based on the Bid price; a Buy decision is based on the Ask price. And Ask = Bid + Spread.
Moreover, if I add an MA with period 1 and type = Ask (I don't see how you turn on the ask line), I still see a huge difference between current price and ordered price.
I did quite some live testing over the last days but got tired with issues which seem to come from Metatrader + MQL, so I haven't kept any further screenshot.
I also have a frequent issue with a Buy or Sell decision raised quite after the moment showed on the graph. Now imagine you're working on M30, the order is placed an hour later, the position already doesn't make sense!
So I 've started to re-write the strategy's core programme in Java which will also go beyond the limited tick-based EA execution in Metatrader.
To add comments, please log in or register