It looks like you're new here. If you want to get involved, click one of these buttons!
(qty != 0 or t1_qty != 0) == True
qty != 0
qty == 0
t1_qty != 0
If qty != 0, then after the sell & buy, will qty == 0 and t1_qty != 0?
Yes, it will be intraday trade. You can go through this article to understand more about this. After the end buy, your holding quantity will be back to that of the start of the day.