I have an application which downloads live stock data from the zerodha api and works in the following manner:
if (close_price > exit_price): new_e