Move Stop Loss for all open trades to a specific price

jwandia2022 since: 30 Sep 2022;

  04 Dec 2022, 00:16
Move Stop Loss for all open trades to a specific price

Hi,

I am trying to come up with a logic that will move the stop loss for all open positions to a certain price once a specific condition is met. 

Kindly assist.

Joyce.

ncel01 since: 19 Mar 2020;

  16 Dec 2022, 11:41
RE:

Hello jwandia2022,

Do you want to apply the same stop loss to all open positions or only to some of the positions based on their label, symbol, etc?

Be careful if you have open positions with different symbols since, in this case, different stop loss prices apply.

jwandia2022 said:

Hi,

I am trying to come up with a logic that will move the stop loss for all open positions to a certain price once a specific condition is met. 

Kindly assist.

Joyce.