Backtrader - Sell/Buy signal labels are missing in the plotting

科技美学 / 2023-06-07 / 原文

1.0 Missing Sell/Buy signal labels

 

2.0 Solution

 

cerebro = bt.Cerebro(stdstats=True, cheat_on_open=True)

  stdstats=True,用回預設的stdstats就能顯示Sell/Buy signal labels。