StratCraft

Stochastic Oscillator + Bollinger Bands Strategy

Volatility & Momentum Dual System

The Stochastic Oscillator + Bollinger Bands strategy pairs a momentum oscillator with a statistical volatility envelope to identify mean-reversion and breakout opportunities. Stochastic measures where the closing price sits within its recent high-low range, while Bollinger Bands define statistically significant price extremes — together they confirm when price is both momentum-exhausted and statistically overextended. — EODHD Financial Academy

本策略作為教育示例提供,其靈感來自常見的公共技術分析概念和參考材料。僅用於研究和產品演示,不構成投資建議。

⚠️ Strategy Suitability
RISK: MEDIUM
Best For
  • Range-bound markets where price consistently oscillates between the upper and lower Bollinger Bands.
  • Mean reversion setups where price pierces a band extreme and the Stochastic Oscillator confirms exhaustion.
  • Overbought/Oversold zones (Stochastic > 80 or < 20) that align with Bollinger Band reversals.
  • High-probability reversal points where price rejects an outer band with a Stochastic crossover.
Avoid In
  • Strong "walking the bands" trends where price pushes along the outer band without reverting.
  • High-momentum breakout phases following a volatility squeeze (tight bands).
  • Trending markets where Stochastic remains pegged at extreme levels while price continues its move.
  • Fast-moving news events that drive price far beyond the bands without regard for oscillator readings.
🕒 Timeframes
5m15m1hDaily
🌍 Markets
Range-bound StocksForex Cross-PairsStable Cryptocurrencies
📢 This strategy focuses on mean reversion at Bollinger Band extremes. To avoid "walking the bands" failures, ensure the Stochastic provides a confirmed overbought/oversold reversal before entry.
Q: When should I enter a Stochastic-Bollinger trade?
Look for price to touch or pierce an outer Bollinger Band while the Stochastic Oscillator is in an overbought or oversold zone, then wait for a Stochastic crossover to confirm the reversal.
Q: What does "walking the bands" mean?
This occurs during strong trends when price stays glued to an outer band. You should avoid mean-reversion trades in this scenario as the Stochastic will often give false reversal signals.
Q: Is this strategy better for trending or ranging markets?
This is primarily a mean-reversion strategy, making it most effective in ranging or sideways markets where price predictably returns to the middle band.

How This Strategy Works

5-stage decision flow from market reading to trade management

1
Market Context
Volatility & Momentum Setup
Apply Bollinger Bands (20,2) to identify volatility regime
Apply Stochastic (14,3,3) to measure price momentum
Measure Band Width: is market in Squeeze or expansion?
Identify if %K is trending, ranging, or at extreme levels
BBMACD
2
Signal Detection
Trigger Conditions
Stochastic %K drops below 20 (oversold extreme)
Price approaches or touches Lower Bollinger Band
Bollinger Squeeze detected — Band Width at multi-month low
Stochastic divergence forming at price extremes
TouchApproaching cross
3
Dual Confirmation
Both Indicators Agree
Stoch: %K turning up from below 20 with %K/%D bullish crossover
BB: Price at or below Lower Band, or Squeeze just released
Both signals occur within 1-3 candles of each other
Reject if %K still falling and price below Lower Band
BB SignalMACD Cross✓ GO
4
Entry / Exit
Trade Execution Rules
BUY: Enter long when %K crosses back above 20 at Lower Band
SELL: %K crosses below 80 + price touches or pulls from Upper Band
Breakout BUY: Squeeze break upward + %K/%D bullish crossover above 50
Partial exit: %K drops below 50 + price breaks Middle Band
BUYPartialSELLProfit Zone
5
Risk Management
Capital Protection
Stop Loss: 1 ATR below Lower Bollinger Band at entry
Take Profit: Middle Band (mean reversion) or Upper Band (trend)
Position Size: Inversely scale with Band Width (wider = smaller)
Trailing Stop: Follow Middle Band once first target reached
EntrySLTPTrailing Stop2%R:R
Strategy Components Reference

Stochastic + Bollinger Bands

Volatility & Momentum Dual System

Stoch
+ BB
Strategy
StratCraft
📊Stochastic Oscillator
%K LineRaw momentum reading
%D Signal LineSmoothed trigger
Overbought (>80)Potential reversal zone
Oversold (<20)Potential recovery zone
%K/%D CrossoverPrimary trigger signal
Slow StochasticNoise-filtered oscillator
📉Bollinger Bands
Middle BandTrend mean reference
Upper BandStatistical resistance
Lower BandStatistical support
Band WidthVolatility measurement
%B IndicatorBand position gauge
Bollinger SqueezePre-breakout compression
🟢Entry Signals
Stoch Oversold + Lower BandPrimary BUY
Squeeze Break + Stoch CrossBreakout BUY
Bullish Divergence + Lower BandReversal BUY
Stoch >50 + Above Middle BandTrend continuation BUY
Double Bottom at Lower BandDouble-bottom BUY
🔴Exit Signals
Stoch Overbought + Upper BandPrimary SELL
Band Walk ExhaustionTrend exhaustion SELL
Bearish %K/%D in OB ZoneMomentum reversal SELL
%K <50 + Below Middle BandMomentum loss SELL
Bearish Divergence at Upper BandReversal warning
🛡️Risk Management
Stop Loss1 ATR below Lower Band
Position SizeVolatility-adjusted sizing
Max Risk2% per trade
Take ProfitMiddle Band / Upper Band
Trailing StopFollow Middle Band
Stochastic Exit RuleClose at %K >85 cross

Related Video Resources

Learn more about the Stochastic + Bollinger Bands strategy.

Stochastic Oscillator + Bollinger Bands | Perfect Combo for Precise Entries!

Learn how to combine the Stochastic Oscillator with Bollinger Bands to create a highly accurate trading strategy for precise entry and exit points.

Strategy 1: Bollinger Bands + Stochastic Oscillator

This strategy combines Bollinger Bands with the Stochastic %K oscillator to capture short-term mean reversion in volatile equity markets.

Build an MT5 Trading Bot - Best 5-Minute Strategy: Stochastic + Bollinger Bands

Step-by-step guide to building an automated trading bot using the Stochastic + Bollinger Bands strategy on a 5-minute timeframe.

Stochastic + Bollinger Bands
The Stochastic Oscillator + Bollinger Bands strategy pairs a momentum oscillator with a statistical volatility envelope to identify mean-reversion and breakout opportunities. Stochastic measures where the closing price sits within its recent high-low range, while Bollinger Bands define statistically significant price extremes — together they confirm when price is both momentum-exhausted and statistically overextended.
Stochastic + Bollinger Bands Market Suitability
The Stochastic + Bollinger Bands strategy works best in Range-bound markets where price consistently oscillates between the upper and lower Bollinger Bands.. Mean reversion setups where price pierces a band extreme and the Stochastic Oscillator confirms exhaustion.. Overbought/Oversold zones (Stochastic > 80 or < 20) that align with Bollinger Band reversals.. High-probability reversal points where price rejects an outer band with a Stochastic crossover.. Traders should avoid using this strategy in Strong "walking the bands" trends where price pushes along the outer band without reverting.. High-momentum breakout phases following a volatility squeeze (tight bands).. Trending markets where Stochastic remains pegged at extreme levels while price continues its move.. Fast-moving news events that drive price far beyond the bands without regard for oscillator readings.. The risk level is categorized as MEDIUM. This strategy focuses on mean reversion at Bollinger Band extremes. To avoid "walking the bands" failures, ensure the Stochastic provides a confirmed overbought/oversold reversal before entry.
When should I enter a Stochastic-Bollinger trade?
Look for price to touch or pierce an outer Bollinger Band while the Stochastic Oscillator is in an overbought or oversold zone, then wait for a Stochastic crossover to confirm the reversal.
What does "walking the bands" mean?
This occurs during strong trends when price stays glued to an outer band. You should avoid mean-reversion trades in this scenario as the Stochastic will often give false reversal signals.
Is this strategy better for trending or ranging markets?
This is primarily a mean-reversion strategy, making it most effective in ranging or sideways markets where price predictably returns to the middle band.
%K Line
The %K line is the raw momentum reading of the Stochastic Oscillator, measuring where the current closing price sits within the recent 14-period high-low range on a 0-to-100 scale. Values near 100 indicate the close is near the top of its recent range (bullish momentum), while values near 0 suggest the close is near the bottom (bearish momentum). Developed by George Lane in the 1950s, it is the primary signal line before smoothing is applied. Formula: (Close−Low₁₄)/(High₁₄−Low₁₄)×100
%D Signal Line
The %D line is a 3-period simple moving average of %K that creates a smoother signal line used to generate trading crossover signals. When %K crosses above %D, it signals rising short-term momentum; when %K crosses below %D, it signals falling momentum. The %D line reduces noise and false signals compared to relying on raw %K readings alone. Formula: SMA₃(%K)
Overbought (>80)
When the Stochastic Oscillator rises above 80, the asset is considered overbought, indicating the close has been consistently near the top of its recent high-low range. Traders watch for %K to turn downward from above 80, especially combined with a bearish %K/%D crossover, as a potential sell signal. In strong trends, the oscillator can remain overbought for extended periods, making context and confirmation essential. Formula: %K > 80
Oversold (<20)
When the Stochastic Oscillator falls below 20, the asset is considered oversold, meaning the closing price has been consistently near the bottom of its recent high-low range. A bullish crossover of %K above %D while both lines are below 20 is the classic buy trigger for this strategy. As with overbought conditions, oversold readings can persist in strong downtrends, requiring Bollinger Band confirmation before entering. Formula: %K < 20
%K/%D Crossover
A %K/%D crossover is the primary trigger signal of the Stochastic Oscillator — a bullish crossover occurs when %K rises above %D, signaling increasing momentum, while a bearish crossover occurs when %K falls below %D. Crossovers within the overbought (>80) or oversold (<20) zones are significantly more reliable than crossovers in the neutral middle range (40-60). This strategy uses crossovers as entry and exit timing signals, confirmed by price position relative to the Bollinger Bands. Formula: %K crosses %D
Slow Stochastic
The Slow Stochastic applies an additional 3-period smoothing to %K before calculating %D, reducing noise and false signals relative to the Fast Stochastic. The standard (14,3,3) setting — 14-period lookback, 3-period %K smoothing, 3-period %D — is the most widely used configuration for swing trading because it filters out minor intraday price fluctuations. Combined with Bollinger Bands, the Slow Stochastic provides cleaner confirmation signals for mean-reversion setups. Formula: 14,3,3 Parameters
Middle Band
The Middle Band of the Bollinger Bands system is the 20-period simple moving average, representing the intermediate-term price mean and the basis for calculating the upper and lower bands. Price consistently above the Middle Band confirms an uptrend; consistently below confirms a downtrend. After touching the Upper or Lower Band, price tends to revert to the Middle Band, making it the primary take-profit target for mean-reversion entries. Formula: SMA(20)
Upper Band
The Upper Band is calculated by adding two standard deviations to the 20-period SMA, creating a dynamic resistance level that expands during high-volatility periods and contracts during quiet periods. Statistically, price should remain below the Upper Band approximately 95% of the time, so a touch or pierce is a meaningful extreme event. When Stochastic is overbought at the same time price touches the Upper Band, both indicators jointly confirm an overextended condition ripe for mean reversion. Formula: SMA(20) + 2σ
Lower Band
The Lower Band subtracts two standard deviations from the 20-period SMA, acting as a dynamic support level that adjusts automatically to current market volatility. Price touching the Lower Band while Stochastic registers oversold creates the strategy's primary buy setup — a statistical price extreme coinciding with exhausted selling momentum. A closing price below the Lower Band confirms a genuine breakdown rather than a normal oscillation. Formula: SMA(20) − 2σ
Band Width
Band Width measures how far apart the Upper and Lower Bands are relative to the Middle Band, providing a normalized measure of market volatility. Low Band Width — known as the Squeeze — indicates compressed volatility and consolidation that often precedes significant directional moves. Expanding Band Width after a Squeeze signals that the market is entering a trending phase, and Stochastic direction at that moment identifies whether the breakout is bullish or bearish. Formula: (Upper−Lower)/Middle
%B Indicator
The %B indicator measures precisely where the current closing price sits within the Bollinger Bands on a 0-to-1 scale, where 1.0 equals the Upper Band and 0.0 equals the Lower Band. Values above 1.0 indicate the price has breached the Upper Band; values below 0.0 indicate a breach of the Lower Band. Cross-referencing %B with Stochastic %K gives a dual-percentage confirmation: when both approach extreme values simultaneously, the combined signal has significantly higher statistical reliability. Formula: (Close−Lower)/(Upper−Lower)
Bollinger Squeeze
A Bollinger Squeeze occurs when Band Width contracts to its lowest level in months, reflecting a prolonged period of low volatility and price consolidation as the market builds energy for a large move. Squeezes are not directional by themselves — they signal that an explosive move is imminent. Traders pair the Squeeze with Stochastic direction to identify whether the breakout will be upward (%K crossing up while bands begin expanding) or downward (%K crossing down at band expansion start). Formula: Band Width < 6-month Low
Stoch Oversold + Lower Band
The primary buy signal triggers when Stochastic %K falls below 20 (oversold) as price simultaneously touches or pierces the Lower Bollinger Band. This dual confirmation combines a momentum extreme with a statistical price extreme, creating a high-probability mean-reversion entry. The entry is placed when %K turns back above 20 to confirm that selling momentum has peaked rather than entering as the oscillator is still falling
Squeeze Break + Stoch Cross
When a Bollinger Squeeze ends with upside band expansion and Stochastic simultaneously generates a bullish %K/%D crossover above 50, a breakout trend entry is triggered. The Squeeze confirms that compressed volatility energy is releasing, while the Stochastic crossover confirms buyers are gaining momentum control. This setup tends to produce strong trending moves and should target 1.5-2 times the Band Width above the breakout level
Bullish Divergence + Lower Band
A bullish divergence entry occurs when price makes a new lower low that touches the Lower Bollinger Band, while Stochastic %K makes a higher low — indicating selling momentum is weakening despite lower prices. The Lower Band acts as structural support for the price extreme, and the Stochastic divergence warns that bears are losing control. Enter long when %K crosses above %D to confirm the momentum shift has begun
Stoch >50 + Above Middle Band
In a confirmed uptrend, when Stochastic pulls back to the 50 midline and then bounces upward while price remains above the Middle Bollinger Band, a trend continuation entry is signaled. The Middle Band acts as dynamic support, and Stochastic holding above 50 confirms that bullish momentum is intact despite the temporary pullback. This entry offers a lower-risk addition to an existing trend position compared to chasing overbought conditions
Double Bottom at Lower Band
A double-bottom setup forms when price tests the Lower Bollinger Band twice without breaking through, while Stochastic forms a higher low on the second test. The combination of structural price support at the Lower Band and improving Stochastic momentum signals that sellers are exhausted and buyers are starting to control the tape. Confirmation requires price to close back above the Middle Band within 3-5 candles of the second test
Stoch Overbought + Upper Band
The primary exit signal triggers when Stochastic %K rises above 80 (overbought) as price simultaneously touches or pierces the Upper Bollinger Band. This dual confirmation marks a statistical price extreme with exhausted buying momentum — an optimal exit point for long positions. Wait for %K to turn downward from above 80 or generate a bearish %K/%D crossover as confirmation before exiting the position
Band Walk Exhaustion
A Band Walk occurs when price tracks along the Upper Band for multiple consecutive periods in an unusually strong trend, with the Stochastic remaining overbought throughout. When the Band Walk ends — price closes back inside the Upper Band after multiple consecutive touches combined with Stochastic crossing below 80 — it signals that the trend momentum has exhausted. Band Walks end abruptly, making a timely exit essential once the first sign of separation from the Upper Band appears
Bearish %K/%D in OB Zone
A bearish crossover where %K crosses below %D while both lines are above 80 (within the overbought zone) is one of the most reliable Stochastic sell signals, particularly when it coincides with price near the Upper Bollinger Band. This combination confirms that short-term momentum has reversed while price is statistically overextended. Exit or reduce long exposure promptly on confirmation of this crossover — the convergence of two reversal signals raises the probability of a meaningful pullback
%K <50 + Below Middle Band
When Stochastic %K drops below 50 (indicating average losses now exceed average gains) and price simultaneously breaks below the Middle Bollinger Band, it signals that both momentum and trend structure are deteriorating. The Middle Band break removes the dynamic support that was anchoring the uptrend, while %K below 50 confirms the momentum deterioration. This combination triggers a partial exit or aggressive stop-loss tightening for remaining long positions
Bearish Divergence at Upper Band
Bearish divergence at the Upper Band occurs when price makes a new high touching or piercing the Upper Band, but Stochastic %K makes a lower high — indicating that buying momentum is weakening despite rising prices. This dual signal — Upper Band (price extreme) combined with declining Stochastic momentum — is an early warning to tighten stops or reduce position size before the price structure breaks. It warns that a mean-reversion move back to the Middle Band or lower is likely forming
Stop Loss
The stop loss is placed 1 ATR below the Lower Bollinger Band at the time of entry, ensuring the trade is exited if volatility expands sharply to the downside beyond the statistical boundary. A close below the Lower Band confirms that the expected mean-reversion did not materialize and the trade thesis is invalid. This placement balances the need to avoid being stopped out by normal band fluctuations while capping losses on genuine adverse moves
Position Size
Position size is inversely adjusted to Band Width — narrower bands (low volatility / Squeeze environment) allow larger positions because the statistical price range is smaller and dollar risk per unit is more contained, while wide bands require proportionally smaller positions to maintain constant dollar risk. This adaptive sizing ensures that each trade risks a consistent 1-2% of portfolio value regardless of the current volatility regime
Max Risk
The 2% rule caps the maximum capital at risk on any single trade to 2% of total portfolio value. This principle ensures that even a sustained losing streak during adverse market conditions — when mean-reversion signals fail in strong trending environments — will not cause catastrophic account drawdown
Take Profit
For mean-reversion entries (Oversold + Lower Band touch), the primary take-profit target is the Middle Bollinger Band, with a secondary target at the Upper Band if Stochastic momentum remains above 50. For breakout entries (Squeeze break), the target is 1.5-2 times the Band Width added to the breakout point, reflecting the momentum potential of a volatility compression release
Trailing Stop
For trades that reach the first profit target, the trailing stop is adjusted to follow the Middle Bollinger Band, locking in profits while allowing the position to capture further upside if price continues to the Upper Band. The Middle Band provides a statistically meaningful dynamic stop level that automatically adapts to changing volatility — when the Middle Band turns down and price approaches it from above, it is time to exit
Stochastic Exit Rule
An advanced exit rule closes positions when %K exceeds 85 and then generates a bearish %K/%D crossover, regardless of whether the Upper Bollinger Band has been reached. Extreme Stochastic readings above 85 statistically precede sharp mean-reversion moves, and taking profit at this signal captures the bulk of the gain while avoiding the rapid reversals that occur from deeply overbought territory