Custom Indicators Guide

Learn how to create custom technical indicators beyond the built-in RSI, MA, Bollinger Bands, and MACD.

Advanced Feature: Custom indicators require Python knowledge and API access. Most traders can achieve excellent results with built-in indicators.

Built-in Indicators

Stratify includes professional-grade indicators out of the box:

Momentum

  • RSI (Relative Strength Index)
  • MACD (Moving Average Convergence Divergence)
  • Stochastic Oscillator

Trend

  • Moving Averages (SMA, EMA)
  • Bollinger Bands
  • ATR (Average True Range)

Creating Custom Indicators

For advanced users, custom indicators can be created via the API:

Example: Custom Volume-Weighted RSI

# Python example (API required)
import pandas as pd

def volume_weighted_rsi(prices, volumes, period=14):
    # Calculate price changes weighted by volume
    weighted_changes = prices.diff() * volumes
    
    # Separate gains and losses
    gains = weighted_changes.where(weighted_changes > 0, 0)
    losses = -weighted_changes.where(weighted_changes < 0, 0)
    
    # Calculate average gains/losses
    avg_gains = gains.rolling(period).mean()
    avg_losses = losses.rolling(period).mean()
    
    # RSI calculation
    rs = avg_gains / avg_losses
    rsi = 100 - (100 / (1 + rs))
    
    return rsi

💡 Pro Tip

Before building custom indicators, test if combining existing indicators achieves your goal. For example, RSI + Volume filter often works better than creating complex custom indicators.