Hi,
I'm having trouble finding a way to cancel out the remaining target/stop order - depending on which one gets hit. I am using Rithmic.
I've created a signal marker that makes a V#1 target and a V#2 stop. It reads...
IF(POSITION > 0 AND TR_FILLSECS < 10) THEN(SET(V#1, TR_FILL + 8)) // In a long position, make V#1 a target that is 8 points away from the entry price. The TR_FILLSECS is to keep the system from putting in a new working order at the creation of every new bar.
*I have a very similar signal marker for my stop, using V#2.
Let's say that my target (V#1) is hit. How do I cancel out my stop (V#2)?
I do know that "Cancel Order" is an option in the trading order setup window, however I don't know how to link, let's assume the V#2 stop, to it. I've spent time trying to research the OID tokens, but am not grasping it.