适配最新QuantChart

This commit is contained in:
2025-10-19 12:01:25 +08:00
parent e363332827
commit 7afe3b21e6
2 changed files with 7 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import pandas as pd
from chart import plot_chart
from chart import QuantChart
if __name__ == "__main__":
symbol = "ETH_USDT"
@@ -9,4 +9,5 @@ if __name__ == "__main__":
df.rename(columns={"date": "time"}, inplace=True)
print(df.head())
plot_chart(df, symbol=symbol, name=symbol, timeframe=timeframe)
quant_chart = QuantChart()
quant_chart.plot_chart(df, symbol=symbol, name=symbol, timeframe=timeframe, init_visible_num_bars=180)