Buying Daily. Selling Intraday
I have a backtest I want to run where it should identify the signals at the end of each day and only place an order at the end of the day. For the sell condition, I want to sell when the stock reaches a certain price, even if it is during the day. Currently, my program can only identify the signal at the end of the day and then will sell at the open of the next day. Could someone help me figure out how to sell my position during the day if it goes below or above a certain price?