Create OCO Using RTL

Login or Register

Please login or register in order to view and post in the Forum.

1 post / 0 new
_adam
Last seen: 2 weeks 3 days ago
Joined: 12/10/2017 - 14:44
Create OCO Using RTL

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.

0