problem with requotes

 

For some odd reason my script is constantly requoting buy orders but never sell orders... here is the error I get


2023.08.12 06:38:38.484    2022.10.18 07:14:54   CTrade::OrderSend: instant buy 0.01 EURCAD at 1.34759 sl: 1.34509 tp: 1.35009 [requote (1.34759/1.34809)]

As you can clearly see there is nothing wrong with the order. The stop loss is below and the take profit is above. However it keeps requoting.

Any suggestions?

 

Forum on trading, automated trading systems and testing trading strategies

Weird positions of backtest orders

Fernando Carreiro, 2023.02.06 17:50

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.
    Reason: