Plot
Plot a line on the chart
Method
Section titled “Method”tm.plot(value, title, color, overlay)Inputs
Section titled “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
Section titled “Outputs”None
Example usage
Section titled “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)