معرفی شرکت ها


backtrader-plotly-1.3.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Library replacing original matlibplot used by backtrader
ویژگی مقدار
سیستم عامل OS Independent
نام فایل backtrader-plotly-1.3.0
نام backtrader-plotly
نسخه کتابخانه 1.3.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Paul Lam
ایمیل نویسنده lamkashingpaul@gmail.com
آدرس صفحه اصلی https://github.com/lamkashingpaul/backtrader_plotly
آدرس اینترنتی https://pypi.org/project/backtrader-plotly/
مجوز GPLv3
# backtrader_plotly Plot `backtrader`'s result using `plotly` instead of the default `matplotlib` This is an experimental package, and it is done by replacing original `matplotlib` method calls. ## Installation `$ pip install backtrader-plotly==1.3.0` ## New Scheme Arguments New scheme arguments are added to provide extra control | Name of Argument | Default Value | Description | | :-------------------- | ------------: | :--------------------------------------------------------------------------------------------------------------------------------------------- | | decimal_places | 5 | It is used to control the number of decimal places of price shown on the plot. For instance, forex price usually consists of 5 decimal places. | | max_legend_text_width | 16 | It is used to limit the legend text width to prevent it from occupying the page. | ## Usage ```python # import the package after installation from backtrader_plotly.plotter import BacktraderPlotly from backtrader_plotly.scheme import PlotScheme import plotly.io # do whatever you want with `backtrader` import backtrader as bt # for instance cerebro = bt.Cerebro() # after adding data and strategy cerebro.run() # define plot scheme with new additional scheme arguments scheme = PlotScheme(decimal_places=5, max_legend_text_width=16) # plot and save figures as `plotly` graph object figs = cerebro.plot(BacktraderPlotly(show=True, scheme=scheme)) figs = [x for fig in figs for x in fig] # flatten output for fig in figs: plotly.io.to_html(fig, full_html=False) # open html in the browser plotly.io.write_html(fig, file='plot.html') # save the html file ```


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl backtrader-plotly-1.3.0:

    pip install backtrader-plotly-1.3.0.whl


نصب پکیج tar.gz backtrader-plotly-1.3.0:

    pip install backtrader-plotly-1.3.0.tar.gz