Skip to main content
GET
/
api
/
v1
/
analysis
/
indicators
Get Technical Indicators
curl --request GET \
  --url https://api.example.com/api/v1/analysis/indicators
{
  "indicators": [
    {
      "symbol": "BTC/USDT",
      "exchange": "binance",
      "timeframe": "1h",
      "timestamp": "2026-03-03T10:30:00Z",
      "current_price": 43250.50,
      "indicators": {
        "sma_20": 43180.25,
        "sma_50": 42950.75,
        "ema_12": 43220.80,
        "ema_26": 43050.40,
        "rsi_14": 58.5,
        "macd": {
          "macd": 170.40,
          "signal": 153.36,
          "histogram": 17.04
        },
        "bollinger_bands": {
          "upper": 43850.25,
          "middle": 43180.25,
          "lower": 42510.25
        },
        "support_resistance": {
          "support": 42800.00,
          "resistance": 43800.00
        }
      }
    }
  ],
  "count": 1,
  "timestamp": "2026-03-03T10:30:05Z"
}

Overview

The technical indicators endpoint calculates a comprehensive set of technical analysis indicators including moving averages, momentum oscillators, trend indicators, and volatility measures. These indicators form the foundation of the trading signal generation system.

Query Parameters

symbol
string
required
The trading pair symbol to analyze (e.g., “BTC/USDT”).Example: BTC/USDT
exchange
string
required
The exchange name where the symbol is traded (e.g., “binance”).Example: binance
timeframe
string
default:"1h"
The candlestick timeframe for analysis. Common values include:
  • 1m - 1 minute
  • 5m - 5 minutes
  • 15m - 15 minutes
  • 1h - 1 hour (default)
  • 4h - 4 hours
  • 1d - 1 day

Response

indicators
TechnicalIndicator[]
Array containing the calculated technical indicators for the requested symbol.
count
integer
required
The number of indicator sets returned (typically 1 for single symbol request).
timestamp
string
required
ISO 8601 timestamp when the response was generated.

Indicator Calculations

Data RequirementsTechnical indicators require sufficient historical data:
  • Minimum 20 data points for basic indicators (SMA, Bollinger Bands)
  • Minimum 50 data points recommended for reliable calculations
  • More data points = more accurate long-term indicators (SMA50, etc.)
The system retrieves the last 50 candlesticks by default from the database.

Supported Indicators

NeuraTrade calculates the following technical indicators:

Moving Averages

  • SMA (Simple Moving Average): 20, 50 periods
  • EMA (Exponential Moving Average): 12, 26 periods

Momentum Oscillators

  • RSI (Relative Strength Index): 14 periods
  • Stochastic Oscillator: K=14, D=3 periods

Trend Indicators

  • MACD: Fast=12, Slow=26, Signal=9
  • Support/Resistance Levels: Derived from recent highs/lows

Volatility Indicators

  • Bollinger Bands: Period=20, StdDev=2.0
  • ATR (Average True Range): 14 periods

Volume Indicators

  • OBV (On-Balance Volume): Cumulative volume flow
All indicator calculations use the goflux library (go-talib wrapper) for accurate, industry-standard technical analysis.

Examples

curl -X GET "https://api.neuratrade.com/api/v1/analysis/indicators?symbol=BTC/USDT&exchange=binance&timeframe=1h" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "indicators": [
    {
      "symbol": "BTC/USDT",
      "exchange": "binance",
      "timeframe": "1h",
      "timestamp": "2026-03-03T10:30:00Z",
      "current_price": 43250.50,
      "indicators": {
        "sma_20": 43180.25,
        "sma_50": 42950.75,
        "ema_12": 43220.80,
        "ema_26": 43050.40,
        "rsi_14": 58.5,
        "macd": {
          "macd": 170.40,
          "signal": 153.36,
          "histogram": 17.04
        },
        "bollinger_bands": {
          "upper": 43850.25,
          "middle": 43180.25,
          "lower": 42510.25
        },
        "support_resistance": {
          "support": 42800.00,
          "resistance": 43800.00
        }
      }
    }
  ],
  "count": 1,
  "timestamp": "2026-03-03T10:30:05Z"
}

Error Responses

error
string
Error message describing what went wrong.
{
  "error": "symbol parameter is required"
}

Understanding the Indicators

SMA (Simple Moving Average):
  • Calculates arithmetic mean of prices over N periods
  • All prices weighted equally
  • Smoother but slower to react to price changes
  • Better for identifying long-term trends
EMA (Exponential Moving Average):
  • Gives more weight to recent prices
  • More responsive to new information
  • Better for short-term trend identification
  • Used in MACD calculation
RSI divergence can signal potential reversals:Bullish Divergence:
  • Price makes lower lows
  • RSI makes higher lows
  • Suggests weakening bearish momentum
Bearish Divergence:
  • Price makes higher highs
  • RSI makes lower highs
  • Suggests weakening bullish momentum
When Bollinger Bands narrow (low volatility), it often precedes a significant price move:
  • Squeeze: Bands narrow significantly
  • Breakout: Price breaks above/below bands with expanding width
  • Direction: Use other indicators (RSI, MACD) to predict breakout direction

Best Practices

Combine Multiple IndicatorsNo single indicator is perfect. Best practice is to:
  • Use 2-3 indicators from different categories
  • Confirm signals across multiple timeframes
  • Consider volume indicators for confirmation
  • Monitor indicator divergences
Lagging vs Leading IndicatorsMost technical indicators are lagging - they confirm trends after they’ve started:
  • Lagging: SMA, EMA, MACD (good for confirmation)
  • Leading: RSI, Stochastic (good for early signals, more false signals)
Use a mix of both for balanced analysis.

Build docs developers (and LLMs) love