Does OnExecutionUpdate only run based on executions for that specific strategy? Or will it run if there is an execution for another strategy that I have simultaneously running? For example, if I have two strategies running on the same asset, and the first strategy takes an entry while the second strategy is flat. Let's say that this first strategy entry hits stop loss, will this stop loss execution cause for code pertaining to stop losses in OnExecutionUpdate in the second strategy to run?
My main reason for asking is because if I have a rule in my second strategy that prevents entries in the same direction after the previous trade was a stop loss, I need to know if stop loss executions on the same asset will cause issues even if it is a completely different strategy with different code. Ideally, I would like for the OnExecutionUpdate to not interfere with eachother across strategies but I'm guessing there is a workaround if the OnExecutionUpdate does still run based on outside strategy executions.
Thank you for your help on this!
Comment