Im sorry, a newbie here learning how to code. I'm having trouble trying to write a line that checks the portfolio if the options underlying matches with the group of tickers that i'm following; to stop trading. However, it seems that my code execute the same option every minute. 

Can someone help?