Hi, I have a positional short strangle for which I take overnight hedges as protection. As part of my SL logic it is possible to square off a leg in the strangle and if this happens I don’t want to buy the overnight hedge of that specific leg. Based on my understanding of the positions detail keyword I thought it can be used for my use case but seems it doesn’t work here. So what else can I use to check for open CE or PE short positions in my hedge buying entry?
Manish
so you have two set. one for selling and in set 2 you are buying hedge. but not able read position detail of set 1 ?
Karthik E
Yes sir. Positions detail keyword is not returning the right expected values and I was informed by tradetron support that it can’t be used in the way I am trying. It can’t return just a PE or CE leg positions count.
I was told to use variables for my use case. I use the flag method to set/unset the variables to track if I have open short positions. It is clumsy and I really hope tradetron team can add this feature of checking for open short or long positions in the platform itself.
Tradetron TeamTradetron team
Use Open Positions Detail instead of Positions Detail. Positions Detail counts all trades including closed ones. Open Positions Detail reads only positions that are open now, so a squared-off leg drops out.
It has filters for position side and option type, so it can separate CE from PE:
CE hedge set entry: Open Positions Detail ( 'Short', 'CE', 'NIFTY 50', 'count' ) > Number ( 0 )
PE hedge set entry: Open Positions Detail ( 'Short', 'PE', 'NIFTY 50', 'count' ) > Number ( 0 )
'Short' keeps only net short positions and 'count' is the number of distinct open contracts. Note that a long CE hedge does not count as short, so it won’t confuse the check. Use your own underlying name, and test in Live Offline before going live. Keyword reference: Keyword Documentation — Tradetron
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.