Stop Loss trigger for cancel current PendingOrder

v.fiodorov83 since: 24 Jul 2019;

  10 Sep 2021, 22:19
Stop Loss trigger for cancel current PendingOrder

Hello good people!

Please, help!

There is a task to open buy-stop orders at the initial one price.

One pending order at a specific price has been filled in the OnTick () Method.

How to make the logic in which the 2nd buy-stop order is not placed until the first one hits the stop-loss, only after that

amusleh's avatar

amusleh since: 01 Mar 2021;

  13 Sep 2021, 11:06

There are Filled, Modified, and Canceled events for PendingOrders you can use, and there are similar events of positions like Closed, Modified, and Opened.

Community Developer | Spotware | Telegram: @algodeveloper

v.fiodorov83 since: 24 Jul 2019;

  14 Sep 2021, 17:38
RE:

amusleh said:

There are Filled, Modified, and Canceled events for PendingOrders you can use, and there are similar events of positions like Closed, Modified, and Opened.

Thanks. Apparently I'll have to write a counter. If the buy-stop is full, then the counter will be 1, and a new buy-stop will open if the counter is 0