equivalent of OrderCloseBy in cTrader cAlgo

Created at 11 Dec 2024, 10:51
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!
VI

viatrufka

Joined 05.02.2024

equivalent of OrderCloseBy in cTrader cAlgo
11 Dec 2024, 10:51


Let's say I create a long position and I want to place short limit order with the same volume, so when the market falls, my position is being closed at limit price. 
How can I create that behaviour in cBot? When I try to place my limit order it creates a new position instead of closing the existing one. I'm interested only in closing my position at specific price.


@viatrufka
Replies

PanagiotisCharalampous
11 Dec 2024, 11:46

Hi there,

It is not possible to do this using cTrader Algo API.

Best regards,

Panagiotis


@PanagiotisCharalampous