Each indicator tells a different story about price, momentum, and market sentiment. Understanding what you're testing makes your backtests more intentional — and your edge more durable.
RSI measures the speed and magnitude of recent price changes on a scale of 0–100. It compares average gains to average losses over a rolling period (default 14 days). Readings above 70 are traditionally overbought; below 30 is oversold.
You can set RSI thresholds as entry conditions — for example, RSI below 30 to find oversold setups. YEK Edge also tracks a signal line (SMA or EMA of RSI) so you can catch crossovers, not just static levels. Custom periods (e.g. RSI 7 or RSI 21) are supported.
- RSI below 30 in a strong downtrend often stays oversold for days — combine with a price stabilisation condition to avoid catching falling knives.
- RSI crossing above its signal line can signal momentum turning before the price chart confirms it.
MACD subtracts a slow EMA (default 26-period) from a fast EMA (default 12-period) to produce a MACD line. A 9-period EMA of that line forms the signal line. The difference between the two is the histogram — positive means upward momentum, negative means downward.
YEK Edge evaluates the MACD histogram against a threshold you set. A histogram above 0 means the fast EMA is leading the slow one — bullish momentum. A histogram crossing above 0 is a classic momentum-shift signal. All three parameters (fast, slow, signal) are customisable.
- Histogram crossovers (crosses above 0 / crosses below 0) are often more reliable than static thresholds — test both.
- MACD on weekly bars filters out daily noise and can identify stronger, more sustained trends.
Bollinger Bands place a 20-period SMA at the centre, with upper and lower bands set 2 standard deviations away. As volatility rises, the bands widen; as it contracts, they squeeze. Price touching the outer bands doesn't mean reversal — it means the move is statistically extreme.
You can set conditions on price relative to the upper band, middle band (SMA), or lower band. Operators include below, above, crosses above/below, and touches (within 0.5%). Band period and standard deviation width are configurable. YEK Edge also shows the %B position in the results table.
- Price touching the lower band during low volatility squeezes has historically preceded sharp moves — test which direction the squeeze resolves in your specific setup.
- Combine with RSI below 35 when price touches the lower band for a double-confirmation oversold signal.
A Simple MA (SMA) averages closing prices equally over a period. An Exponential MA (EMA) weights recent prices more heavily, reacting faster to new data. A Double EMA (DEMA) applies a second EMA pass to reduce lag further — useful for faster trend identification without excessive noise.
YEK Edge compares the closing price against the MA value. You choose the type (SMA, EMA, DEMA), the period (any number), and whether the condition applies to daily or weekly bars. Crossover operators let you catch the moment price crosses above or below the average — not just where it sits relative to it.
- Price crossing above the 200-day SMA after a prolonged decline is one of the most backtested signals in equity markets — check your specific symbol's history before assuming it holds.
- EMA 20 on weekly bars provides a clean trend filter that removes most false signals from daily charts.
Volume Ratio divides today's volume by its 20-day simple moving average. A reading of 1.0 means normal volume. A reading of 2.0 means today's volume is double the recent average — indicating unusual participation. Very low readings (below 0.5) signal low-conviction moves.
Volume Ratio can confirm or disqualify other signals. For example, RSI below 30 AND Volume Ratio above 1.5 filters for oversold conditions with elevated sell pressure — a potentially more meaningful capitulation signal. Set thresholds above or below any value you want to test.
- High volume on a down day (ratio above 2.0) often marks exhaustion — especially when RSI is already deeply oversold.
- Price breakouts with volume ratio below 1.0 frequently fail. Use it as a filter to avoid low-conviction breakout traps.
The VIX measures the market's expectation of 30-day implied volatility in the S&P 500, derived from options pricing. It is often called the "fear gauge." A VIX below 15 reflects calm, complacent conditions. Above 30 indicates significant stress. Spikes above 40 typically coincide with acute market crises.
VIX is fetched as an external data series and matched to each daily bar by date. You can add a VIX condition to any backtest — for example, VIX above 30 to isolate high-fear environments. When VIX data isn't available for a specific date, YEK Edge skips the condition rather than fail the signal.
- Historically, buying SPY when VIX spikes above 40 and then starts declining has produced strong forward returns — the data is in your scan history.
- VIX below 12 alongside extended price gains can flag complacency. Test what happens in the weeks following those setups.
CNN's Fear & Greed Index is a composite of seven market indicators — momentum, strength, breadth, put/call ratio, junk bond demand, market volatility, and safe-haven demand. It outputs a single score from 0 (Extreme Fear) to 100 (Extreme Greed), updated daily. It reflects the crowd's current emotional state.
Like VIX, Fear & Greed is matched to each bar by date. Add it to any backtest condition — Fear & Greed below 20 isolates extreme-fear periods. The index acts as a macro sentiment filter that can validate or challenge what your price-based indicators are showing. If no data exists for a date, the condition is skipped.
- Readings below 20 (Extreme Fear) have historically been followed by above-average equity returns over the following 30–90 days — verify this with your specific ticker.
- Extreme Greed (above 80) doesn't mean immediate reversal, but combined with overbought RSI it has preceded elevated drawdown risk.
ATR measures the average daily price range over a rolling period (typically 14 days), accounting for gaps between sessions. It captures how much an asset moves each day in absolute price terms. A high ATR means wide daily swings and elevated volatility; a low ATR signals quieter, range-bound price action.
ATR is used in the Strategy Tester as an alternative to percentage-based stop losses and profit targets. Setting a stop loss at 1.5 ATR sizes your risk relative to current volatility — wider stops during volatile markets, tighter stops when the asset is calm. This keeps risk consistent across different market regimes.
- A fixed 5% stop on a stock with an ATR of 4% will trigger almost daily. ATR-based stops adapt automatically — use them when testing across different volatility environments.
- Risk/reward ratios calculated with ATR units are more meaningful than fixed percentages because they reflect what the market is actually doing each day.