Skip to main content

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'}}
	}
)

demo

Available types are:

  • LineSeries
  • HistogramSeries
  • AreaSeries
  • BaselineSeries

You may be able to use:

  • BarSeries
  • CandlestickSeries

For more information on plot types and options see:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

JesseTradingViewLightReport-1.0.9.tar.gz (52.0 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page