Key points
- Every indicator is derived from past prices and therefore lags to some degree.
- Trend indicators (moving averages, MACD) and oscillators (RSI) answer different questions.
- ATR measures volatility in price units and is widely used to set stops and size positions.
- VWAP is an intraday benchmark that resets each session.
- Parameter choices change signals; test settings rather than adopting defaults blindly.
Moving averages: SMA and EMA
SMA(n) = (C₁ + C₂ + … + Cₙ) ÷ n, where C is the closing price of each of the last n candlesEMA_today = α × C_today + (1 − α) × EMA_yesterday, with α = 2 ÷ (n + 1)The EMA gives more weight to recent closes, so it reacts faster than an SMA of the same length but also whipsaws more.
Moving averages smooth price to show direction. Longer lengths lag more and produce fewer, later signals; shorter lengths react sooner and produce more false ones. Crossovers of two averages are among the most tested rules in technical analysis, and their results depend heavily on the market and on costs.
Momentum oscillators: RSI and MACD
RSI = 100 − 100 ÷ (1 + RS), where RS = average gain ÷ average loss over n periods (commonly 14, using Wilder's smoothing)See RSI. Readings above 70 or below 30 are conventionally called overbought or oversold, but in strong trends RSI can stay there for long periods.
MACD line = EMA(12) − EMA(26); signal line = EMA(9) of the MACD line; histogram = MACD line − signal lineSee MACD. It is built from moving averages, so it inherits their lag.
Oscillators describe the speed of recent moves. They tend to help in ranging markets and mislead in trending ones, while trend indicators do the opposite. Combining several indicators that are computed from the same closes rarely adds independent evidence, because they largely restate one another.
Volatility: ATR and Bollinger Bands
True range = max(High − Low, |High − previous Close|, |Low − previous Close|); ATR(n) = smoothed average of true range over n periodsSee ATR. Because it includes gaps from the previous close, ATR reflects overnight jumps as well as intraday ranges.
Middle = SMA(20); Upper = Middle + k × standard deviation(20); Lower = Middle − k × standard deviation(20), commonly k = 2Volatility indicators do not say which way price will move, only how much it has been moving. That makes them useful for risk: a stop placed at a multiple of ATR adapts to calm and turbulent markets, and the stop distance then feeds directly into position sizing. Chandelier-style trailing exits, used in AlgoStok's strategy versions, hang a stop a multiple of ATR below the recent high.
Volume-based: VWAP
VWAP = Σ(typical price × volume) ÷ Σ(volume), accumulated from the session open; typical price = (High + Low + Close) ÷ 3See VWAP. It resets every session and is mainly an intraday reference.
Institutional desks often compare their execution prices with VWAP. Traders use it as a reference for whether the current price is above or below the session's average traded price. It depends on accurate volume data, which can differ between data sources.
Heikin-Ashi candles
HA close = (O + H + L + C) ÷ 4; HA open = (previous HA open + previous HA close) ÷ 2; HA high = max(H, HA open, HA close); HA low = min(L, HA open, HA close)Heikin-Ashi candles average each period with the previous one, so runs of same-coloured candles appear during trends and noise is reduced. AlgoStok's Trend Dominator versions compute their signals on closed Heikin-Ashi candles. Because the HA open depends on all earlier candles, values can differ slightly depending on where the data history starts. Execution and accounting must always use actual broker prices and fills. Read What Heikin-Ashi candles are for a worked example.
Choosing and testing indicator settings
- Start from a question (is there a trend? how volatile is it?) and pick the indicator that answers it.
- Avoid stacking indicators computed from the same data; they agree with each other more than with the future.
- Changing a length from 14 to 13 because it looked better on past data is a form of overfitting.
- Check how much warm-up history an indicator needs; early values on a short history are unreliable.
- Use walk-forward analysis or a held-out period to see whether settings hold up on unseen data.
The strategy development guide shows how indicator rules become a complete system with entries, exits and risk limits.
Frequently asked questions
Which indicator is the most accurate?
None is accurate in the sense of predicting prices. Each summarises past data in a different way. Usefulness depends on the market, timeframe, costs and how the indicator fits into a complete, tested plan.
Why does my indicator value differ from another platform's?
Platforms can differ in smoothing method, data source, session times, adjustment for corporate actions and how much history was loaded before the first value. Small differences are normal; compare settings before comparing results.
Should I use default indicator settings?
Defaults such as RSI 14 or MACD 12, 26, 9 are conventions rather than optimal values. They are a reasonable starting point for learning, and any change should be tested on data the setting was not tuned on.