Oscillators and momentum indicators—RSI, stochastic, MACD and ROC

RSI reads 78 while price keeps rising. There is no contradiction: smoothed gains can continue to dominate losses during further price increases. An oscillator answers a specific question about the data, rather than setting a reversal date. Below, you will calculate RSI across successive closes, compare two stochastic smoothing methods and check why MACD with parameters 12,26,9 can look different on two platforms.

Illustration. Calculate each tool from its own inputs and units.

Ask what the oscillator measures

A bounded scale is convenient for comparison, but its endpoints do not describe future price. RSI compares smoothed positive and negative close-to-close changes. Stochastic places the current close inside a selected High–Low range. Their outputs can disagree because their questions differ. Start by naming the input, period, smoothing and candle status rather than treating every line near the top of its panel as the same message.

Here is a complete small hypothetical EUR/USD example, with one pip equal to 0.0001. Five completed closes are 1.3000, 1.3002, 1.3001, 1.3004 and 1.3002 USD per EUR. Their four changes are +2, −1, +3 and −2 pips. For a teaching RSI(3), seed average gains U and losses D from the first three changes: U=(2+0+3)/3=5/3 pips and D=(0+1+0)/3=1/3 pip.

An invented RSI(3): seed first, then a Wilder update
Available after closeU, pipsD, pipsRSI = 100U/(U+D)
45/31/383.3333
510/98/955.5556

The seed needs four prices for three changes. At close 5, use Wilder’s update with weight 1/3: U=(2×5/3+0)/3=10/9; D=(2×1/3+2)/3=8/9. RSI becomes 100×10/18=55.5556. Keep exact fractions through the calculation. The TradingView RSI reference describes Wilder smoothing. A period of 3 is chosen to make this example readable, not to recommend a setting.

The same close can occupy a different part of a range

For a separate hypothetical raw stochastic reading, set the highest High in the chosen window to 1.3020, the lowest Low to 1.2980, and current Close to 1.3010. The unsmoothed %K is 100×(1.3010−1.2980)/(1.3020−1.2980)=75. It says the close is three-quarters of the way from the window’s low to high. This calculation requires the full declared High/Low window, not just our five RSI closes.

Keep Close at 1.3010 but use a second, explicitly different window with High 1.3040 and Low 1.3000. Raw %K is now 25. No contradiction exists: the range changed. Neither 75 nor 25 supplies a probability of reversal. A smoothed %K or %D would require additional observations and its own smoothing rule; do not compare raw %K with a platform’s slow stochastic as if they were identical. The MetaQuotes stochastic documentation lists the calculation parameters.

Boundaries also need a policy. If the High equals the Low, this raw stochastic formula divides by zero; in this teaching model record “unavailable”, not a calculated neutral 50. In RSI, U>0 with D=0 gives 100, while U=D=0 needs an explicit implementation convention. A number displayed by software is useful only when you know which branch produced it.

A reading becomes a decision only through another rule

Our RSI starts above the familiar 70 threshold and then falls. The numbers alone do not tell you to sell at close 4, buy at close 5 or select an exit. Those actions would be added trading rules requiring their own test, costs and execution assumptions. A high reading can persist while price advances; an oscillator leaving an extreme can also be followed by renewed movement in the earlier direction.

Separate three records: the observation, the condition and the response. “RSI=83.3333 after close 4” is an observation. “A completed RSI crosses below 70” is a condition. “Send a request at the next available quote subject to a spread limit” is a response. Keeping them apart stops a chart label from silently becoming a historical fill.

Common errors include using candle colour instead of the previous close for RSI changes, comparing differently seeded histories, and drawing a divergence from a swing that was confirmed only later. Check availability time before judging any signal. When several indicators reuse the same prices, agreement does not multiply the amount of independent evidence. The detailed examples below let you inspect smoothing variants, matched pivots and real observations without assuming that one chosen chart measures effectiveness.

Three exercises with worked answers

The exercise data are hypothetical. Choose an answer, then check the calculation.

1. How many prices seed this RSI(3)?

The seed is based on three close-to-close changes.

Show the answer and explanation

C. Each change needs a previous close. For our first four prices, the changes +2, −1 and +3 produce seed U=5/3 and D=1/3 pips. Do not create a zero change before the first observed price.

  • A. Two prices provide only one change.
  • B. Three prices provide only two changes.
  • C. Correct: four prices provide three consecutive changes.
  • D. That is neither this period nor the number of prices needed for it.
2. What is the raw stochastic reading?

Highest High=1.3020; lowest Low=1.2980; Close=1.3010. No slowing is applied.

Show the answer and explanation

C. The numerator is Close minus Low; the denominator is High minus Low. Both differences use the same units. The resulting dimensionless 75 describes range position, not the chance of a winning trade.

  • A. 25 measures the remaining distance to the high, not the specified ratio.
  • B. The close is above the range midpoint of 1.3000.
  • C. Correct: 100×0.0030/0.0040=75.
  • D. 100 requires Close equal to the window high.
3. What follows from RSI above 70?

A completed reading is 83.3333 under the declared Wilder model.

Show the answer and explanation

C. Record the value and its availability time. A threshold can be part of a predeclared procedure, but its outcome must be measured on a complete sample after costs; the label “overbought” supplies no guarantee.

  • A. The formula contains no next-candle price.
  • B. An indicator reading is not an order or fill.
  • C. Correct: the observation needs a separate response rule.
  • D. Stochastic uses High/Low range position and can differ.

Compare formulas, then inspect context

The full lesson extends these two measurements to MACD, CCI, volatility tools and divergence. Work through the real-data exercises with their confirmation times, then use the source references to check the implementation you actually use.

1. What oscillators and momentum indicators are

RSI, stochastic, ATR and bands: four different questions
The four tools measure different relationships: RSI smoothed gains and losses, stochastic Close within a range, ATR the size of True Range, and bands deviation from an average. Native conceptual model: scales and formulas, without historical prices, dates or a forecast.

The preceding article covered trend indicators—tools answering “which way is the market going?” Oscillators answer supplementary questions, each different according to its formula: how fast price changes (ROC), how gains relate to losses (RSI), where the close lies within a local range (stochastic), and how two averages diverge (MACD).

“Oscillator” reflects how these indicators' values oscillate—fluctuate—between fixed boundaries (for example, 0–100 in RSI) or around a central level (for example, zero in CCI). Unlike moving averages, which can rise indefinitely with price, an oscillator is range-limited or at least centred on a fixed line, which is key to interpretation. Strictly, an oscillator transforms price data for display within a bounded range or relative to a central line; exactly what it measures depends on the formula.

Momentum is the rate of price change. If EUR/USD rose 30 pips yesterday and 10 today, price is still rising but momentum is weakening. Oscillators measure this: the strength and pace of price movement, rather than direction itself. When momentum weakens while price still rises, you have a piece of the puzzle, rather than a signal.

The simplest momentum measures—Momentum and ROC. Before RSI, two foundational formulas. Momentum(n) = Ct − Ct−n: today's close minus the close n periods earlier, in price units. ROC(n) = (Ct − Ct−n) / Ct−n × 100: the same difference expressed as a percentage. Calculation (illustrative values): Ct = 1.1000; Ct−10 = 1.0800 → Momentum = 0.0200 = 200 pips; ROC = 0.0200 / 1.0800 × 100 = +1.85%. Both oscillate around zero (difference-based Momentum in price units, ROC in percent). For positive prices, ROC has a −100% lower bound which it does not reach, and no fixed upper bound; difference-based Momentum has no fixed bounds common to all prices. More complex oscillators build on this rate-of-change logic. Implementation note: MetaTrader's built-in Momentum calculates Ct / Ct−n × 100, so it oscillates around 100 rather than zero; for positive prices its value is positive. With Ct−n = 0, ROC and MetaTrader Momentum ratios are undefined. Check your platform’s formula before comparing values with a textbook.

An important distinction: ATR and Bollinger Bands are volatility indicators, rather than momentum oscillators. We discuss them more briefly as context, assessing whether the current move is ordinary or extreme relative to recent volatility.

Two questions for the same data
Hypothetical EUR/USD H1 closes, USD per EUR, from 1 October 2026 00:00 UTC; indices 0–28. SMA5 and Wilder RSI14 use the full model, with RSI seeded from 14 changes. They summarise different features of the same prices. Peaks require two later closed candles; 30/70 are fixed reference levels.

2. RSI—Relative Strength Index

J. Welles Wilder created RSI and described it in 1978. It measures the relationship between smoothed gains and losses, rather than comparing the strength of two different currencies or companies. The default 14 specifies the number of changes needed to initialise the model below.[1]

How RSI is constructed—formula and calculation

RSI compares smoothed positive and negative changes between consecutive closes. Its default period is 14, but older changes continue to have diminishing influence after the seed. Define:

  • U is the Wilder-smoothed average of gains between consecutive closes. For each bar, gaint = max(Ct − Ct−1, 0). Candle colour does not determine this change.
  • D is the Wilder-smoothed average of losses between consecutive closes. For each bar, losst = max(Ct−1 − Ct, 0).
  • RS = U / D (when D = 0 and U > 0, RSI is 100 under the continuous-extension convention; when D = 0 and U = 0—zero divided by zero—the result depends on the platform convention),
  • RSI = 100 − 100 / (1 + RS).

The result is dimensionless, in the 0–100 range. Crucial detail: U and D are not ordinary averages. The first value is an arithmetic mean over n periods, but each subsequent value uses Wilder smoothing (RMA): Ut = [Ut−1 × (n−1) + gaint] / n. Mathematically, this is EMA with α = 1/n—equivalent to EMA(2n−1) in its smoothing coefficient (initial values can differ because series use different initialisation); for n = 14, this means EMA(27), rather than SMA(14) or EMA(14). RSI manually calculated with an ordinary average will therefore disagree with the platform.

A bearish body can still add a gain to RSI

These are hypothetical EUR/USD prices, in USD per EUR. Compare the new Close with the previous Close for RSI, and with the new Open for candle colour. A pip is 0.0001.

Two designed examples; gain and loss are inputs to the next RSI update
Previous CloseNew OpenNew CloseBodyClose changeGain / loss
1.10001.10201.1010Bearish: C<O+10 pips10 / 0 pips
1.10201.10001.1010Bullish: C>O−10 pips0 / 10 pips

In the first row, the candle falls from its Open but still closes above the previous Close. It contributes a gain. In the second, it rises from its Open but remains below the previous Close, so it contributes a loss. These inputs alone do not calculate RSI: the preceding U and D states are still needed.

RSI(14) calculation. Across 14 changes, gains total 84 pips and absolute losses 42 pips. Seed: U=84/14=6, D=42/14=3, RSI=100·6/(6+3)=66.6666667. The next change is +9 pips. U=(6·13+9)/14=87/14, D=(3·13)/14=39/14, so RSI=100·87/(87+39)=69.0476190. The increase is 2.3809524 RSI points, rather than 2 pips or exactly two points. Round the displayed result, rather than the U/D state carried forward.

An 80 reading can be stated without “expensive”: with positive D, it means U/D = 80/(100−80) = 4. Smoothed gains are four times smoothed losses. This does not measure order count, positioning or distance to a future peak. RSI alone does not prove stop concentration.

Period 14 is Wilder's convention and the described RSI's default setting, rather than an EUR/USD optimisation result. Changing the period changes multiplier 1/n and seed. A shorter period gives a new change more weight, but guarantees no increase in accurate signals. Keep the same feed, input price and starting history when comparing.[1]

What would RSI=80 actually tell you? Smoothed gains are four times smoothed losses. That can coexist with another rise, so “it must turn” is not an exit or entry rule. If you want to study a countertrend response, define the price condition, timing and invalidation separately.

RSI from fifteen prices: seed and the next change

This model needs 15 prices yielding 14 changes for the first RSI(14). Initial Close=1.1000 USD/EUR; pip changes are 12; −6; 6; −3; 15; −9; 9; −6; 18; −12; 12; −6; 12; 0. Gains total 84, losses 42 and net change 42 pips, making the fifteenth price 1.1042. Each row represents the next closed H1; file UTC times are hypothetical.

First reading and the next three RSI(14) updates
Price indexClose, USD/EURChange, pipsRSI, points
141.1042066.6666667
151.1051969.0476190
161.1060971.2585034
171.1069973.3114674

Row 14 begins the indicator series. Earlier rows have no reading, rather than RSI=0. A zero change adds zero to gains and losses but subsequently still updates the recurrence. The complete RSI-series CSV contains all Close prices, changes and values also used in the divergence example. These are educational data, without spread, execution price or a claim about trade outcomes.

Interactive calculator: Wilder RSI(n) & Stochastic %K

Test Wilder RSI smoothing and raw Stochastic %K positioning on any price series (pre-filled with the 18-price RSI(14) model above), including zero-denominator boundary cases when range or losses equal zero (see also the interactive Forex calculators and TA cheat sheet).

RSI on real closes: a state can persist

In the ICMarketsSC-Demo EUR/USD H1 history, six consecutive bars opening from 2025-12-03 11:00 to 2025-12-03 16:00 have RSI(14) above 70 after closing. Gold points mark those readings, not orders. This stay in the zone is consistent with the formula; the threshold alone does not identify the candle that will end the move.

RSI is not restarted at the image’s left edge. The CSV contains 570 successive Close prices since 2025-11-03 00:00: the seed averages the first 14 changes, then U and D update with a coefficient of 1/14 without rounding their states. The image shows indices 514–569. Each H1 reading is known only after the bar ends and its final record arrives. Times retain the original MT5 labels; the broker time zone has not been independently verified.

RSI(14): six readings above 70
Real EUR/USD Bid H1 from 2025-12-02 10:00 to 2025-12-04 17:00. The CSV includes all 570 closes since 2025-11-03 00:00 and explicit seeds. Original MT5 time, unverified broker zone; not UTC. Our visualisation, selected ex post, not a terminal screenshot or performance test.

Data and reproducibility: fm58-eurusd-h1-full-prefix.csv, fm58-real-history.json, fm58-reproduce.py, fm58-method.txt.

Reading RSI

Wilder's classic interpretation:

  • RSI above 70—overbought market. Suggestion: the upward move may have become extended.
  • RSI below 30—oversold market. Suggestion: the downward move may have become extended.
  • RSI near 50—neutral. No clear extension in either direction.

Overbought is not an instruction to sell. RSI above 70 describes smoothed gains dominating losses. History is not cut off after 14 candles: RMA gives older changes diminishing influence. The 30/70 bands and alternative trend zones are interpretation conventions; they change neither formula nor the reversal probability.

RSI=40 means U/D=2/3; RSI=60 means U/D=3/2. The same number can result from price changes at different scales. Without price units, timeframe and preceding structure, we cannot tell whether the move was minor or large. We do not automatically call 40 support or 60 resistance.

RSI divergence

Like MACD divergence, RSI divergence occurs when price makes a new extreme which RSI does not confirm.

  • Bearish divergence: price makes a higher high; RSI a lower high. Momentum weakens despite rising price.
  • Bullish divergence: price makes a lower low; RSI a higher low. Downward momentum weakens.
  • Hidden bullish divergence: price makes a higher low; RSI a lower low. Cardwell's interpretation sometimes treats this as uptrend confirmation; this description gives no continuation or reversal frequency.
  • Hidden bearish divergence: price makes a lower high; RSI a higher high. It is similarly interpreted as downtrend confirmation; this rule's outcome requires a separate test.

Regular bearish divergence pairs a higher price high with a lower RSI reading; bullish divergence pairs a lower price low with a higher RSI reading. Hidden divergence uses the opposite pairing described above.[1] In the hypothetical diagram below, we select confirmed Close extremes and read RSI at those same indices; no separate RSI pivot is required. The later real-data exercise deliberately uses a stricter joint-pivot rule, stated before its question.

A peak marked later than it occurs
Hypothetical EUR/USD H1 model from 1 October 2026 00:00 UTC, USD per EUR. At index 17: Close 1.1069, RSI 73.3115; at 26: Close 1.1070, RSI 69.1468. Two right-hand closes make the second peak available after index 28, at 04:00 UTC on 2 October. Wilder RSI14 uses the full model and SMA14 seed; no separate RSI pivot is required.

Zero denominators and missing readings

A common misunderstanding arises when a chart displays a number despite no ordinary ratio being available. Record boundary conditions alongside the formula:

Indicator boundary cases
ConditionArithmetic conclusionModel policy in this article
RSI: U>0, D=0By continuous extension, 100·U/(U+D)=100100 after collecting the seed
RSI: U=0, D>0100·U/(U+D)=00 after collecting the seed
RSI: U=D=00/0; the formula determines no numberNo reading; we do not guess 50
Stochastic: Hn=Ln0/0 for a valid Close within this rangeNo raw reading
ROC: Ct−n=0Cannot divide by the starting priceNo reading
CCI: MD=0; %B: width=0No ordinary ratio is availableNo reading

This does not claim that every platform uses this policy. The stochastic.mq5 code published by MetaQuotes assigns 100 when the sum of ranges is zero.[16] A 100 reading in this branch does not prove a close at the high of a positive range. The downloaded rsi.mq5 code has no separate U=D=0 branch; check the specific version and its zero-division handling, rather than promising universal RSI=50.[18] Do not automatically turn an incomplete seed or invalid price into zero.

RSI: a lower price low is not enough to confirm divergence

Stop at the close of the H1 bar opening on 5 January 2026 at 14:00. Close is 1.16707 and RSI(14) is 31.1813. The earlier confirmed low has Close 1.16753 and RSI 24.7271. Using the exercise rule below, what is already known, what is still missing, and when could you first complete the assessment?

This exercise’s rule: a joint low must be strictly lower in both Close and RSI than the two closed bars on each side, at the same centre. Pair consecutive joint lows 5–30 records apart, with uninterrupted hourly records through both pivot windows. For a bullish divergence, the second Close must be at least 1 pip lower and RSI at least 3 points higher; the first RSI must be no more than 40. Review the next 12 available records only after recognition. The complete frozen rules are available before reveal.

RSI: two candidate lows in the assessment frame
Real EURUSD Bid H1. Before reveal, through the bar opening at 2026-01-05 14:00; its Close is available no earlier than 2026-01-05 15:00. Indicators use the complete prefix. Original MT5 time, unverified broker zone. Successive-record axis with explicit breaks; not a performance test.

Data available in this frame (CSV).

Reveal confirmation and the next 12 H1 records
RSI: low confirmation and subsequent records
Real EURUSD Bid H1. After reveal, through the bar opening at 2026-01-06 04:00; its Close is available no earlier than 2026-01-06 05:00. Indicators use the complete prefix. Original MT5 time, unverified broker zone. Successive-record axis with explicit breaks; not a performance test.

The second low is not confirmed at the assessment frame. Its Close and RSI are known, but the two right-hand bars are still needed under the joint-pivot rule. The bar opening at 16:00 ends no earlier than 17:00. After its final record arrives, both lows qualify: Close has fallen by 4.6 pips while RSI has risen by 6.4542 points. At recognition, the current Close is already 1.16857 and RSI 42.1731. Those are different readings from the ones at the pivot centre.

After recognition we reveal exactly 12 subsequent completed H1 records. The last, opening on 6 January at 04:00, has Close 1.17376 and RSI 65.2042. Price later rose in this excerpt, selected as the first match. That does not establish divergence performance or a trade result. The key distinction is between the time of the low, its confirmation time and the price actually known at recognition.

Revealed-frame data (CSV). Provenance and calculations (JSON), Reproduce offline (Python), Frozen rules.

Original full-scan sources: USDJPY-H1.csv, GBPUSD-H1.csv, EURUSD-H1.csv.

3. The stochastic oscillator

The stochastic oscillator measures the close's position within the low–high range of the last n candles. Raw %K requires both the price and the two range endpoints.[2]

  • Raw %K = (C − Ln) / (Hn − Ln) × 100, where Hn and Ln are the highest high and lowest low over n periods (when Hn = Ln—a market without range—the denominator is zero and platforms use their own conventions),
  • %D = SMA(3) of %K—the smoothed signal line.

Calculation (illustrative values). Last 14 candles' range: 1.0800–1.1000; close 1.0980. Raw %K = (1.0980 − 1.0800) / (1.1000 − 1.0800) × 100 = 0.0180 / 0.0200 × 100 = 90.0—price near the range's upper boundary.

The fast variant uses raw %K. In a frequently described slow variant, %K is SMA(3) of raw readings and %D is SMA(3) of that smoothed %K. For five raw values 78, 84, 84, 87, 90, successive slow %K values are 82, 85, 87, with final %D = (82+85+87)/3 = 84.6666667. However, 14,3,3 does not exhaust the definition. Published MetaQuotes code implements slowing as a ratio of sums of distances and ranges, which gives a different result from SMA of ratios when ranges vary. We calculate the difference below.[16]

Reading: above 80 → overbought zone; below 20 → oversold. A %K/%D crossover in an extreme zone is a classic signal. Being in the oversold zone alone, as with RSI, is not an entry signal: during a downtrend, the indicator can remain below 20 for many candles, each “extreme” only relative to a range which itself shifts.

RSI compares changes in successive input prices. Stochastic compares the close with the window's High and Low. These are different functions: a High change alone with unchanged Close can affect stochastic, but not Close-based RSI. Both can be compared if each has a defined function; their agreement is not automatically two independent pieces of information.

A crossover is a condition, not an order map. With 14,3,3 settings, first specify how %K is slowed and how %D is averaged. Then define what counts as a crossing and when it is assessed. The chart shows those conditions; it does not show how many traders act on them or where their orders sit. Claims about crowded orders causing false signals remain hypotheses.
Case: an “oversold” stochastic during sterling’s flash event

The BIS report on sterling's 7 October 2016 event describes sharp movement and liquidity conditions.[13] We do not have a specified feed's full history here, so attribute no stochastic values to it. The mechanics can be checked without that: if the close lies exactly at the lowest Low of a positive range, raw %K is zero. That reading does not limit the next Low—the window can move further.

Smoothing changes the stochastic result
Hypothetical smoothing inputs in USD per EUR, not reconstructed candles: Close−Low distances 0.009, 0.001, 0.004 and ranges 0.010, 0.002, 0.008. SMA of raw %K gives 63.3333; the ratio of sums gives 70. Different weighting produces different readings.

Stochastic: 63.33 or 70 for the same three ranges?

Specify three successive window states: C−Ln and Hn−Ln, both distances in USD/EUR. These are hypothetical smoothing inputs, rather than a global-market record.

Three stochastic window states
StateC−LnHn−LnRaw %K
10.0090.01090.00
20.0010.00250.00
30.0040.00850.00

SMA of three raw %K values = (90+50+50)/3 = 63.3333333. The ratio of sums used in published MetaQuotes code gives 100·(0.009+0.001+0.004)/(0.010+0.002+0.008) = 70. A larger range receives greater weight here. When all three ranges are equal, results coincide; this special case can conceal the difference in a superficial comparison. For a complete comparison, record price type, n, slowing, %D method and tool code or version.

Stochastic: an extreme reading can persist during a decline

GBP/USD H1 shows five consecutive completed SlowK readings ≤20, from the bar opening on 3 April 2026 at 17:00 through 21:00. The current Close is 1.31920 and SlowK is 6.2210. Does that number alone identify when a bounce will occur? Separate the close’s location within recent ranges from the movement size described by ATR and bands.

Stochastic: five extreme readings without future price
Real GBPUSD Bid H1. Before reveal, through the bar opening at 2026-04-03 21:00; its Close is available no earlier than 2026-04-03 22:00. Indicators use the complete prefix. Original MT5 time, unverified broker zone. Successive-record axis with explicit breaks; not a performance test.

Data available in this frame (CSV).

Reveal the sixth close and the next 12 H1 records
Stochastic: the sixth close and 12 subsequent records
Real GBPUSD Bid H1. After reveal, through the bar opening at 2026-04-06 10:00; its Close is available no earlier than 2026-04-06 11:00. Indicators use the complete prefix. Original MT5 time, unverified broker zone. Successive-record axis with explicit breaks; not a performance test.

The sixth completed H1 bar opens at 22:00: Close 1.31930, SlowK 6.4702 and D 6.8962. Six readings are known no earlier than 23:00, once the final record arrives. The predefined conditions describing the preceding decline are Close below SMA50, SMA50 below its value ten records earlier, and Close below its value twenty records earlier. This describes the past; it does not guarantee a continuing trend. SlowK uses parameters 14,3 with ratio-of-sums smoothing of Close−Low distances and High−Low ranges; D is the SMA3 of that line. Here ATR14 is an SMA of True Range, while BB is SMA20 ±2 standard deviations using divisor 20. ATR and BB did not select this case and are not independent “votes” to buy.

The reveal shows 12 subsequent records after recognition, not 12 hours. The export has a break between the 3 April 23:00 opening and 6 April 00:00: 49 hours between adjacent recorded openings. We add no missing candles and do not draw indicator lines across the break. SlowK remains ≤20 for four more records before rising. The final displayed Close is 1.32531. This sequence does not establish a rule to buy an extreme stochastic; it shows why the indicator’s state, observation time and later outcome must be separated.

Revealed-frame data (CSV). Provenance and calculations (JSON), Reproduce offline (Python), Frozen rules.

Original full-scan sources: USDJPY-H1.csv, GBPUSD-H1.csv, EURUSD-H1.csv.

4. MACD—construction and implementation

The preceding article provides the full signal-side discussion of MACD—line crossings, divergences and parameter selection—because MACD is a hybrid, part trend indicator and part oscillator. Here, we examine momentum and implementation, where two things are hidden which the chart alone cannot reveal.

Formulas. MACD = EMA(12)−EMA(26). In the EMA variant, signal = EMA(9) of MACD, and difference histogram = MACD−signal. MT5 documentation specifies SMA(9) instead of signal EMA.[12] If specified states are EMA12=1.0952 and EMA26=1.0918, MACD is 0.0034 USD/EUR = 34 pips. With a specified signal of 0.0021, the difference histogram is 0.0013 USD/EUR = 13 pips. This checks subtraction of states, rather than calculating EMA without the full price series.

First: units. Unlike RSI and stochastic, MACD is not dimensionless—it is expressed in the instrument's price units. A +0.0034 EUR/USD reading and +0.34 USD/JPY reading are not comparable between pairs or timeframes; no fixed bounds exist, so there is no universal “overbought” threshold. MACD oscillates around zero—zero crossings, its relationship with the signal line and histogram direction carry information, rather than its absolute value.

Second: implementations. “MACD” on different platforms is not always the same indicator:

Comparison of construction and interpretation
ElementClassic definition (Appel)MetaTrader 4/5 (built-in)
Main lineEMA(12) − EMA(26), plotted as a lineSame formula, but plotted as bars
Signal lineEMA(9) of the MACD lineSMA(9) of the main line
HistogramMACD − signal, separate barsNo separate difference series—the bars are the main line

Consequently, with identical (12, 26, 9) parameters, MetaTrader shows different signal-line values (SMA instead of EMA) and a different display—what is the difference histogram in the textbook is the main line itself in MT. Before comparing your reading with another description or platform record, check which version yours calculates.

MACD: separate SMA and EMA signal calculations

Use a specified series of ten MACD-line values themselves: 0.0010; 0.0012; 0.0014; 0.0016; 0.0018; 0.0020; 0.0022; 0.0024; 0.0026; 0.0034 USD/EUR. These are hypothetical signal-line input states; we do not claim to have calculated them from undisclosed Close history. The first nine give seed SMA=0.0018. For EMA(9), α=2/(9+1)=0.2. At the tenth state:

MACD=0.0034 USD/EUR: effect of the signal calculation method
VariantSignal line, USD/EURMACD−signal, USD/EURDifference in pips
EMA(9), SMA9 seed0.0021200000.00128000012.800000
SMA(9), rolling window0.0020666670.00133333313.333333

Both signal lines are below MACD, but their values differ. MT5 documentation specifies SMA; the TradingView variant description uses EMA.[12][19] Include what the bars show in the comparison: the main line itself or MACD−signal. Colour and drawing style do not determine the formula. A +0.0034 USD/EUR reading corresponds to 34 pips; +0.34 JPY/USD with a 0.01 pip also corresponds to 34 pips, but still does not mean identical economic movement in both pairs.

MACD on the same history: only the signal changes

The second comparison uses exactly the same closes, rather than another independent market sample. EMA12 starts with the SMA of the first 12 closes; EMA26 with the first 26. The first nine available MACD values seed signal EMA9; signal SMA9 always averages the latest nine values. This is the explicit, reproducible initialisation of our calculation, not a claim that every digit matches a terminal using a different history start.

For the H1 opening at 2025-12-04 17:00, MACD is 0.00052235 USD/EUR, signal SMA9 0.00056580 and EMA9 0.00058339. MT5 documentation specifies an SMA signal; the classical variant uses EMA. We draw lines to make the comparison readable. MT5’s built-in bars show MACD itself, not MACD−signal. Neither the difference between lines nor this one excerpt establishes which variant performs better.

MACD: one main line, two signals
Real EUR/USD Bid H1 from 2025-12-02 10:00 to 2025-12-04 17:00. The CSV includes all 570 closes since 2025-11-03 00:00 and explicit seeds. Original MT5 time, unverified broker zone; not UTC. Our visualisation, selected ex post, not a terminal screenshot or performance test.

Data and reproducibility: fm58-eurusd-h1-full-prefix.csv, fm58-real-history.json, fm58-reproduce.py, fm58-method.txt.

5. CCI, ATR and Bollinger Bands—context tools

CCI compares typical price with its average and mean absolute deviation. ATR and bands measure range and dispersion, rather than momentum oscillation. We retain them as context to avoid confusing high momentum with high volatility. The moving-averages article explains band construction and the standard-deviation divisor variant.

CCI—an oscillator without fixed bounds

Here, CCI (Commodity Channel Index) is (TP−SMA(TP,n))/(0.015·MD), where TP=(H+L+C)/3 and MD is the mean absolute deviation of all n typical prices from the same current mean. With MD=0, the ratio has no ordinary value. The formula measures distance from a local reference; “return to normal” would already be a hypothesis about future movement.[5]

CCI is not confined to 0–100 or ±100. However, for the specific SMA/MD definition and fixed n, its values cannot grow arbitrarily large. Because deviations from the mean sum to zero, the sum of their absolute values is at least twice the absolute last deviation. Thus, |CCI| ≤ n/(2·0.015). For n=20, the bound is 666.6667, provided MD>0. This is an arithmetic property, rather than a new overbought threshold. Nineteen typical prices at 1.1000 and one at 1.1010 give mean 1.10005, MD=0.000095 and CCI=666.6667.

CCI can organise typical price's distance from its local mean. The scale depends on period and deviation calculation. A +100 reading does not mean the same as RSI=70, and neither number is a percentage reversal probability. Choosing between them requires specifying what to measure, rather than ranking the “more operational” indicator.

The bounds depend on the definition. CCI does not have fixed bounds of ±100 comparable to RSI’s range of 0–100. With the arithmetic mean and mean absolute deviation from the same window described below, however, the bound |CCI| ≤ n/(2 × 0.015) applies; for n = 20, this is ±666.6667. A different implementation requires a separate check. A historically extreme reading for an instrument can occur again or be exceeded. Neither a past extreme nor proximity to the model’s bound proves that the price move has ended.

ATR—Average True Range

ATR is also Wilder's construction[1]. It is not a momentum oscillator. It says neither “which way” nor “how far from normal”, but one thing: how much the market moves.

True Range (TR) = max(H−L, |H−Ct−1|, |L−Ct−1|). Equivalently: max(H,Ct−1)−min(L,Ct−1). Wilder's construction smooths TR with 1/n. Not every ATR implementation does the same: published MetaQuotes atr.mq5 code rolls a simple average of n TR values.[7] The setting's description should also include the smoothing method.

Why is the distinction useful? A large new TR raises both variants, but disappears entirely from SMA after leaving the window; its influence decays under Wilder smoothing. ATR alone does not establish a “safe” stop distance. It describes preceding ranges, including gaps between the previous close and current candle.

Three practical uses:

1. Distance scale. ATR=80 pips with multiplier 1.5 gives 120 pips, or 0.0120 USD/EUR. Subtracting that distance from anchor 1.0850 gives 1.0730. The calculation determines neither maximum loss nor guaranteed execution. The section on stop loss and invalidation explains order applications.

2. Distance filter. A rule may exclude a new entry when Close is more than 2 × ATR(14) from EMA(21). That is a chosen distance threshold, not proof that a reversal is near. Record the ATR method and compare the complete rule with and without this filter.

3. Change in smoothed range. Rising ATR means a higher smoothed TR value, but requires no trend beginning. Falling ATR sets no date for a future large move. ATR is not implied volatility and contains no information about an unannounced event.

ATR smooths observed True Range, rather than an order’s execution price. An important release can increase the range or create a gap from the previous Close, and ATR incorporates it as the data update. Spread and slippage, by contrast, concern execution conditions at that moment. An ATR multiplier does not guarantee an exit price: triggering an ordinary stop leads to an attempt to execute under the service’s conditions, sometimes through several fills. An ATR-based stop and the economic calendar should therefore be read together. Section 12 discusses execution of protective orders during liquidity gaps, including the difference between Stop Loss and Stop Out.

Smoothing effect, a TR model in pips. A seed from 20, 30 and 40 pips has mean 30. New TR=120 gives RMA3=(2·30+120)/3=60 pips, while SMA3=(30+40+120)/3=63.3333 pips. We measure the same TR series; results differ because RMA retains its previous state while SMA removes the oldest 20. The chart below shows these specified data without reconstructing missing OHLC.

TR and the ATR smoothing method
Designed True Range inputs in pips: 20, 30, 40, 120. With a three-value seed of 30, RMA3 updates to 60 and rolling SMA3 to 63.3333. These are TR inputs, not OHLC reconstruction; the cited MetaQuotes ATR code uses SMA.
ATR and rollover. A candle-based ATR does not measure the spread available when an order is triggered. Around the provider’s daily processing window, compare timestamped Bid and Ask rather than assuming an ATR distance covers execution costs. The conventional 17:00 New York boundary is usually 23:00 CET (22:00 UTC), or 22:00 local CET during US–EU DST mismatches; check the product’s actual schedule and trigger side.

A fourth use—scaling position size to current volatility, known from Turtle strategies and CTA funds—belongs entirely to risk management, where we discuss it (section 9).

The SNB decision and the scope of the evidence. The SNB announcement of 15 January 2015 confirms the discontinuation of the EUR/CHF minimum exchange rate.[14] It supplies neither ATR values from a particular terminal nor evidence of a safe multiplier. We do not calculate such readings without the complete history. ATR describes observed ranges; it does not encode the conditional risk of a central bank policy change.

Bollinger Bands

Bollinger Bands were developed by John Bollinger in the 1980s.[6] Three lines:

  • Middle band = SMA(20). A simple moving average over 20 periods.
  • Upper band = SMA(20) + 2 × standard deviation (σ) over 20 periods.
  • Lower band = SMA(20) − 2 × standard deviation (σ) over 20 periods.

Crucially, bands expand and contract with volatility. High volatility → wide bands. Low volatility → narrow bands. Bollinger Bands therefore sit between a trend indicator (middle MA) and a volatility indicator (band width).

Reading:

1. Price touches the upper band ≠ “sell”. The most common mistake. Bollinger repeatedly emphasised[6] that a band touch is not a reversal signal. In a strong uptrend, price can “ride” the upper band for weeks because bands adapt, but not as quickly as the trend. A touch informs you about extension—what you do with it depends on context.

2. Bollinger Squeeze. Narrow bands mean small price deviations from the mean within the selected window. For a repeatable name, define in advance, for example, Bandwidth no higher than every one of the preceding 100 closed values. This is an illustrative minimum definition, rather than an optimal filter. It gives neither direction, timing nor size of a future move.

Advanced: implied versus historical volatility

Bands measure deviation of price levels around the mean. Do not compare it without conversion with standard deviation of percentage returns or annualised options implied volatility. All three may be called “volatility”, but use different data, units and horizons. A narrow band before a scheduled release does not demonstrate low future-move risk.

3. %B and Bandwidth. %B=(C−lower)/(upper−lower): zero means the lower band, one the upper; price outside the bands gives a result outside 0–1. Bandwidth=(upper−lower)/middle is a ratio; Bandwidth%=100·Bandwidth is a percentage. For lower=1.0900, upper=1.1100, middle=1.1000 and C=1.1050, we get %B=0.75 and Bandwidth=0.0181818, or 1.81818%. Zero width or a zero denominator must be handled as a case without an ordinary reading.

In everyday use, Bollinger Bands are most useful as a context map: is price in the upper, lower or middle part of its normal range? Is volatility rising, falling or compressed?

A jump model and the band. As an illustration only, assume 19 EUR/USD closes at 1.1000 and a twentieth at 1.0900. SMA(20)=1.0995; the standard deviation with a divisor of 20 is 0.002179449…, and the lower band SMA−2σ = 1.095141101…. Price at 1.0900 is below it. The band calculated after the twentieth close already includes the jump; the previous band did not. Neither reading proves that price will return to the mean. This is a hypothetical calculation, rather than a reconstruction of a yen intervention.
Bands calculated from the full window
Hypothetical EUR/USD Close model, USD per EUR; 35 complete observations, indexed from 0 without a calendar. The first 19 closes are 1.1000. At index 19, SMA20=1.0995 and the lower band is 1.0951411011, using 20/2 and divisor 20. Bands include that close; touching them is not an order.
How do I set a stop loss using ATR?

ATR converts preceding TR into a smoothed distance in price units. For 80 pips and multiplier 1.5, the distance is 120 pips. Subtracting it from EUR/USD 1.0850 gives 1.0730. This merely calculates a level relative to a specified anchor, rather than guaranteeing an exit price or maximum loss. The risk management section explains order conditions.

6. Oscillators vs trend indicators—when to use which

A rule suited to a different price path can produce misleading readings. The distinctions below help choose what to check; they do not rank the causes of traders' losses.

Reading in directional movement. If an explicit filter classifies the series as directional, high RSI or stochastic alone is no argument for reversal. These tools still describe their input data correctly. ADX thresholds prove neither moving-average effectiveness nor oscillator ineffectiveness; results depend on the reading's use rule.

Reading within a bounded range. Close near the lower edge can give low stochastic, but does not guarantee a bounce. If the window loses its earlier High, %K can change even without a new low. RSI below 30 likewise does not confirm that the range will continue.

Moving beyond the range. Indicators need not give “extreme” readings together. Breakout analysis requires a definition of the range known beforehand and a condition for a candle closing outside it. MA, RSI and Bandwidth add measurements of the same history. Combining them in screening should use explicit AND/OR, rather than choosing whichever condition fitted after the outcome.

In practice, ADX thresholds can determine regime: above 25, oscillators are read as pullback indicators within a trend; below 20, as range tools. These thresholds are conventions, rather than laws. What matters is having some explicit regime-recognition rule—otherwise the same reading means “pullback” once and “reversal” another time, with false signals produced by the absent rule rather than the indicator.

How should divergence be read on H1 vs D1?

H1 and D1 use different input prices, windows and close times. Two right-hand candles confirming a pivot imply different calendar-time delays. D1 divergence guarantees neither a larger move nor a resolution within a given number of days. Record chosen extremes, confirmation time and the condition for rejecting the interpretation.

7. Oscillator specifics in Forex

Many classic oscillators originated outside the modern FX market, mainly in commodity and equity markets. Forex requires consideration of sessions, liquidity and reactions to macro data.

We do not automatically assign Forex more consolidations or a “good oscillator environment” relative to equities. That comparison requires a shared regime definition and sample. The RSI formula works identically for the same close series regardless of market; quote sources, daily boundaries and execution may differ.

Sessions and volatility. Hourly TR distributions may differ between the London–New York overlap and Asian session. Calculate the difference's size and direction for the same feed, pair and period; we assign no fixed window multiplier. H1 ATR(14) means period 14 in the chosen smoothing method. SMA covers the last 14 available TR values; Wilder's variant retains diminishing influence from older observations. With missing candles, 14 observations need not correspond to 14 consecutive hours. For a window-to-window comparison, record the time zone and compare ranges from the same hours over many days, rather than assigning the entire ATR reading to the current session.

A spot FX pair has no company dividend, but can have quote interruptions and step changes. This does not make its divergences “cleaner”. After updating, an oscillator includes the new price; it does not reconstruct quotes or fills absent from the export.

Related pairs and correlated readings. With consistent quotes, EUR/GBP follows the ratio of EUR/USD to GBP/USD, but nonlinear RSI on the cross is not a simple ratio of their RSI values. Matching readings on several pairs do not automatically yield as many independent confirmations. Comparison must account for shared currencies and each pair's actual price series.

Server time changes inputs. D1 RSI(14) depends not only on the 14 seed changes, but also subsequent smoothing and starting history. Moving daily boundaries changes the Close, High and Low series. Not every UTC configuration creates a Sunday candle: it depends on the provider's calendar and aggregation. Compare exports with a known zone and DST rule; the label GMT+2 alone does not prove year-round alignment with 17:00 New York. The article on chart construction and timeframes explains the mechanics.

Section 4 covers the detailed daily distribution of liquidity, spreads and inactive windows—sessions, London–New York overlap, rollover and minutes before data. For oscillators, one conclusion follows: the same reading in a liquid overlap and an inactive rollover hour conveys different information, because the latter's price was built from sparse quotes.

Tick volume in MT5 describes the feed. Its official definition is the number of ticks received while a candle is being formed; it should not be equated with the number of changes in Bid alone, or with the number or value of transactions.[21] Spot FX has no single complete tape covering every transaction. Volume in a specific futures contract concerns that market and its reporting scope, rather than the entire spot market. Both measures can describe activity, but comparing their usefulness requires an explicit data scope.
Compare inputs before comparing indicators. Two brokers can provide different Close, High and Low values or use different daily boundaries. Check those records, the seed and smoothing method first. The size of an RSI difference must be measured on the chosen sample; D1 does not guarantee a smaller difference than H1.
An incorrect High/Low versus an incorrect Close. If an unusual tick changed only a candle’s Low but left its Close unchanged, RSI calculated from Close at the candle’s close will not change for that reason. Stochastic using High/Low and ATR can change. An incorrect close, by contrast, affects RSI and its subsequent recursive U/D values. Correcting the history may require recalculating the entire subsequent series, rather than deleting one point on the line. Determining what happens to a trade requires the specific agreement and execution record; it cannot be inferred from the indicator.
COT as background context for an oscillator. If D1 RSI reaches an extreme and COT data (CFTC) show extreme positioning, the oscillator reading warrants greater caution. COT supplies no entry timing and does not work as a linear RSI filter: its interpretation depends on the market, participant category (speculators versus commercials), horizon and whether futures are being used as a proxy for spot. It does help pose the appropriate question: does an extreme oscillator reading coincide with crowded positioning susceptible to rapid unwinding, or with a trend that can continue? On its own, it resolves neither possibility.
Economic releases and signal execution

Execution conditions may change around releases. We specify neither universal spread widening nor deterioration by a fixed pip amount. RSI on a closed candle is one measurement; Bid/Ask available for the amount when reacting is another. Verifying cost requires actual data, rather than the candlestick record after the event alone.

8. What the research says

Direct, comparable research on RSI, stochastic and divergence in FX is scarce, and existing results do not form a uniform picture. This makes discipline about what they actually imply more important.

RSI and stochastic in historical tests. Few academic studies directly test RSI or stochastic in modern FX. The frequently cited Lo, Mamaysky and Wang (2000) study concerned automated chart-pattern recognition in equity data from 1962–1996—not oscillators or currencies; its cautious conclusion (some patterns carry additional information about conditional return distributions) does not prove an after-cost edge in equities, much less FX[8]. Practically, another point matters most: even where a test identifies a regularity, spread, slippage and swap can turn it negative—every oscillator “effectiveness” assessment must therefore include costs.

Bollinger Bands. The author's published rules distinguish band description from a standalone signal.[6] We do not reconstruct a particular USD/CAD strategy sample here, so present no ranking of its results. A repeatable test must specify, among other things, average type, deviation variant, band availability time and response to a touch or a close outside it.

Divergences. Without extreme selection, maximum separation, equality tolerance and confirmation time, there is no single set of “all divergences”. A chart with several successful examples is not an effectiveness study. Assessment also needs cases after which price continued, and a frozen rule without repositioning pivots after the outcome.

Oscillators do not earn money by themselves—results depend on how they filter timing, regime and risk. Their value lies in providing context, rather than generating entry signals: how extended the market is, whether momentum confirms price and what volatility is. An oscillator alone is therefore not a strategy.

Menkhoff and Taylor's review documents technical-analysis use in FX and possible explanations for its utility.[11] Popularity does not settle a particular oscillator's result. A test requires explicit costs, a signal rule, an unused sample and data availability time; we do not assume universally lower FX costs than equity costs.

9. When an oscillator stops helping

  1. Reading “overbought” as a reversal deadline. RSI=80 describes the relationship between smoothed gains and losses. It can persist during further rises. A countertrend rule needs its own price condition and invalidation; an ADX threshold alone does not measure the extra risk of that rule.

  2. RSI and stochastic as two measurements. They measure different relationships but use overlapping data. An S/R zone, candlestick pattern and average can also derive from the same price, so changing category does not ensure independence. Another indicator makes sense when it adds specific information needed for the rule, rather than another green marker.

  3. Ignoring market regime. An oscillator in consolidation and in a trend provides entirely different information. Without first establishing “is the market trending?”, its signals have lower diagnostic value. Regime assessment precedes the reading; without it, misuse rather than the indicator generates false signals.

  4. Inferring orders from RSI alone. Price or oscillator appearance does not reveal the entire market's stop book. Concentration hypotheses should not be presented as observations. Many readers potentially seeing RSI below 30 does not prove how many positions exist or where they would close.

  5. Divergence = immediate entry. D1 RSI divergence is a warning that can persist for weeks. Entering as it appears, without price reaction or S/R confirmation, is a wager on timing rather than analysis.

  6. ATR as a directional signal. “ATR is rising, so I buy.” Rising ATR means a larger smoothed True Range value, without price-direction information. TR also includes distance from the previous Close, so High−Low need not expand. Under Wilder's variant, new TR can be below previous TR yet raise ATR if it exceeds previous ATR. The indicator can form part of an explicit rule or distance scale, but does not itself indicate trade direction.

  7. Lower-timeframe oscillators on crosses—costs consume results. M15/H1 oscillator trading on GBP/NZD, EUR/AUD or GBP/CAD can be unprofitable for purely arithmetic reasons. On majors in liquid hours, spread is a fraction of the target; on crosses at less favourable times, costs take a meaningful share of range. Illustrative calculation: with a 30-pip target, approximately 8 pips of spread, slippage and commission consume over a quarter of profit; the analogous cost also burdens each loss, so reward-to-risk measured on backtest mid prices is systematically overstated.

  8. The illusion of multi-timeframe “triple confirmation”. Oversold RSI on M15, H1, H4 and D1 means that smoothed losses dominate gains in each aggregation under the definition used. It specifies neither future continuation nor reversal frequency. Timeframes partly cover the same prices, so agreement does not automatically create independent confirmations. A low reading alone does not indicate the move's end.

  9. Quote interruption. RSI at Friday's close describes data up to then. After reopening, the next close incorporates the change, while TR also includes distance from previous Close. Neither a smooth indicator line nor joined chart points proves that all intermediate prices were available. The trading hours section covers holding risk across interruptions.

RSI14 equal to 70 on two different price paths
Two hypothetical sequences of 15 closes start at 1.1000 USD/EUR. Each contains 10 gains of 7 pips and 4 losses of 7.5 pips in a different order. The first RSI14 uses an SMA14 seed: average gain 70/14, average loss 30/14, RSI=70. Change order does not identify a future regime; classification requires a separate rule and horizon. Full values: regimes-model.csv.

Divergence unavailable on the peak candle

In the model CSV, choose local Close highs: the price must be strictly higher than two closes on the left and two on the right. Match RSI to those same indices. Choosing Close is an explicit example rule; High-peak analysis could give another set. This yields:

Two Close peaks and confirmation times—H1 model
PivotPrice, USD/EURRSIConfirmation after two closes
171.106973.31152026-10-01T19:00:00+00:00
261.107069.14682026-10-02T04:00:00+00:00

The second Close is higher and RSI lower, so regular bearish divergence exists under this rule. It becomes known only after index 28 closes, at 04:00 UTC on 2 October 2026. A line can be drawn between indices 17 and 26 on the chart, but a backtest cannot react at index 26 to two future candles. Reaction requires a later available quote; Close is not a guaranteed transaction price. This example demonstrates calculation and timestamping, rather than divergence effectiveness.

Also define what ends observation in advance: for example, the next confirmed higher Close peak updates the pair being compared. Do not erase the old event from the journal. A new RSI result does not change when the preceding event was available.

10. Practice—from reading to context

When does an oscillator make sense, and when is it better to switch it off?

Start with the reading's function: RSI describes change relationships, stochastic position within range, MACD relationships between averages, and ATR smoothed TR size. Then record timeframe, input price and candle state. Only then compare the number with an explicit rule. We impose neither one trading scenario nor mandatory indicator exclusion after every release.

In practice, understanding one oscillator's construction well is better than overlaying several tools calculated from similar data.

A minimalist set

  1. RSI(14)—one momentum oscillator. For extension, divergence and timing entry after a trend pullback. On D1 and H4.
  2. ATR(14)—volatility indicator. For stop-loss placement, assessing a move's “normality” and identifying volatility-regime changes. On any timeframe.
  3. Bollinger Bands (20, 2)—optional, as a visual context map. Squeeze as a compression reading. Price within the bands as additional information.

Add the question each selected tool should answer. Another average, ADX or MACD is not a compulsory list. If two lines summarise almost the same characteristic, check whether both are needed. The preceding article provides moving-average comparison methods.

Converting distance into position size and a loss budget requires separate execution-price assumptions. The risk management section covers this; ATR alone does not complete the calculation.

Illustrative scenarios

Scenario 1 — an oscillator in a trend (illustrative values)

Read only what the numbers establish. Assume a closed D1, rising EMA(21), Close above EMA(200), ADX=30 and RSI=42. EMA(21) has risen and price is above the longer average. ADX describes smoothed DI separation. RSI gives U/D=42/58, so smoothed losses exceed gains. Notice what is missing: we have not said whether Close is above EMA(21). Add that reading if your rule requires it. These conditions can coexist during a pullback; none says the pullback has ended.

Scenario 2 — an oscillator in consolidation (illustrative values)

Range scenario. Assume confirmed boundaries of 1.0900–1.1000 and Close=1.0905. Price is 5 pips above the lower boundary; raw %K for precisely that window is 5. RSI cannot be calculated from the range endpoints alone: it requires successive changes. A low %K does not guarantee that the boundaries will hold. If a breakout is defined as a D1 close below 1.0900, the event becomes known only when that candle ends, rather than when it first touches the level.

Reading interpretation checklist

Before drawing a conclusion from any oscillator, ask seven questions, all of which follow directly from this article:

  • Which formula calculates this indicator, and in what units does it express the result?
  • Which price does it use: the close from which feed, and which server time?
  • Has the candle you are reading closed, or could the reading still change?
  • Which parameters and smoothing method has the platform applied (default ≠ universal)?
  • If you are looking for divergence, how is a swing defined, and has the second swing been confirmed?
  • Is the “second confirmation” independent of the first, or is it a transformation of the same price?
  • What does this indicator fail to measure (the list next to the table in section 11)?

These checks establish what the number means and when it became available. Then apply the regime and price conditions you chose beforehand. Execution prices and costs are a further check, rather than information contained in the oscillator.

11. Overview of the tools — comparison table

A comparison of commonly used oscillators and volatility indicators: their strengths, limitations and typical applications.

Construction and interpretation compared
IndicatorWhat it measuresRangeTimeframe (conventions)In a trendIn consolidationTypical mistake
ROC / MomentumRate of price changeFor positive prices: ROC > −100%, MT Momentum > 0; neither has a fixed upper bound. Difference-based Momentum has no fixed boundsAny (convention)Describes the change over a specified window; its sign does not identify a patternOscillates around zero (MT: around 100) without a clear directionComparing values between platforms without checking the formula
RSIMomentum strength0–100Any; 14 periods cover different lengths of time on H1 and D1A high reading can persist; no standalone reversal signal30/70 zones as reference pointsSelling when >70 without checking the trend
StochasticPrice position within a range0–100Any; an explicit period and smoothing methodA high reading does not rule out further gainsResponds to rebounds from range boundariesUsing it alongside RSI as “confirmation”
MACDMomentum as the difference between moving averagesUnbounded (price units)H4/D1Describes trend phases; lagging crossoversMany crossovers without follow-throughComparing values between pairs; confusing implementations (section 4)
CCIDeviation from the meanFor n=20 and SMA/MD: |CCI| ≤ 666.6667 (MD>0)H4/D1Distance from the mean in MD units; a threshold does not prove a reversalPosition relative to the local meanNo calibration: +100 is not an extreme on every pair; the bound depends on n and the definition of MD
ATRVolatility0–∞Any; account for the trading session intradayResponds to expanding ranges, without indicating directionLow value = compressionTreating it as a directional signal
Bollinger BandsVolatility + price positionDynamicH4/D1Price “rides” the bandSqueeze → a reading of compressionBuying or selling when price touches a band

All these tools except Bollinger Bands appear below the price chart in a separate panel. This assessment concerns default parameters on major currency pairs; the suggested timeframes are practitioners’ conventions, rather than measured rankings. A reading’s usefulness depends on the relationship between the move and costs, rather than the name of the timeframe.

Finally, it is worth listing what none of these tools measures: market transaction volume, participant positioning, execution costs, event risk (data releases, interventions, weekends) or future volatility. All are transformations of past prices, which is the appropriate frame of reference: an oscillator summarises what price has already done so that you do not have to read it from the raw chart. A decision is built from context, rather than an indicator threshold.

FAQ — Oscillators and momentum indicators

RSI is above 70 — should I sell?

Not automatically. RSI > 70 means that strong gains predominated within the indicator’s window; in a trend, this is a typical state rather than a prediction of a reversal. Compare the reading with the market regime (ADX), price structure (a resistance zone or pattern) and any divergence. Without that context, RSI > 70 remains a single piece of information about the indicator’s state.

RSI or stochastic — which should I use?

RSI and stochastic measure different relationships. You can use both if each answers a separate question; their agreement should not count as two independent pieces of evidence. RSI calculated from Close does not react to a new wick alone if Close remains unchanged, whereas stochastic using High/Low can react.

How does Momentum differ from ROC, and why does MetaTrader show different values?

In its classic form, Momentum is the price difference Ct − Ct−n, expressed in price units; ROC expresses the same change as a percentage of the starting value. MetaTrader’s built-in Momentum instead calculates the ratio Ct / Ct−n × 100 and oscillates around 100. This is why textbook and platform values differ, even though the shape of the series is similar. For the formulas and calculation, see section 1.

What does a Bollinger Squeeze mean?

A squeeze means that the bands are compressed under a specified comparison of their width with historical widths. One example definition is a current Bandwidth no greater than each of the preceding 100 closed values. Compression alone indicates neither the direction nor the timing of a future breakout. The comparison length and Bandwidth variant must be recorded.

How should I trade RSI divergence?

Regular divergence compares two appropriately matched price and oscillator extremes. It does not prove a reversal. A rule confirming a pivot with two candles to its right makes the reading available only after the second of those candles closes. A response cannot be assigned retrospectively to the candle containing the extreme. Hidden divergence is a different configuration of relationships, rather than a name for a failed regular divergence.

Is it worth changing the RSI period to 7 or 21?

Changing 14 to 7 or 21 changes the smoothing multiplier and the number of changes required for the seed. A shorter period gives greater weight to the most recent change, but the number of crossings of a particular threshold depends on the series. Compare the same feed, applied price and starting history. We do not specify a best period or a proportion of successful signals.

Sources

Main sources

  1. TradingView: Relative Strength Index. Scope: RSI using RMA of gains and losses; default Close and 14; distinguishing regular divergence from Cardwell reversals. Accessed: 3 October 2026.
  2. MetaQuotes: Stochastic Oscillator. Scope: raw %K, slowing parameters and the %D method. Accessed: 3 October 2026.
  3. MetaQuotes: Commodity Channel Index. Scope: TP, the mean, mean absolute deviation and the constant 0.015. Accessed: 3 October 2026.
  4. John Bollinger: Bollinger Band Rules. Scope: 20 and 2 as defaults; a touch is not a standalone signal; no assumption that prices are normally distributed. Accessed: 3 October 2026.

Further reading

  1. MetaQuotes: published atr.mq5 code. Scope: TR=max(H,Cprev)−min(L,Cprev); the rolling simple average of TR in this code. Accessed: 3 October 2026.
  2. Lo, Mamaysky, Wang (2000), the authors’ original paper. Scope: automated identification of selected patterns in US equities, 1962–1996; conditional information does not prove that an FX indicator is profitable. Accessed: 3 October 2026.
  3. MetaQuotes: Moving Average. Scope: SMA, EMA, SMMA and linear WMA; the applied price. Accessed: 3 October 2026.
  4. Menkhoff, Taylor (2007), American Economic Association. Scope: a review of the use of technical analysis in FX; it does not prove an edge for a particular configuration. Accessed: 3 October 2026.
  5. MetaQuotes: MACD. Scope: MACD = EMA12−EMA26; SMA9 signal in MT5. Accessed: 3 October 2026.
  6. BIS: The sterling flash event of 7 October 2016. Scope: the historical GBP move and liquidity conditions; no calculation of MA/MACD values from an unavailable series. Accessed: 3 October 2026.
  7. SNB: announcement of 15 January 2015. Scope: discontinuation of the minimum exchange rate of 1.20 CHF per EUR; no invented indicator readings. Accessed: 3 October 2026.
  8. MetaQuotes: published stochastic.mq5 code. Slowing as the ratio of summed numerators to summed ranges; sumhigh=0 handled with the value 100. Accessed: 3 October 2026.
  9. MetaQuotes: published rsi.mq5 code. Seed from n changes, Wilder updates; the code downloaded on 3 October 2026 does not define a separate 0/0 branch. Accessed: 3 October 2026.
  10. TradingView: MACD Strategy. Description of the MACD variant with an EMA signal line. Accessed: 3 October 2026.
  11. MetaQuotes: Momentum. MT Momentum = 100*C/Cprev, central line 100. Accessed: 3 October 2026.
  12. MetaQuotes: Price Data. Scope: tick volume is the number of ticks received while forming a candle; distinct from real volume. Accessed: 3 October 2026.

Your learning progress

Finished this lesson? Mark it yourself. Opening or scrolling a page never marks it complete.

Progress requires JavaScript and browser storage.

Saved only in this browser. No account or cross-device sync. Clearing site data can erase your progress.

Jarosław Wasiński

Editor-in-chief, ForexMechanics.com • Macro & FX analyst

Independent analyst and practitioner with over 20 years of experience in financial markets. Actively involved in Forex since 2007, with a focus on fundamental analysis, OTC market structure, and disciplined capital risk management.

  • Creator and editor-in-chief of MyBank.pl, providing reliable financial education since 2004.
  • Author of hundreds of in-depth market commentaries, structural analyses, and educational materials for traders and investors.
  • Advocate for market transparency, promoting education grounded in hard data and institutional reports (BIS, ESMA, CFTC).

Full author profile, credentials & published research →

All content is educational and informational only – it does not constitute investment advice or a recommendation. Remember: leveraged trading (Forex/CFD) carries a high risk of rapid capital loss.