Coding exit based on profit/loss for the PAIR
Author: icolville@colvillenet.com
Creation Date: 2/15/2010 9:13 AM
profile picture

icolville@colvillenet.com

#1
I'm trying to code a stop loss exit that will exit both sides of the pair if the net loss on the PAIR (not just one of the positions) is above a certain level. I'm stumped. Its easy to exit a single side/positions using the usual functions but I have no idea how sum the profit/loss of both sides of pair and use that as the determinant for exiting the trade. Any suggestions?
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).