My maximum number of entries per direction is set to 100, so I can enter as many trades in either direction.
swingTopOrder = EnterShortStop(0, true, tradeQuantity, price, swingTopOrderType_tag);
I have posted more details on the problem in the attached document.
Please help. If you want the code, I can send it via email but however would not want to post on the forum.

Comment