enzoampil / fastquant

fastquant — Backtest and optimize your ML trading strategies with only 3 lines of code!
MIT License
1.52k stars 239 forks source link

Add plot arguments #331

Closed khuyentran1401 closed 3 years ago

khuyentran1401 commented 3 years ago

Description

Allow users to add arguments to the function cerebro.plot() by specifying plot_kwargs=dictionary_of_items. I have added the document for this in backtest function. But let me know if you need me to add the document for this in any other markdown files

Usage

backtest(cfg.strategy.name, df, 
         plot_kwargs={'fmt_x_ticks': '%Y-%b-%d %H:%M', #  Format string for the display of ticks on the x axis
                    'fmt_x_data': '%Y-%b-%d %H:%M'},  # Format string for the display of data points values  

Checklist