"Traded Instrument", "Traded Instrument Name" and "Net Quantity" Keywords: Different Examples of its Uses

This thread will contain different examples of powerful combination between ‘Traded Instrument’, ‘Traded Instrument Name’ and ‘Net Quantity’ Keyword to get desired results

So as per the above image:

  1. If we want to refer to: Set No.1, Entry Condition No. 1 and Leg No. 1, which is the SELL CE position, we will use the following references for ‘Traded Instrument’ and ‘Traded Instrument Name’ keywords:

Traded Instrument:
image

For Traded Instrument Name, under Net Quantity Keyword:
image

  1. Similarly, For SELL PE position, which is Set No.1, Entry Condition No. 1 and Leg No. 2, we will use the following references for ‘Traded Instrument’ and ‘Traded Instrument Name’ keywords:

Traded Instrument:
image

For Traded Instrument Name, under Net Quantity Keyword:
image

  1. To reference the First “Repair Once” condition strike, under Traded Instrument Keyword, we use:

image

  1. To reference the Second “Repair Once” condition strike, under Traded Instrument Keyword, we use:

image

Same reference can be used under “Traded Instrument Name” Keyword under “Net Quantity”

  1. To reference the First “Repair Once” condition instrument, under “Traded Instrument Name” Keyword, under “Net Quantity” Keyword, we use:

image

  1. To reference the Second “Repair Once” condition instrument, under “Traded Instrument Name” Keyword, under “Net Quantity” Keyword, we use:

image

  1. To Check if the instrument has got Traded / Entered and has also been squared off or Exited:

The following example is assuming, we have 2 legs entered in Entry condition:

Over here:

  1. First we are checking if Traded Instrument Strike, Leg no.1 is Traded, i.e. Entered the Position.
  2. Second, we are checking if Traded Instrument Strike , Leg no.2 is Traded, i.e. Entered the Position.
  3. Third, we are checking if Traded Instrument Strike, Leg no.1, has also got exited since the Net Quantity of the same is now 0
  4. Fourth, we are checking if Traded Instrument Strike, Leg no.2, has also got exited since the Net Quantity of the same is now 0.

This formula comes in handy when you want to exit a particular set based on if the instruments have entered the position and later have got squared off.

Remember to use all the 4 conditions together with “AND” operator as shown in the image below:

Question: I have 2 Repair once conditions of which the 2nd one, should trigger only after the first one triggers. Now the first one has a condition which can get triggered at any time. How do I put a condition in the 2nd RO condition to trigger, based on the 1st RO condition trigger? What value of RO 1 can I put to check condition on, to see if RO1 got triggered?

Solution:
Following is to be used in “Condition Builder” section.
It is basically checking if Repair Once of Set 1, Condition no. 1 and Leg no. 1 has already triggered.

image

Traded Instrument for Strike Selection, 100 points away from 1st Entry Strike:

The following is to be used in Strike Fx section of the “Position Builder”:

image

Traded Instrument for Strike Selection, 100 points away from 1st Repair Strike:

image

To square off 50% or half of entered quantity, you can use the following formula in “Qty Fx” section of the Position Builder: