Skip to content

Overlap Studies

Overlap studies are indicators that are plotted directly on the price chart, "overlaying" the price action. These include moving averages, bands, and envelopes that help identify trends and support/resistance levels.

Available Overlap Indicators

Moving Averages

Bands and Envelopes

Other Overlays

Common Usage

require 'sqa/tai'

close = [45.0, 46.0, 45.5, 47.0, 46.5, 48.0, 47.5, 49.0, 48.5, 50.0]

# Simple Moving Average
sma = SQA::TAI.sma(close, period: 20)

# Exponential Moving Average
ema = SQA::TAI.ema(close, period: 20)

# Bollinger Bands
upper, middle, lower = SQA::TAI.bbands(close, period: 20)

See Also