Home / Free RealTest Codes / Aroon Indicator RealTest Code
Aroon Indicator RealTest Code
100% Free
RealTest code for the Aroon Indicator, a time-based momentum oscillator that measures how many bars have passed since the most recent high or low. The implementation uses RealTest's native SinceHigh and SinceLow functions and includes a simple example strategy based on Aroon Oscillator crossovers.
What's Included
- RealTest indicator code + simple example strategy
How It Works
The Aroon Indicator asks: "How many days has it been since the last high or low?" When Aroon Up is at 100, you just hit a new high. When it drops, time is passing without a new high. This code translates that logic into RealTest using the SinceHigh and SinceLow functions, then normalizes the output between 0 and 100. The included strategy triggers buys when the Aroon Oscillator crosses above zero and exits when it crosses back below, capturing medium-length swings.