I am creating a basic MACD strategy and I am testing the self.Buy, self.LimitOrder, and self.StopMarketOrder functions. I set the backtest period to a a week from 1/1/2018-1/6/2018 so I can see my orders more easily. When I look at my orders, I see that my stopLossPrice and profitTargetPrice are always the same from day to day. Should these update every minute since I am getting data at that level? This is the code I am referring to:

self.Buy(self.contract.Symbol, 1) self.LimitOrder(self.contract.Symbol, -1, self.contract.LastPrice + 50) self.StopMarketOrder(self.contract.Symbol, -1,self.contract.LastPrice-100) 

Author