equivalent of OrderCloseBy in cTrader cAlgo
Created at 11 Dec 2024, 10:51
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.
PanagiotisCharalampous
11 Dec 2024, 11:46
Hi there,
It is not possible to do this using cTrader Algo API.
Best regards,
Panagiotis
@PanagiotisCharalampous