Assume I have 3 open long positions with stops and profit targets working. Now I get a signal to enter a short trade as well. If I use the EnterShort(), it exits my 3 open long trades and leaves me short 1 position. I want it to enter a single short position, which should leave the overall position at long 2. I've tried adding conditions to use ExitLong() in this particular scenario, but the problem I have then is the stops and targets on my short entry, since I never issued an EnterShort(). Additionally, if my position changes from long to short, my ExitLong() orders are no longer valid since I don't have a long position.
Is there any way around this?

Comment