I am working on a strategy that identifies a certain value and is supposed to enter with a short limit order at this value once. As you can see here, this first entry is what I want. I am using Stops and Targets via StrategyBuilder with methods SetStopLoss and SetProfitTarget. Whenever stop or target are already hit in the entry bar, the strategy executes the limit order again and again. Checking for market position or using a counter doesn't work as long as the exit happens in the entry bar. What can I do with this problem?

Comment