Order with stoploss lower than spread

noob7 since: 20 Mar 2020;

  28 Jan 2022, 14:12
Order with stoploss lower than spread

When I want to open position with stop loss that is lower than spread, system opens position but doesnt set stop loss. Why is that? Is there a way to force opening posiiton with stop loss or to just not open position without stop loss in this case?

amusleh's avatar

amusleh since: 01 Mar 2021;

  31 Jan 2022, 08:07

Hi,

There is a minimum stop loss and take profit distance for each symbol, please the symbol model docs: https://spotware.github.io/open-api-docs/models/#protooasymbol

If the stop loss distance is less that that minimum distance then the stop loss placement will fail, you have to check those properties of symbols before placing a stop loss or take profit.

Spotware | Telegram: @algodeveloper