Skip to main content

Relative Strength Index (RSI)

RSI measures the magnitude of recent price changes to evaluate overbought or oversold conditions.

Registration Name: "RSI"

Parameters:

  • period (required): Lookback period for average gain/loss calculation

Returns: A value between 0 and 100, where:

  • Values > 70 typically indicate overbought conditions
  • Values < 30 typically indicate oversold conditions
registerIndicator("RSI", "BUILTIN", {
period: 14
}, "RSI_14"); // Custom ID for this instance