Plot
Plot a line on the chart
Method
tm.plot(value, title, color, overlay)
Inputs
Parameter | Argument type | Description | Default Value |
---|---|---|---|
value | pd.Series or int or float or bool | Value to plot | - |
title | str | Title of the plot | - |
color | str | Color of the plot | - |
overlay | bool | Whether to overlay the plot on the chart or not | True |
Outputs
None
Example usage
import tradomate as tm
@tm.strategy()def my_strategy(config: tm.TradomateConfig, data: tm.TradomateData):
# Plot a line on the chart tm.plot(100, title="My line", color="red", overlay=True)