RealTest User Guide
RealTest User Guide

 

 

Navigation: RealTest Script Language > Syntax Element Details >

EhlersSS

 

 

 

 

Category

Multi-Bar Functions

Description

Two-pole SuperSmoother filter as described by John Ehlers.

Syntax

EhlersSS(expr, count)

Parameters

expr - data series formula

count - lookback period

Notes

A low-lag smoothing filter that attenuates frequencies above the cutoff period with less lag than a comparable moving average.

Provides a smoother result than SMA or EMA with sharper frequency rejection.

The count argument may be a formula rather than a constant. A non-constant period is re-evaluated on every bar: the filter coefficients are recomputed from that bar’s value and the recursion continues from the stored prior outputs, the same adaptive model used by AEMA. The period formula may even reference the enclosing Data item’s own prior values at offsets of 1 or more, allowing self-tuning filters.

On bars where the period evaluates to n/a, the output is n/a, and the recursion re-seeds when the period next becomes valid. The effective period is internally clamped to a minimum of 2 bars.

This function supports one-pass calculation when used in the Data Section.

Example

EhlersSS(Close, 10)

Smooths the closing price with less lag than a comparable EMA.

Useful as a low-lag trend filter or signal line.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC