It sets an incorrect target after a stop and reverse when the net postion turns zero momentarily. ex long 5 lots, short 5 lots, short 5 lots.
The times where it reverses all full position, target is correct. I have a feeling that the code doesn't know how to handle that net zero position. This...