Range Efficiency (ER)
Measures how much of the price range was directional movement versus noise. Returns a value between 0 and 1 — near 0 means choppy/range-bound, near 1 means strongly trending. Formula: |close_now − close_N_ago| / (highest_high − lowest_low).
Live Demo
Pick a market regime to see how ER(14) reacts:
Usage
import {} from 'trading-signals';
// ER yields results once 14 inputs have been added
const = new (14);