Origami Documentation
User GuideFunction
  • User Guide
    • Create Project
    • Add accounts
    • API Key Creation
      • Hyperliquid
      • Binance
      • Bybit
      • OKX
      • Gate io
      • Mexc
      • HTX
      • Kucoin
      • BingX
      • Bitget
      • BitMart
    • Create Spot Bot
    • Create Futures Bot
    • Create Grid
  • Function
    • Required parameters
      • Buy Orders Count
      • Sell Orders Count
      • Execute Price
      • Execute Volume
    • Base logic
    • Optional parameters
      • Time Between Orders
      • Sleep After Seconds
      • Is Buy First
    • Functions
      • Ticker
      • Orderbook
      • Candles
      • VWAP
      • Amount Before Price
      • Amount Threshold Index
      • Symbol
      • Balance
      • Saved Balance
      • Group Balance
      • Mean
      • Median
      • Max
      • Min
      • Exp
      • Abs
      • Logn
      • Count
      • Random
      • Sum
      • Cached
      • Remove NaN
      • Is NaN
      • Var
    • Technical analysis
      • Relative Strenght Index
      • RSI to price
      • Average True Range
      • Bollinger Bands
      • Donchian Channel
      • Exponential Moving Average
      • Kaufman Efficiency Indicator
      • Kaufman's Adaptive Moving Average
      • Keltner Channels
      • Momentum Breakout Bands
      • Pivot Points
      • Percentage Price Oscillator
      • Percent B
      • Stop-and-Reverse
      • Stochastic Oscillator %K
      • Stochastic RSI
      • True Range
      • Triple Exponential Moving Average Oscillator
      • Volume Adjusted Moving Average
    • Structures
      • Balance
      • GroupBalance
      • Orderbook
      • OrderBookUnit
      • Symbol
      • Candle
    • Shortcuts
      • Base
      • Counter
    • Exchanges list
    • Pre-defined parameters
      • Order Pos
      • Side
Powered by GitBook
On this page
  • Relative Strenght Index (RSI)
  • How the RSI Functions:
  1. Function
  2. Technical analysis

Relative Strenght Index

The Relative Strength Index (RSI) employed to identify shifts in momentum and the potential direction of asset prices.

rsi(candles: List[[Candle]], period: int = 14, column: str = "close") -> List[Decimal]

  • Parameters:

    • candles: List[[Candle]]

    • period: int, default 14

    • column: str, deafault 'close'

    OHLCV - Open high low close

  • Returns: Decimal

    Returns number, in range [0,100], that indicates that the market is oversold or overbought.

Example:

Relative Strenght Index (RSI)

Offering insights into the speed and extent of price movements to assess whether an asset is overbought or oversold. By gauging recent price changes, it provides valuable signals regarding the strength of a trend, aiding traders in making informed decisions.

Key Insights:

  • the RSI helps traders detect bullish or bearish momentum

  • A reading above 70 typically signals that an asset is overbought, while a reading below 30 suggests it is oversold.

  • In certain market conditions, when the RSI crosses below the overbought level or above the oversold level, traders may interpret this as a signal to buy or sell.

  • The RSI is most effective within trading ranges and less reliable in trending markets.

RSI=100−(1001+Average GainAverage Loss)\textbf{RSI}=100-\left( \frac{100}{1+\frac{\text{Average Gain}}{\text{Average Loss}}} \right)RSI=100−(1+Average LossAverage Gain​100​)

How the RSI Functions:

The RSI compares the average strength of an asset’s price movements on up days to its strength on down days. By doing so, it provides a ratio that helps assess whether the security is experiencing an overextension in either direction. This comparison, when interpreted alongside price movements, offers traders a glimpse into potential future price behavior.

When used in conjunction with other technical indicators, the RSI can enhance a trader's ability to make informed decisions, refining entry and exit strategies.

The Significance of RSI:

  • Trend Validation and Reversals: RSI aids traders in confirming prevailing trends and signaling potential reversals.

  • Overbought and Oversold Conditions: It helps identify when securities may be excessively bought or sold, offering an early warning for price corrections.

  • Short-Term Signals: For short-term traders, the RSI can serve as a valuable tool, providing actionable buy and sell signals.

  • Complementary to Other Indicators: The RSI is most potent when used alongside other technical indicators, offering additional support to trading strategies.

PreviousTechnical analysisNextRSI to price

Last updated 5 months ago