Yes, you can use the same approach outlined in the in my MultiStepBreakevenStrategyBuilder example for long and short side.
Some items to keep in mind:
Order prices for Long orders would need to be flipped to be on the other side of the market to be valid for short side.
You cannot have a pending Long entry and Short entry at the same time unless you use the Unmanaged Approach because having pending orders for long and short entry would not be allowed by the Managed Approach. The Strategy Builder generates Managed Approach code.
Internal Rules of the Managed Approach - https://ninjatrader.com/support/help...antedPositions
Any short side target and stop logic should be checked with Position checks for Short side, similarly to how the Long position checks are made.
If you want to use Set methods for Long/Short side, I recommend using separate Entry Signal names and having separate Set methods tied to each unique entry.
For creating a strategy that captures the account position. I suggest unlocking the code, skipping historical processing with if (State == State.Historical) return; at the top of OnBarUpdate, and then checking the captured Position in OnStateChange when State == State.Realtime to place target and stop based on the captured position. I have attached Managed and Unmanaged examples.
Comment