Prevent a strategy from entering multiple times

In a strategy with multiple entry conditions, how do you prevent multiple orders from firing when more than one signal is true on the same bar?
I want to allow multiple signals logically, but only one actual entry to execute. Thanks.

Have you tried setting EntriesPerDirection to 1? If that’s not working for you I would keep (and check) a flag locally in the strategy that tracks if you have an entry or not. In the case of market order entries you can set the flag immediately after the entry order, and in the case of limit orders you can set the flag in OnOrderUpdate() after an entry order is executed.

1 Like

Thank you Mark. I wlll try.