Sample code to Remove all stop loss
Created at 22 Feb 2022, 11:59
CT
Sample code to Remove all stop loss
22 Feb 2022, 11:59
Hi,
Will be grateful if can share any sample code which can be used to "Remove all Stop Loss" in a cTrader instance by a single command / bot in the following scenario.
10 pairs / each pair has 2 to 3 open positions / each position has its individual stop loss.
Thanks
Replies
ctid1373829
22 Feb 2022, 13:52
RE:
PanagiotisCharalampous said:
Hi there,
Here you go
foreach (var position in Positions) { position.ModifyStopLossPips(null); }
Best Regards,
Panagiotis
Thanks!
PanagiotisCharalampous
22 Feb 2022, 13:13
Hi there,
Here you go
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous