Hello Traders,
I would like to introduce Wave Breath, a non-repainting adaptive trend-flow tool for MetaTrader 5 and MT4 that tracks market direction with a fast and slow EMA pair on typical price (HLC/3), wraps the resulting basis line with volatility-scaled sensitivity bands, and latches a stateful trend that flips only when price closes through the opposite band. The output is a clean, color-coded picture of dominant flow — a bicolor basis line, an active level line, a translucent cloud fill, color-painted bars, a per-bar background gradient that deepens with each consecutive same-trend bar, and plain ASCII L and S labels at every confirmed reversal. The indicator is currently completely FREE — download it now at no cost.
HOW IT WORKS
Adaptive Trend-Flow Engine
The indicator builds its core view in five stages. First, it computes the typical price for every bar (high + low + close divided by three). Second, it runs two exponential moving averages on that series — one at the configured length and one at twice the length — then averages them into a single smooth basis line. Third, it computes the population standard deviation of the typical price over the same length and applies a second EMA with its own configurable smoothing length to remove tick-to-tick noise. Fourth, it builds upper and lower sensitivity bands by adding and subtracting the smoothed volatility multiplied by the user sensitivity to and from the basis.
Fifth, the trend state machine watches the close. While in an uptrend, the active level latches to the lower band and the trend flips to bear only when the close crosses below that lower band. While in a downtrend, the active level latches to the upper band and the trend flips to bull only when the close crosses above that upper band. Closes inside the cloud do not flip the trend — only a confirmed close through the opposite band triggers a state change.
Bicolor Cloud and Lines
The basis line and the active level line both inherit the trend color — bull green during uptrends, bear red during downtrends. The space between them is filled with a translucent cloud in the same color using DRAW_FILLING, giving an immediate visual sense of current flow direction and how far price has compressed inside the band. When the trend flips, basis and level switch sides instantly and the new color appears on the next confirmed bar.
Paint Bars and Background Gradient
Every closed bar gets a colored overlay matching the current trend using paired histogram buffers. The background gradient is drawn per bar as a translucent rectangle anchored from chart top to chart bottom. Intensity ramps from 5% opacity to 20% opacity over the first 20 bars of a streak and then holds at maximum, resetting to zero on every flip. This produces a calm, low-intensity look on choppy or transitioning markets and a deep, saturated look on sustained directional moves — giving an immediate visual read on trend maturity without referring to any counter or table.
Non-Repainting Architecture
Every closed bar's trend, level, basis, upper band, lower band, and color values are committed exactly once and never recomputed. The forming live bar mirrors the prior closed bar's display values to keep the line visually continuous, but no signal can fire on the live bar. Signals only fire when a new bar appears and the just-closed bar's trend differs from the bar before it. Switching timeframes, recompiling, or scrolling through history does not change any historical output.
KEY FEATURES
Non-repainting — signals fire only after bar close, historical output never changes
Adaptive basis line — fast + slow EMA pair on HLC/3 typical price, averaged into single smooth line
Smoothed volatility bands — population standard deviation with configurable EMA smoothing length
Stateful trend latch — long while close stays above lower band, short while close stays below upper band
Mid-cloud closes do not flip trend — only confirmed close through opposite band triggers state change
Bicolor basis line — bull green in uptrends, bear red in downtrends, switches on confirmed flip
Active level line — hugs the live band, switches sides instantly on every trend flip
Translucent cloud fill — DRAW_FILLING between basis and level in bull and bear colors
Color-painted candle bars — paired histogram overlay matching active trend color
Per-bar background gradient — ramps from 5% to 20% opacity over first 20 consecutive trend bars
Gradient resets on every flip — calm look on choppy markets, deep saturation on sustained moves
Plain ASCII "L" and "S" labels — mark every confirmed reversal, permanent once drawn
History scan on first attach — all historical signal labels rendered immediately on load
Full alert package — popup, push notification, email, sound — all independently toggleable
Works on all symbols — Forex, indices, commodities, crypto, stocks
Works on every timeframe and every broker
HOW TO TRADE IT
Use the cloud color as your primary directional bias — green cloud for long bias, red cloud for short bias. Use the background gradient depth as your trend maturity gauge — a fully saturated background means the trend has been running for at least 20 consecutive bars and is structurally established. Enter on fresh "L" or "S" label flips at the very start of a new gradient cycle, when the background is still at low intensity and the trend has just confirmed. Hold while the cloud stays the same color and the gradient continues building. Exit or prepare to reverse when an opposing label fires and the gradient resets.
The most powerful setups occur when a label fires after a prolonged opposite-trend run — the gradient resets to zero, the cloud flips color, and the new trend has fresh momentum behind it with no overhead resistance from consecutive bars in the new direction yet.
RECOMMENDED CONFIGURATIONS
Conservative — Daily / Weekly position trading
Increase the EMA length to 34, volatility smoothing to 10, sensitivity to 1.8. Fewer flips, only the most structurally significant trend changes qualify. Background gradient reaches full saturation after 20 bars of confirmed directional flow.
Default — H1 to H4 swing trading
Standard EMA length, volatility smoothing, and sensitivity settings. Balanced trend detection across all major Forex pairs and indices. Works out of the box across all liquid instruments with no tuning required.
Aggressive — M5 to M15 scalping
Reduce sensitivity to tighten the bands and lower the EMA length for faster response. More frequent flips on liquid pairs during London and New York sessions. Combine with a volume filter to avoid low-participation signals during off-hours.
COMPATIBILITY NOTES
I would like to introduce Wave Breath, a non-repainting adaptive trend-flow tool for MetaTrader 5 and MT4 that tracks market direction with a fast and slow EMA pair on typical price (HLC/3), wraps the resulting basis line with volatility-scaled sensitivity bands, and latches a stateful trend that flips only when price closes through the opposite band. The output is a clean, color-coded picture of dominant flow — a bicolor basis line, an active level line, a translucent cloud fill, color-painted bars, a per-bar background gradient that deepens with each consecutive same-trend bar, and plain ASCII L and S labels at every confirmed reversal. The indicator is currently completely FREE — download it now at no cost.
HOW IT WORKS
Adaptive Trend-Flow Engine
The indicator builds its core view in five stages. First, it computes the typical price for every bar (high + low + close divided by three). Second, it runs two exponential moving averages on that series — one at the configured length and one at twice the length — then averages them into a single smooth basis line. Third, it computes the population standard deviation of the typical price over the same length and applies a second EMA with its own configurable smoothing length to remove tick-to-tick noise. Fourth, it builds upper and lower sensitivity bands by adding and subtracting the smoothed volatility multiplied by the user sensitivity to and from the basis.
Fifth, the trend state machine watches the close. While in an uptrend, the active level latches to the lower band and the trend flips to bear only when the close crosses below that lower band. While in a downtrend, the active level latches to the upper band and the trend flips to bull only when the close crosses above that upper band. Closes inside the cloud do not flip the trend — only a confirmed close through the opposite band triggers a state change.
Bicolor Cloud and Lines
The basis line and the active level line both inherit the trend color — bull green during uptrends, bear red during downtrends. The space between them is filled with a translucent cloud in the same color using DRAW_FILLING, giving an immediate visual sense of current flow direction and how far price has compressed inside the band. When the trend flips, basis and level switch sides instantly and the new color appears on the next confirmed bar.
Paint Bars and Background Gradient
Every closed bar gets a colored overlay matching the current trend using paired histogram buffers. The background gradient is drawn per bar as a translucent rectangle anchored from chart top to chart bottom. Intensity ramps from 5% opacity to 20% opacity over the first 20 bars of a streak and then holds at maximum, resetting to zero on every flip. This produces a calm, low-intensity look on choppy or transitioning markets and a deep, saturated look on sustained directional moves — giving an immediate visual read on trend maturity without referring to any counter or table.
Non-Repainting Architecture
Every closed bar's trend, level, basis, upper band, lower band, and color values are committed exactly once and never recomputed. The forming live bar mirrors the prior closed bar's display values to keep the line visually continuous, but no signal can fire on the live bar. Signals only fire when a new bar appears and the just-closed bar's trend differs from the bar before it. Switching timeframes, recompiling, or scrolling through history does not change any historical output.
KEY FEATURES
HOW TO TRADE IT
Use the cloud color as your primary directional bias — green cloud for long bias, red cloud for short bias. Use the background gradient depth as your trend maturity gauge — a fully saturated background means the trend has been running for at least 20 consecutive bars and is structurally established. Enter on fresh "L" or "S" label flips at the very start of a new gradient cycle, when the background is still at low intensity and the trend has just confirmed. Hold while the cloud stays the same color and the gradient continues building. Exit or prepare to reverse when an opposing label fires and the gradient resets.
The most powerful setups occur when a label fires after a prolonged opposite-trend run — the gradient resets to zero, the cloud flips color, and the new trend has fresh momentum behind it with no overhead resistance from consecutive bars in the new direction yet.
RECOMMENDED CONFIGURATIONS
Conservative — Daily / Weekly position trading
Increase the EMA length to 34, volatility smoothing to 10, sensitivity to 1.8. Fewer flips, only the most structurally significant trend changes qualify. Background gradient reaches full saturation after 20 bars of confirmed directional flow.
Default — H1 to H4 swing trading
Standard EMA length, volatility smoothing, and sensitivity settings. Balanced trend detection across all major Forex pairs and indices. Works out of the box across all liquid instruments with no tuning required.
Aggressive — M5 to M15 scalping
Reduce sensitivity to tighten the bands and lower the EMA length for faster response. More frequent flips on liquid pairs during London and New York sessions. Combine with a volume filter to avoid low-participation signals during off-hours.
COMPATIBILITY NOTES
- Live bar mirrors prior closed bar display values — line is visually continuous but no live-bar signal is possible
- Background gradient uses per-bar rectangle objects — performance impact is negligible on modern hardware
- History scan on first attach retroactively places all "L" and "S" labels — no manual scrollback required
- All alert channels are independently toggleable — run push notifications only, for example, without popup interruptions
PRODUCT LINKS
️
️
️
️
️ Wave Breath MT5
️
️
️
️
️ Wave Breath MT4
MQL5 Channel
![]()
![]()
![]()
![]()
All Products
The indicator is currently FREE — no cost, no trial period, just download and attach to any chart. I welcome questions about sensitivity tuning, volatility smoothing configuration, alert setup, or combining Wave Breath with other tools in a multi-indicator workflow. Happy to assist via private message.
Please trade responsibly and always combine signals with your own analysis and risk management.
Trade what you see not what you think!