Please see the attached screenshot for reference.
I have a strategy that will take will take a trade long if the conditions in Set 1 are met. Then the idea was that I follow the example in BreakEvenBuilderExample that was on the forums to create custom trailing stop/breakeven stops.
The issue I am having is that when I run the strategy and my conditions are met, the strategy takes the trade long as it should but the variable I created, FifteenStopState that sets different stops or limits as the trade progresses, doesn't update to 1.
As you can see I added code to plot the status of FifteenStopState to see what is happening. The dot is Blue the whole time, meaning FifteenStopState is 0. It should plot Red when I enter a trade, meaning FifteenStopState is 1.
What am I missing? How can the strategy execute the Limit Order but not set the FifteenStopState to 1 if they both use the exact same conditions in Set 1?
I hope its something obvious I am missing. Let me know if you need more information.
Thank you,
Nick

Comment