tedigom52

Results 2 comments of tedigom52

update_from_tick method just combine volume and change ohlc of last_bar. If the indicator you want to update is just a LINE, you don't need to change the ohlc or volume,...

``` line_name = f"SMA {period}" if line_name in self._lines: ma_values = await indicators.calculate_sma(data, period, slice=True) if not ma_values.empty: ma_values = ma_values.iloc[-1] ma_values = pd.Series(ma_values.to_dict()) self._lines[line_name].update(ma_values) print(ma_values) """ time 2025-03-10 15:44:00...