Deep Pattern Curve Indicator – Full Person Guide (MT4 & MT5)
Introduction
TheĀ Deep Pattern Curve IndicatorĀ is a non-repainting Quantity Weighted Shifting Common (VWMA) development indicator with ATR adaptive bands for MetaTrader 4 and MetaTrader 5. It attracts a bicolor development baseline that switches between aqua (bullish) and crimson (bearish) primarily based on a deterministic state machine, surrounded by higher and decrease volatility bands that scale routinely with the Common True Vary.
Key Options:
- Quantity Weighted Shifting Common (VWMA):Ā Pattern baseline weighted by tick quantity, prioritizing bars with robust participation
- ATR Adaptive Bands:Ā Higher and decrease volatility envelopes that scale with present market vary
- Bicolor Pattern State:Ā Aqua bullish / crimson bearish colour switching on confirmed bar shut
- Non-Repainting Structure:Ā Closed-bar processing with live-bar mirror — alerts by no means change retroactively
- Pattern Affirmation Alerts:Ā Bullish and bearish development flip alerts through popup, sound, push, and e-mail
- Cross-Platform:Ā Equivalent visible output on MetaTrader 4 and MetaTrader 5
Obtain the indicator:Ā
TIP:Ā This indicator is designed for merchants who desire a clear, single-glance development reference that doesn’t flicker or repaint. It really works on any image and any timeframe accessible in MetaTrader.
Understanding VWMA + ATR Bands
Deep Pattern Curve Indicator combines two well-known ideas — the Quantity Weighted Shifting Common and the Common True Vary — right into a single development system.
How the calculation works:
- For every bar, the indicator sums (shut * tick_volume) over the lookback interval ( InpVwmaLength )
- It divides that sum by the full tick quantity to provide the VWMA
- It computes the typical True Vary over the identical interval
- It locations the higher band atĀ VWMA + ATR * InpAtrMult Ā and the decrease band atĀ VWMA – ATR * InpAtrMult
- The development state machine evaluates the shut towards the bands:
- Shut > higher band -> development turns into bullish (aqua)
- Shut < decrease band -> development turns into bearish (crimson)
- In any other case -> development stays unchanged from the earlier bar
- The bar is coloured in response to the ensuing state
Why quantity weighting issues:Ā Bars with robust participation (excessive tick rely) carry extra weight within the VWMA. A breakout candle with excessive quantity pulls the development line extra aggressively than a quiet drift candle of the identical magnitude.
Why ATR bands matter:Ā The bands routinely widen throughout risky periods and tighten throughout quiet periods, so the development transition threshold scales with market situations as an alternative of being a set pip distance.
NOTE:Ā The indicator makes use of tick quantity, which is the rely of worth quote updates per bar. On foreign exchange markets the place official transaction quantity will not be reported, tick quantity is the usual proxy. The Pine Script reference implementation makes use of the identical method.
Set up Information
Deep Pattern Curve Indicator is distributed by the MQL5.com Market. Set up is automated.
Steps:
- Buy the indicator from the MQL5 Market product web page
- The indicator installs routinely into your MetaTrader terminal
- Open MetaTrader and pressĀ Ctrl+NĀ to open the Navigator panel
- IncreaseĀ Indicators > Market
- FindĀ Deep Pattern Curve IndicatorĀ within the record
- Drag the indicator onto any chart, or double-click its title
- The settings dialog seems — regulate parameters as wanted (see sections under)
- Click onĀ OKĀ to use
After loading, you will note:
- VWMA lineĀ drawn on the volume-weighted common worth (aqua throughout bullish traits, crimson throughout bearish traits)
- Higher bandĀ drawn at VWMA + ATR * Multiplier (teal throughout bullish, maroon throughout bearish)
- Decrease bandĀ drawn at VWMA – ATR * Multiplier (teal throughout bullish, maroon throughout bearish)
IMPORTANT:Ā Don’t manually copy information to the information folder. The MQL5 Market handles all file placement and updates routinely.
Pattern State System Overview
The indicator’s core logic is a deterministic three-state machine.
The Three States:
- Bullish (aqua):Ā The latest confirmed bar closed above the higher ATR band, indicating an uptrend
- Bearish (crimson):Ā The latest confirmed bar closed under the decrease ATR band, indicating a downtrend
- Impartial (default aqua):Ā The beginning state earlier than the primary transition happens (the indicator initializes new bars to the earlier bar’s state)
Transition Logic:
The state machine solely transitions when worth decisively crosses one of many bands:
| Present Shut | End result |
|---|---|
| Above higher band | Pattern turns intoĀ bullish |
| Beneath decrease band | Pattern turns intoĀ bearish |
| Between bands | Pattern stays unchanged from earlier bar |
This persistence rule is what provides the indicator its clear, readable visualization. The road doesn’t flicker as worth oscillates across the VWMA — it solely flips colour when a significant break happens.
Non-Repainting Affirmation:
- Pattern transitions are evaluated solely onĀ confirmed (closed) bars
- The stay (still-forming) bar inherits the development colour of the earlier closed bar
- As soon as a confirmed bar’s colour is established, it by no means adjustments
This implies a bar that closed bullish three days in the past will nonetheless be bullish tomorrow. There isn’t a rewriting of historic state when new information arrives.
Calculation Parameter Settings
These parameters management the VWMA and ATR calculations.
| Parameter | Default | Description |
|---|---|---|
| InpVwmaLength | 34 | Variety of bars in each the VWMA and the ATR calculations. Shorter values (14-21) react quicker to cost adjustments; longer values (55-89) produce a smoother baseline |
| InpAtrMult | 1.5 | Multiplier utilized to ATR for the higher and decrease band distance. Decrease values (0.8-1.2) set off extra frequent development adjustments; increased values (2.0-3.0) require bigger strikes earlier than transition |
Choosing the proper size:
- 14-21 bars:Ā Extremely responsive, appropriate for scalping (M5-M15) the place you need fast development recognition
- 34 bars (default):Ā Balanced for swing buying and selling on H1-H4, captures significant structural strikes
- 55-89 bars:Ā Clean and gradual, appropriate for place buying and selling on D1-W1 charts
Choosing the proper ATR multiplier:
- 0.8-1.2:Ā Tight bands, extra frequent development adjustments, extra noise
- 1.5 (default):Ā Balanced filtering of regular market volatility
- 2.0-3.0:Ā Huge bands, fewer development adjustments, solely triggered by important strikes
TIP:Ā Begin with the defaults (34, 1.5) and solely regulate after observing how the indicator performs in your most well-liked timeframe and instrument.
Visualization Parameters
The indicator’s visible look is managed byĀ #property indicator_color Ā andĀ #property indicator_width Ā directives on the prime of the supply file. The compile-time defaults are:
| Factor | Bullish | Bearish | Width |
|---|---|---|---|
| VWMA predominant line | clrAqua (cyan) | clrRed | 3 pixels |
| Higher band | clrTeal | clrMaroon | 1 pixel |
| Decrease band | clrTeal | clrMaroon | 1 pixel |
To vary colours completely:Ā Modify theĀ #property indicator_colorN Ā directives within the supply code, the place N is the plot quantity (1-6 for the six bicolor buffers). Recompile in MetaEditor (F7) for the adjustments to take impact.
To vary colours briefly:Ā Proper-click the indicator on the chart, select Properties, and edit the colours on the Colours tab. Adjustments apply solely to that chart occasion.
TIP:Ā On darkish chart backgrounds, the default aqua/crimson palette is extremely seen. On mild chart backgrounds, think about switching to clrDodgerBlue and clrCrimson for higher distinction.
Danger Administration Workflow
Deep Pattern Curve Indicator is aĀ development filter, not an automatic trade-execution system. It doesn’t place cease loss or take revenue ranges on the chart. As an alternative, it supplies the directional context that the dealer makes use of as enter to their very own threat administration framework.
Beneficial workflow:
- Decide course from the development colour.Ā Commerce solely within the course of the present state — longs throughout bullish, shorts throughout bearish
- Use the decrease band as a cease reference for longs.Ā An in depth under the decrease band invalidates the bullish thesis
- Use the higher band as a cease reference for shorts.Ā An in depth above the higher band invalidates the bearish thesis
- Use ATR for place sizing.Ā The identical ATR worth the indicator makes use of internally is uncovered through the iATR perform in MetaTrader (interval 34 by default), which might drive a separate position-sizing software
- Deal with development transitions as exit alerts.Ā When the road flips colour towards your place, think about closing or decreasing publicity
The indicator’s bands present a pure stop-loss reference as a result of they symbolize the volatility-adjusted boundary of the present development. A transfer past the band is by definition a major counter-trend transfer.
Full Parameter Reference
The next desk lists all enter parameters within the order they seem within the indicator settings dialog.
| # | Parameter | Sort | Default | Class |
|---|---|---|---|---|
| 1 | InpVwmaLength | int | 34 | Calculation |
| 2 | InpAtrMult | double | 1.5 | Calculation |
| 3 | InpAlertBull | bool | true | Alerts |
| 4 | InpAlertBear | bool | true | Alerts |
| 5 | InpAlertPopup | bool | true | Alerts |
| 6 | InpAlertSound | bool | false | Alerts |
| 7 | InpAlertEmail | bool | false | Alerts |
| 8 | InpAlertPush | bool | false | Alerts |
The indicator is deliberately lean on inputs to maintain the configuration simple. The 2 calculation parameters ( InpVwmaLength Ā andĀ InpAtrMult ) decide the development’s responsiveness; the six alert parameters decide which occasions fireplace and thru which channels.
Alert Configuration
Deep Pattern Curve Indicator helps 4 alert supply channels and two distinct alert occasions.
Alert Channels
| Parameter | Default | Description |
|---|---|---|
| InpAlertPopup | true | Present a popup dialog in MetaTrader |
| InpAlertSound | false | Play the default alert.wav sound |
| InpAlertEmail | false | Ship e-mail notification |
| InpAlertPush | false | Ship push notification to the MetaTrader cellular app |
Alert Occasions
The indicator fires alerts for 2 occasions, every as soon as per bar:
| Alert Occasion | Instance Message |
|---|---|
| Bullish Pattern Confirmed | Deep Pattern Curve [EURUSD] – BULLISH development confirmed |
| Bearish Pattern Confirmed | Deep Pattern Curve [EURUSD] – BEARISH development confirmed |
Every alert fires solely as soon as per bar to stop duplicate notifications. The alert textual content contains the image title and the development affirmation state.
Route-Particular Grasp Switches
| Parameter | Default | Description |
|---|---|---|
| InpAlertBull | true | Grasp swap for bullish development alerts |
| InpAlertBear | true | Grasp swap for bearish development alerts |
These allow you to allow just one course (for instance, solely bullish alerts on a long-only watchlist).
Enabling Push Notifications
- Set up the MetaTrader cellular app in your telephone (iOS or Android)
- Open the app and navigate toĀ Settings > Messages
- Copy yourĀ MetaQuotes ID
- Within the desktop MetaTrader, go toĀ Instruments > Choices > Notifications
- Enter your MetaQuotes ID and allow notifications
- SetĀ InpAlertPush = true Ā within the indicator settings
Enabling E mail Notifications
- In MetaTrader, go toĀ Instruments > Choices > E mail
- ExamineĀ Allow
- Enter your SMTP server, port, login, password, and vacation spot e-mail deal with
- Click onĀ Take a look atĀ to confirm the configuration works
- SetĀ InpAlertEmail = true Ā within the indicator settings
Buying and selling Methods
The next three approaches show other ways to make use of Deep Pattern Curve Indicator. All methods assume default settings except acknowledged in any other case.
WARNING:Ā Buying and selling includes important threat of loss. These methods are supplied for instructional functions solely. All the time take a look at on a demo account first and by no means commerce with cash you can not afford to lose.
Technique A: Pattern Following Pullbacks (H1 – H4)
Purpose:Ā Enter within the course of the established development on pullbacks towards the VWMA.
Setup:
- VWMA Size: 34 (default)
- ATR Multiplier: 1.5 (default)
- Timeframe: H1 or H4
Commerce administration:
- Anticipate the VWMA line to be in your commerce course (aqua for longs, crimson for shorts)
- Anticipate worth to tug again to or close to the VWMA (inside the internal band space)
- Enter on the primary bar that closes again within the development course
- Place cease loss simply past the alternative band (decrease band for longs, higher band for shorts)
- Take revenue at 1.5-2 instances the cease distance, or path the cease alongside the band
Technique B: Pattern Reversal Affirmation (M30 – H1)
Purpose:Ā Enter at confirmed development transitions when the road colour flips.
Setup:
- VWMA Size: 21 (Quick Response preset)
- ATR Multiplier: 1.2 (Quick Response preset)
- Timeframe: M30 or H1
Commerce administration:
- Allow bullish and bearish alerts on a number of charts
- When an alert fires, test the chart and confirm the development transition is supported by your higher-timeframe evaluation
- Enter on the open of the bar after the transition bar
- Place cease loss on the current swing excessive (for shorts) or swing low (for longs)
- Take partial revenue at 1:1 risk-reward and let the remaining run with a trailing cease alongside the band
Technique C: Multi-Timeframe Bias Filter
Purpose:Ā Use the indicator on H4 or D1 as a directional filter for trades on decrease timeframes.
Setup:
- Apply Deep Pattern Curve Indicator to the H4 or D1 chart of your traded instrument
- Decide the higher-timeframe development (aqua = bullish bias, crimson = bearish bias)
- In your buying and selling timeframe (M15, M30, H1), apply your normal entry methodology
- Take solely entries that align with the H4/D1 bias from Deep Pattern Curve
This method combines the indicator’s gradual, dependable development filter with no matter entry approach you already use, eradicating counter-trend trades out of your choice tree.
TIP:Ā For Technique C, arrange the higher-timeframe chart in a separate window or use the Shade Print characteristic to overlay the development state in your buying and selling timeframe.
Parameter Tuning Presets
The next preset tables present beginning factors for various buying and selling kinds.
Default Preset (Balanced, H1 – H4)
| Parameter | Default Worth |
|---|---|
| InpVwmaLength | 34 |
| InpAtrMult | 1.5 |
The usual configuration for many Foreign exchange pairs on the 1-hour and 4-hour timeframes. Captures significant development adjustments whereas filtering minor swings. Beneficial for brand new customers.
Quick Response Preset (M5 – M30)
| Parameter | Quick Worth |
|---|---|
| InpVwmaLength | 21 |
| InpAtrMult | 1.2 |
Tighter bands and a shorter VWMA produce extra frequent development transitions. Finest for intraday buying and selling on decrease timeframes the place fast reversals matter. Anticipate extra alerts however with shorter persistence per state.
Clean Pattern Preset (D1 – W1)
| Parameter | Clean Worth |
|---|---|
| InpVwmaLength | 55 |
| InpAtrMult | 2.0 |
Wider bands and an extended VWMA produce fewer however higher-conviction development transitions. Appropriate for place buying and selling on day by day and weekly charts the place main structural strikes are the main target.
Crypto / Excessive Volatility Preset
| Parameter | Crypto Worth |
|---|---|
| InpVwmaLength | 34 |
| InpAtrMult | 2.0 |
For devices with excessive volatility (BTCUSD, ETHUSD, indices throughout information), the upper ATR multiplier prevents the bands from being continually violated by regular volatility growth.
TIP:Ā Alter one parameter at a time and observe its impact over at the very least 50 historic bars earlier than making additional adjustments.
Troubleshooting
No Pattern Shade Seen on Chart
Doable causes and fixes:
- Warmup interval not reached.Ā The indicator requires at the very leastĀ InpVwmaLength + 2 Ā bars of historical past earlier than producing any output. On a contemporary chart, scroll again to make sure sufficient bars are loaded
- Chart background colour matches the road colour.Ā Proper-click chart > Properties > Colours and confirm the chart background contrasts with aqua and crimson
- Each bull and bear buffers are at EMPTY_VALUE on the seen area.Ā This could not occur with the corrected construct, but when it does, test the Consultants log for any error messages
Traces Not Aligned with Candles
Doable causes and fixes:
- Previous compiled binary.Ā In the event you upgraded to a more recent model of the indicator, the outdatedĀ .ex4 Ā orĀ .ex5 Ā should still be cached. Open MetaEditor, open the supply file, press F7 to recompile, and re-attach the indicator to the chart
- Mistaken construct on your platform.Ā TheĀ .mq4 Ā file should be compiled by MetaEditor 4 (bundled with MetaTrader 4). TheĀ .mq5 Ā file should be compiled by MetaEditor 5 (bundled with MetaTrader 5). Cross-compilation doesn’t work
- MT4 vs MT5 indexing variations.Ā The MT4 construct makes use of series-indexed buffers (shift = 0 is the present bar). The MT5 construct callsĀ ArraySetAsSeries Ā to transform parameter arrays to the identical orientation. Each builds produce visually an identical output
Alerts Not Firing
- Verify thatĀ EnableAlertsĀ is about to true (that is the grasp swap throughĀ InpAlertBull Ā /Ā InpAlertBear Ā toggles on this construct)
- For push notifications: confirm your MetaQuotes ID is configured inĀ Instruments > Choices > NotificationsĀ and thatĀ InpAlertPush = true
- For e-mail alerts: confirm SMTP settings inĀ Instruments > Choices > E mailĀ and thatĀ InpAlertEmail = true
- Alerts fireplace solely as soon as per bar per occasion kind. In the event you missed the alert, you’ll not obtain a reproduction on the identical bar
Completely different Outcomes Between MT4 and MT5
- The underlying calculation logic is an identical, however minor variations in tick quantity reporting between MT4 and MT5 dealer feeds can produce small variations in VWMA values
- The ATR calculation makes use of the identical method on each platforms however processes the information barely in a different way as a result of array indexing conventions
- These variations are sometimes small (a number of decimal locations) and don’t have an effect on the general development state dedication
Chart Auto-Scale Seems Mistaken
If the chart Y-axis is compelled to incorporate 0 or extends far past the candle vary, this sometimes means the buffer is being populated with default zero values as an alternative of empty values:
- Recompile the indicator in MetaEditor (F7) to make sure the newest construct is in use
- Re-attach the indicator to the chart after recompiling
- Press F8 (Properties) > Widespread tab > confirm “Present in Information Window” is checked, then “Use the Buffer Empty Worth” must be EMPTY_VALUE not 0
In the event you want help with Deep Pattern Curve Indicator:
| Contact Methodology | Particulars |
|---|---|
| E mail | assist@forexobroker.com |
| Web site | www.forexobroker.com |
| MQL5 Market | Use the Feedback part on the product web page |
When contacting assist, please embody:
- Your MetaTrader model (MT4 or MT5) and actual construct quantity
- Dealer title and the image you’re buying and selling
- An outline of the problem
- Screenshots of the chart and the indicator settings dialog
- The precise parameter values you’re utilizing
Obtain the indicator:Ā
Danger Disclaimer
Buying and selling overseas trade and CFDs on margin carries a excessive stage of threat and is probably not appropriate for all traders. Chances are you’ll maintain a loss exceeding your preliminary funding. Pattern Quorum is a technical evaluation software and doesn’t assure worthwhile trades. Previous efficiency will not be indicative of future outcomes. The authors settle for no legal responsibility for any loss arising from use of the indicator. By utilizing Pattern Quorum you acknowledge sole accountability on your buying and selling selections.


