logic for my exits and entries is as follows:
when Position.Quantity = 3000 and (condition) exit long 2000
when Position.Quantity = 9000 and (condition) exit long 6000
I want to force them to occur consecutively not at the same time. It seems that when the first condition is met and exits 2000 first when in fact I want it to exit the 6000 first. By exiting backwards the exit condition defined by position.quantity is not ever met since it's looking for a value of 9000.
Any ideas on how to work around this?
Comment