Plotting Technical Indicators and Signals in OctoBot Strategy Reports
Summary
This short guide explains how to display a technical indicator and its associated signals in a strategy execution report using OctoBot Script. It describes a plotting function that takes a chart label, x-axis values, y-axis values, and optionally the x-axis locations where signals occur. The example applies this workflow to RSI values over time.
The page is a plotting reference, not a guide to calculating RSI, designing entry rules, or evaluating a trading strategy. It provides no backtest results, comparison of indicators, or evidence that plotting improves performance. Its practical contribution is to show how indicator values and signal timing can be represented together for inspection; users still need to determine how the values are generated and whether the resulting signals are useful.
Key ideas
- The guide shows how to plot an indicator in an OctoBot strategy execution report.
- The plotting inputs include a chart name and x- and y-axis data.
- Signal locations can be added to the plot as optional x-axis values.
- The example uses RSI values and their signal times.
Tags
Full text
# Tracer des indicateurs --- title: "Tracer des indicateurs" description: "Apprenez comment représenter graphiquement des indicateurs techniques tels que le RSI ou l'EMA dans votre rapport d'exécution de stratégie en utilisant Python à l'aide d'OctoBot Script." sidebar_position: 10 --- # Tracer des indicateurs :::info La traduction française de cette page est en cours. ::: Indicators and associated signals can be easily plotted using the `plot_indicator(ctx, name, x, y, signals)` keyword. Where: - `name`: name of the indicator on the chart - `x`: values to use for the x axis - `y`: values to use for the y axis - `signal`: (optional) x values for which a signal is fired Example where the goal is to plot the value of the rsi indicator from the [example script](/guides/octobot-script#script). ``` python await obs.plot_indicator(ctx, "RSI", time_values, indicator_values, signal_times) ```
Shown in full with attribution under the source's licence. Licence: GPL-3.0
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.