Generate an html document containing all of the scripts and data to load tradingview and review the results
Project description
Jesse tradingview light reporting library
Generate an html document containing all of the scripts and data to load tradingview and review the results. This can be generated within a strategy at regular intervals to review the results live.
The library is published to pypi: https://pypi.org/project/JesseTradingViewLightReport/
So to install, from a command prompt where you would be running python:
pip install JesseTradingViewLightReport
Upgrade:
pip install JesseTradingViewLightReport --upgrade
To generate just the candlestick, volume, and order report - Add the following to your strategy:
import JesseTradingViewLightReport
def terminate(self):
JesseTradingViewLightReport.generateReport()
But you can also add custom data for example:
JesseTradingViewLightReport.generateReport(
customData={
"atr":{"data":self.atr, "options":{"pane":1, "colour":'rgba(251, 192, 45, 1)'}},
'two':{"data":self.candles[:,1]-5, "options":{"pane":2}, "type":"HistogramSeries"},
'three':{"data":self.candles[:,1]+5, "options":{"pane":2, "color":'purple'}}
}
)
Available types are:
- LineSeries
- HistogramSeries
- AreaSeries
- BaselineSeries
You may be able to use:
- BarSeries
- CandlestickSeries
For more information on plot types and options see:
- https://tradingview.github.io/lightweight-charts/docs/series-types
- https://tradingview.github.io/lightweight-charts/docs/api
- https://www.tradingview.com/lightweight-charts/
For the moment, the data will need to be the same length as the number of candles you would receive from self.candles
The different panes can be resized by dragging them with the cursor.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for JesseTradingViewLightReport-1.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2b68ac068fae2e8b1a2a4b2c803870e4d0404ec7e6065ca90ac83f106a598b6 |
|
MD5 | c89ad912b1bec6d9aa51b37a69d919ab |
|
BLAKE2b-256 | 63f1251c7d956685de6a5f24a47258ae829e563521c7d24aff5cc96d294c4892 |
Hashes for JesseTradingViewLightReport-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75c95fb0dc44cc1d86dfdc058ec4a8253bbf791a6a086bd511e52019b716a4e9 |
|
MD5 | 897098ab1535d2c93c6ecd295b6d7042 |
|
BLAKE2b-256 | c3766ef32fc02ea9d8a88ff3317c2cc302afd7f1059450494a6cec9944ec68a8 |