Weird positions of backtest orders

 

When i run a backtest, orders on chart seem to be placed outside market.

How to fix this?

Thanks for help.

Files:
 

It's called "spread"! There is a Ask price and a Bid price. Charts only shows the bars/candles based on Bid prices.

  • A "buy" position opens at the Ask price and closes at the Bid price.
  • A "sell" position opens at the Bid price and closes at the Ask price.
EDIT: Enable the Ask price line on your chart so that you can track the current value visually.
     
    Fernando Carreiro #:

    It's called "spread"! There is a Ask price and a Bid price. Charts only shows the bars/candles based on Bid prices.

    • A "buy" position opens at the Ask price and closes at the Bid price.
    • A "sell" position opens at the Bid price and closes at the Ask price.
    EDIT: Enable the Ask price line on your chart so that you can track the current value visually.

      Thank you. Makes sense.

      Reason: