I'm using NinjaScript to automate a strategy.
To paraphase my code:
OnBarUpdate()
Upon a long signal
ExitShort()
EnterLong(1)
Upon a short signal
ExitLong()
EnterShort(1)
Problem: If the current trade is long 1 contract, then upon a short signal, I end up being short 2 contracts, instead of being short 1 contract. Why? I've attached various tabs from my Control Center.
I simply want to reverse my position upon each signal.
Comment