#BUG - cTrader opens position in the wrong entry price

Created at 26 Dec 2022, 00:25
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MO

modax0

Joined 26.12.2022

#BUG - cTrader opens position in the wrong entry price
26 Dec 2022, 00:25


cTrader gets two pending orders to place,  buy and sell at the same time, different entry prices,

buy if Bar.ClosePrices.Last(1) + X pips

and sel if Bar.ClosePrices.Last(1) - X pips

there's a bug where it buys and sells , even the price never hits the sell entry price, not even close, i test with 1 pip spread and there's like 5 pips difference, so it's not the spread.

it is only bugged with sell short, every time i make two opposite entries, both are created no matter the actual price.

what am I missing here?

 

check it out ...

 


@modax0
Replies

modax0
26 Dec 2022, 00:34 ( Updated at: 21 Dec 2023, 09:23 )

RE:

just to prove the point,

i placed an order to sell EURGBP @0.7000 while it actually ranges around 0.8700 so it would be impossible to hit that entry price of 0.7

WTF?

 


@modax0

Spotware
27 Dec 2022, 11:45

Dear trader,

Please provide us with the following information that will allow us to reproduce this behavior

  1. cBot source code
  2. cBot parameters
  3. Backtesting dates
  4. Broker and account type.

Best regards,

cTrader Team 


@Spotware

Shares4UsDevelopment
27 Dec 2022, 11:52

Be aware you buy at ASK prices, not BID prices (the candle & wicks are made with BID prices only!)

A difference might be that you Buy(or close Sell) at ASK prices, not BID prices
The candle & wicks you see are made with BID prices only!


@Shares4UsDevelopment