"Positions Detail" Keyword: Different Examples of its Uses

This thread will contain examples of different ways to use “Positions Detail” Keyword to restrict the number of entries in a strategy.

Note:

  1. It is used to limit the number of entries.
  2. It is applicable at “Strategy Level” and not at “Set” Level.

Let us take an example:

  1. you have two sets 1 Long and 1 short
  2. Each set has individual exits
  3. 1 Universal exit @ 3:15
  4. Position detail is set to (Entry, All, Any, Quantity,underlying) == 0.

Now let us say your entry condition x satisfies and since no open positions during the start of the day as it is the first trade the position is equal to zero

The system triggers the order of 100 qty trade. and makes a note that Entry = 100. Now a counter signal is generated, however, when it checks if the Entry quantity == 0 is turns false and the counter trade is not triggered.

Now again new long signal is generated, it checks for Entry qty == 0, it turns false and no trade is triggered the same is true if a Short signal is generated first.once the first trade is taken, the Entry qty is set to 100 and this condition will restrict new orders.

Now let us assume that you have set the Position detail to
(Entry, b, Any, Quantity,underlying) == 0 in the Long Set(Set 1)
and
(Entry, S, Any, Quantity,underlying) == 0 in the Short set(Set 2)

Now again assume that a long signal is generated, since this is the first trade, the current positions in the strategy is zero.

The system fires an order for 100 qty.

This time however, instead of mapping 100 to Entry, 100 qty is mapped to only Buy side Entry
now when the exit happens, and a counter signal is generated. The sell side position is still zero
hence it will take a short trade.

From here onwards:
Entry B is set to 100
Entry S is set to -100

Please check the following videos and multiple examples and combinations in which the keyword can help you:

1 Like

Positions Detail Keyword - Qty as 0, To take trade only once, Either Long or Short on Tradetron

You can also check Strategy Creation Video, to understand how to use positions detail in different scenarios for Options Trading:

Positions Detail Keyword - Value, List of Stocks

Positions Detail Keyword - Multiple Sets One for Buy, One for Sell, Or Multiple legs

Positions Detail Keyword - Qty greater than 0 - Only long positions Open

Positions Detail Keyword - Limit or Restrict trade On list of Stocks

1 Like

Question: I want to take short sell entry only upto 10 times in Nifty 50 Option:

Solution:
Here, note that 1 lot size of Nifty is 50, So for 10 Lots the number is 500, hence the number 501 select that is slighthly higher than 500.

Question: What is ‘quantity’ & ‘count’ in positions detail, what is the difference?

Answer:
Quantity will fetch the quantity. So, let’s say you go long in Nifty Futures in Entry, then it will fetch 50. If shorted then it will fetch -50.

For Positions Detail (Entry, Count) : It will check the number of times it took an entry.
Let’s say you go long on the Future, then book profit, then go long again, your Count will be 2.

The following example will do 2 things for the selected underlying of Nifty 50 stocks:

  1. It will take only one trade per stock.
  2. The overall value of the strategy will not exceed 50,000.

image

1 Like

The following example is used when you have 2 separate sets for List of Stocks:
1 Set for Buy and 1 Set for Sell Position:

If you want to take Buy Entry once in a list of Stocks, you will use below construction in the Entry condition of Set that has Buy Position:

If you want to take Sell Entry once in a list of Stocks, you will use below construction in the Entry condition of Set that has Sell Position:

The following example is used when you have 2 separate sets for List of Stocks:
1 Set for Buy and 1 Set for Sell Position:

If you want to take Buy Entry 2 Times in a list of Stocks, where the value you are trading in each stock is 5000, you will use below construction in the Entry condition of Set that has Buy Position:

Similarly, If you want to take Sell Entry 2 Times in a list of Stocks, where the value you are trading in each stock is 5000, you will use below construction in the Entry condition of Set that has Sell Position:

The complete logic behind using these both formulas is discussed in detail in below video:

The following example is used when,

  1. You want to Trade only in first 2 stocks, that meet the entry condition, from your entire stocks list.
  2. Trade can be either on the Buy Side or the Sell side.
  3. Only total 2 number of entries will be taken in overall strategy.

Remember to not select “Underlying List” in the example above.

The video example below:

1 Like

To Enter Trade 2 Times on Buy Side and 2 Times on the Sell side in each stock in the list we use following formulas:

On Buy Side Set Entry: Eg. we are trading in 10 shares in each stock of the list.

On Sell Side Set Entry: Eg. we are trading in 10 shares in each stock of the list.

Please check the below video for complete description and example:

Positions Detail: To take entry only 1 time on the Buy Side and only 1 time on the Sell Side for a list of Stocks

Set 1 Entry for Buy Side Formula:

Set No. 2 Entry on the Sell Side:

Please watch the below video for full explanation

Positions Detail (Count) - To enter only first 2 stocks on Buy Side and Sell Side in list of Stocks:

  1. Buy Side:
    To take entry on the Buy Side in the first 2 Stocks that meet the Entry on the Buy Side and each stock can enter only once on the buy side.

  1. Sell Side:
    To take entry on the Sell Side in the first 2 Stocks that meet the Entry on the Sell Side and each stock can enter only once on the Sell side.

Please watch the detailed below video:

Open Positions Keyword:

Open Positions keyword is used to limited the trades to a certain number, greater than once or just 1. Please do not select “Underlying” when using “Open Positions” Keyword. Keep it as blank as shown in the image. As per the example in image the number of positions it will take will be limited to 5. This keyword can be used to control number stocks in the list are currently trading (means placed order)

Please note that Open Positions keyword only works when there is delay between positions of two instruments
if the signals for all instruments come at the same time then this keyword will not work
Limiting the positions can only be done by reducing your list size there is no other way

Also, please note:
Open position keyword will limit the no of open position but position detail keyword will limit the no of order getting triggered.

For eg:
Open position keyword will allow only 4 open positions at any given time
provided, all signals are not coming at the same time
secondly, Open positions allows 4 open positions, which means if one of the positions closed, it will allow one new one to open.

Question 1:
Ok so Open Positions < 4 will restrict to 4?
Answer: Yes; but again; if number of stocks satisfying entry are greater than open position restriction at the same time simultaneouly; this shall not work

Question 2:
If i write open position < 5 without mentioning underlying in both my sets of buy and sell , it will count total position to 5 or separtely for buy set1 and sell set2:
Answer: Total count

Great content, I was struggling to achieve this condition due to selection of list in underlying.
Many thanks Mr. Nelson