Skip to content
Robot de trading
Docs d'OctoBot script
Tracer des indicateurs

Tracer des indicateurs

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.


  • 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.

await obs.plot_indicator(ctx, "RSI", time_values, indicator_values, signal_times)