Position Detail in STBT

Hello Team,

I am running a STBT strategy as below;

Set1 TREND: BNF Sell Call- Premium of 100 with 2 Re-Entries & Buy Call with Premium of 50
Entry: 9:36 (All days except the expiry)
Lot 1
SL: 27% (For Call Leg only)
Exit: Next Day 09:27
Set2-4 TREND: BNF Buy Call- Premium of 50 with 1 Re-Entry & Wait and Trade - increase of 40%
Entry: 9:36 (All days except the expiry)
Lot 1
SL: 40% (For Call Leg only)
Exit: Next Day 09:27

I am trying to use “Position Detail” Keyword for Set 2 since it has Wait and Trade. In Set1 it buys 1 lot BNF, therefore used “position detail” as below;

Position Detail (Entry, B, CE, Qty, NIFTY BANK) == 25

But this condition is never satisfied, i don’t see the strategy taking positions in Set 2

Q- When does Position Detail reset the value? is it only after Universal exit?
Q- How can i setup Wait n Trade in STBT systems?

Please help

Sahadev

Can you please share screenshot of your condition? That helps to identify if any error in coding.

Q- When does Position Detail reset the value? is it only after Universal exit? - YES

Thank You Rachna
I changed the Universal Exit condition to exit everyday at 09:32
That has helped

Hi, as per your logic… Your shorting in set 1.
And for set 2 entry if you want to take order after set1. In position detail change to S( sell) = -25.