sentinel advanced trigger for P&L monitoring

I want to get trigger for NIFTY options IronCondor for Profit is grater than Rs.2000 and loss is grater than Rs.2000 for . The Options are I have choosed -1x 29JUL2021 16400CE sold on 25 Jun 21 @ 57.8 +1x 29JUL2021 16700CE Buy on 25 Jun 21 @ 22.15 -1x 29JUL2021 15200PE sold on 25 Jun 21 @ 79.55 +1x 29JUL2021 14900PE Buy on 25 Jun 21 @ 42.95

For alert on the profit of Rs.2000, this trigger should work -

(LastTradedPrice('NFO:NIFTY21JUL16700CE') + LastTradedPrice('NFO:NIFTY21JUL14900PE') + (79.55 - LastTradedPrice('NFO:NIFTY21JUL15200PE')) + (57.8 - LastTradedPrice('NFO:NIFTY21JUL16400CE'))) > 105.1

For alert on the loss of Rs.2000, this trigger should work -

(LastTradedPrice('NFO:NIFTY21JUL16700CE') + LastTradedPrice('NFO:NIFTY21JUL14900PE') + (79.55 - LastTradedPrice('NFO:NIFTY21JUL15200PE')) + (57.8 - LastTradedPrice('NFO:NIFTY21JUL16400CE'))) < 25.1
  1. I have assumed you want to track the profit and loss from the starting values that you shared
  2. The Rs.2000 movement translates to 40 points as the lot size is 50.
  3. For options that have been bought, I have added their premiums (22.15 + 42.95 = 65.1).
  4. Adding the last traded price for the options that have been bought
  5. For options that have been sold, Individually subtracting their last trading price from their initial premium
  6. Then, I have added all the values from Point (4) and Point (5)
  7. For the profit calculation, I have added the sum of premiums of bought options (aka Point 3) & Point (2) and then checked if 105.1 ( (22.15 + 42.95) + 40 ) is less than the value of Point (6)
  8. For the loss calculation, I have subtracted the value of Point (2) from the sum of premiums of bought options (aka Point 3) and then checked if 25.1 ( (22.15 + 42.95) - 40 ) is greater than the value of Point (6)

For the method to find the trade symbols for a particular contract, refer to this thread

Thank you for the quick response. It is making sense to me. I will test the same and update you.