I'm running a strategy that includes 2 instruments (instA, instB) but only submits orders to the primary instrument (strategyA). I'm also running another strategy (strategyB) on the secondary instrument (instB) on a separate chart. Both strategies are running on the same account (currently testing on Sim101).
If both strategies trigger then the code in OnBarUpdate stops working even though the strategies are enabled and there are no errors in the log. In the Strategies tab, the Sync value is True but there is a red flag next to it on both strategies. The code is supposed to move the stop loss (SetStopLoss() function). The code works well when only one strategy triggers.
Any thoughts?
Comment