Please see the attached trade for reference.
I have built a strategy that will take trades of 2,4,6,8, etc contracts which the user can set as a input when enabling the strategy.
Then I want the strategy to sell half of the total contracts at a certain profit target and let the rest go as runners.
In the attached screenshot the strategy is set up to trade 2 contracts.
Question, if the strategy buys 1 contract and then another 1 contract to get a the full desired position size of two, does Ninjatrader count that as a position size of 2 when I use the following code to exit half the position, ExitLong(Position.Size / 2 )
Or does the Ninjatrader code treat these as two separate positions of 1 contract each?
Hopefully this question makes sense.
Thank you,
Nick

Comment