I am manually updating the consolidator with hour bars to make 4 hour bars. Works as intended with only passing the consolidated tradebar into the first indicator then the tradebar rolling window. Passing it into a second indicator breaks the algorithm. Seems strange that this would cause problems.

anyone have any ideas? Thanks

  1. # This works
  2. def consolidator_handler(self, sender, tradebar):
  3. self.indicatorOne.Update(tradebar)
  4. self.tradebar_window.Add(tradebar)
  5. # This doesn't work
  6. def consolidator_handler(self, sender, tradebar):
  7. self.indicatorOne.Update(tradebar)
  8. self.indicatorTwo.Update(tradebar)
  9. self.tradebar_window.Add(tradebar)

Author

Brian Fontenot

February 2022