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.
Stratify includes professional-grade indicators out of the box:
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 rsiBefore building custom indicators, test if combining existing indicators achieves your goal. For example, RSI + Volume filter often works better than creating complex custom indicators.