Bases: object
Add a callback that will be called on each bar.
Parameters: |
|
---|
Add a DataSeries to the subplot.
Parameters: |
|
---|
Add a horizontal line to the plot.
Parameters: |
|
---|
Bases: pyalgotrade.plotter.Subplot
A Subplot responsible for plotting an instrument.
Bases: object
Class responsible for plotting a strategy execution.
Parameters: |
|
---|
Builds a matplotlib.figure.Figure with the subplots. Must be called after running the strategy.
Parameters: |
|
---|---|
Return type: | A 2 element tuple with matplotlib.figure.Figure and subplots. |
Returns the InstrumentSubplot for a given instrument
Return type: | InstrumentSubplot. |
---|
Returns a Subplot by name. If the subplot doesn’t exist, it gets created.
Parameters: | name (string.) – The name of the Subplot to get or create. |
---|---|
Return type: | Subplot. |
Returns the subplot where the portfolio values get plotted.
Return type: | Subplot. |
---|
Plots the strategy execution. Must be called after running the strategy.
Parameters: |
|
---|