Thank @Ujjwal for the reply,
This raises another question. How do I know the time elapsed in the strategy since entry? I would want to have a universal exit condition if the strategy has been entered but it does not hit target or stoploss for 30 mins. I do get “EntryTime” and “Time” of NSE for comparison, but the problem is they are in the format of Number but representation is in time format. So, for example if the strategy has entered at 2:55 PM the Number representation is 1455. However, when time switches to 3 PM the number representation would be 1500. So if I get absolute difference 1500 - 1455 this will be 45 and hence greater than 30 minutes.
Any help would be appreciated!