Closing positions with market order subject to max slippage

Created at 15 May 2022, 20:53
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!
HA

haohan51

Joined 12.01.2021

Closing positions with market order subject to max slippage
15 May 2022, 20:53


Moved to: 

New suggestion, please help with a vote: 

Hello,

I am looking to close existing positions in cAlgo but with a limit to the slippage.

I can see there is an equivalent method for opening positions with "ExecuteMarketRangeOrder" - but it there one for closing a position?

Alternatively, I wanted to replicate this by placing a TakeProfit on the position that is deliberately already past the price. I.e. if I am long, and current bid price is 1.2000, I want to place a TP @ 1.1000. This should theoretically get me out of the position at 1.1000 worst case. But cAlgo does not let me place TP below current bid (in the long case)....

All in all, is there a way to close a position subject to a max slippage?

Thank you


@haohan51
Replies

PanagiotisCharalampous
16 May 2022, 08:26

Hi haohan51,

Please use the correct topic for your issue.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous