Why is it buying at impossible prices?
-
Hello,
As you see in the image, sometimes it is executing buy orders at impossible prices during backtesting. If you notice the two buy points, for example, they are WAY above the top shadow of the relevant candle - or even of those nearby.
-
What is your spread? There is a spread meter on the lower left angle. When backtesting you can also manually set it. I normally put mine at 20 or 30 (for 5-digits markets like EURUSD), which is 2-3 pips.
It's also normal to see buys above the price on M1, because buys are executed on the Ask price, which is not visible on the chart by default.
-
Spread and slippage are all set to zero, and it still does it. I have the view Ask line on, but it is just a straight line that appears BELOW the candlesticks.
-
And looking at the logs, how much above/below the Ask price are these trades opened at?
-
The highest seems to max out at about two pips. Even though all slippage and spreads are set to off/zero:
http://oi62.tinypic.com/313hw1e.jpg
......
unnamed.ex4
unnamed.mq4 -
-
So the ask prices remain the same even as the candles go up and down? Or is there just no way to see historical ask prices? The fact that the ask price is a 'straight line' (often below the bid prices) instead of a complimentary 'jagged' line shadowing above the bid prices is what is confusing me. Thanks for your continuing help.
-
There is always Ask and Bid prices, but only Bid price is used to draw candles. The difference is called "Spread". The spread can be fixed, but most often it is variable, it always changes.
Right click on the chat - Properties - Common (tab) - Show Ask line (check this) - OK