I need to urgently cancel all Buy orders when triggered by a trigger, how can I do that?

: Strategy settings

For this purpose, use the CancelByTriggerBL parameter and check “YES”, in this case all Buy orders will be cancelled if a TriggerKeysBL is triggered (analogous to CheckAfterBuy for triggers).