@run-out Sorry to keep bothering you, i am really a newbie.
There is another problem for the first Bar(num_bars = 0), max cannot be found
so i tried to fix it like this, but i failed, the first bar (high and low cannot be added to the Dayhigh and Daylow.
num_bars = len(self) - self.start_length if num_bars == 0 : Dayhigh = self.datahigh Daylow = self.datalow else: Dayhigh = max(self.datahigh.get(size=num_bars, ago=0)) Daylow = min(self.datalow.get(size=num_bars, ago=0)) Range = (Dayhigh - Daylow) print(date, Dayhigh, Daylow, Range)
It should be 192.77