I have a strategy that is configured to 'Wait until flat'. At the time the strategy is enabled there are no signals or anything that would cause the strategy to take a position. When enabled, the strategy instantly enters a position, then immediately closes it, resulting in a useless roundtrip.
I have this same code running in two different environments. One behaves as expected, one exhibits this odd behavior. I can repeatedly demonstrate this.
Comment