If true, an ATM put is bought with current week expiry.
Basically, I buy nifty future in set 1 and exit if certain conditions are met as specified in set 1 exit.
Now in set 2, if a position exists in set 1 and (15 minute candle makes a new low or time is more than 1520), i want to buy atm put.
In set 2 exit, the net quantity in set 1 is 0 or (15 minute candle makes a new high and time is less than 1520)
similarly, in set 3 i sell future and buy call in set 4 based on net quantity in set 3.
Issues:
Entry occurs in set 2, at 1520 without a position in set 1.
exit does not happen when condition is met in set 2 exit
Looks like ‘net quantity’ not working. Use ‘position details’ to find set1 quantity. It should work.
Money Maker
Thanks for your reply, you are right “net quantity” is the culprit.
Position details does not give me an option to select Futures as Instrument type.
I don’t see an option to find set wise quantity. say set1 quantity
Question: if I have few strategies running buying and selling “Nifty Future”, will this affect Net Quantity(traded instrument name,1,1,1) in my current strategy? question arises because it is looking for count of “traded instrument name”, which is constant across strategies, I guess.
Thanks
I have not tried for futures. I think by setting Instrument Type as All ( as you shown above) it may capture futures values also
oh yes. Position Details fetches values at strategy level. Not set level
The values from current strategy only. It won’t consider other strategies.
Money Maker
Thanks
set 1 is buying and set 2 is selling, so I am going to try “net Quantity” with >0 and <0 comparisons instead of == 0
Innovative Investments
I see a cross talk between two sets. For the same underlying, I am buying futures in one set and options in other. Last repaired price takes whichever was traded last and ends in comparing options price to futures price and results in erroneous decisions!
Tradetron TeamTradetron team
Summary of what applies here:
Net Quantity returns the open quantity of that instrument across the whole strategy, not per set. It only counts the current strategy, not your other strategies. If Set 1 is long futures and Set 3 short futures on the same contract, they net against each other. That is why == 0 gave unexpected entries.
Positions Detail is also strategy-level and counts closed trades too.
For per-set state, write a runtime variable in each set (e.g. s1_long = 1 on Set 1 entry, s1_long = 0 in its exit runtime) and gate Set 2 on Get Runtime ( s1_long ) == Number ( 1 ).
Last Repaired Price (answering #8) is per strategy + underlying, not per set. Mixing futures and options on one underlying across sets will mix their prices. Use per-set runtime variables or Traded Instrument with the exact set/condition/leg.
Test in Live Offline and check the Notification Logs.
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.