I am finding that SET STOP PTRAILING is only closing the last trade, not the entire position. Please see the attached screenshot. The position has four trades, and only the last trade is closed.
The only exit in my code is the SET STOP PTRAILING. I’m probably misunderstanding something, and would be grateful for any pointers.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue