Stealth Vein Indicator – Full Person Handbook (MT4 & MT5)
Introduction
The Stealth Vein Indicator is an adaptive dynamic-length shifting common system for MetaTrader 4 and MetaTrader 5. It expands the moving-average size routinely primarily based on a nine-mode reset engine, layers a two-pole adaptive filter on high, and confirms sustained development intervals with ATR-banded circles and transition triangles. Two on-chart data tables present real-time state and reset-mode steering, and a whole alert bundle covers all main occasions.
Key Options:
- Adaptive Dynamic-Size MA: counter-driven shifting common that grows throughout persistent regimes and resets at regime modifications
- 9 Reset Modes: Slope, RSI, Quantity, Bollinger, MACD, Stochastic, CCI, Momentum, None
- Two-Pole Adaptive Filter: smoother development reference for affirmation logic
- ATR-Banded Affirmation Circles: plot at filteredTrend ± ATR(200) throughout sustained traits
- Transition Triangles: mark the beginning of every confirmed development run
- Three-Colour MA Line: up, down, and impartial colors primarily based on stride affirmation
- Pattern Cloud Fill: auto-coloured fill between MA and EMA(shut, 10)
- Two Data Tables: Pattern Energy (top-right) and Reset Mode Steering (bottom-right)
- 5 Alert Occasions x 4 Channels: development flip, confirmed up begin, confirmed down begin, counter break, reset state change through popup, sound, push, electronic mail
- Non-Repainting: all values computed from closed bars solely
Obtain the indicator:
TIP: This indicator works on each image and each timeframe in MetaTrader. Default settings are tuned for H1 and H4 foreign exchange; decrease timeframes might profit from shorter base lengths and tighter thresholds.
Understanding the Dynamic-Size Transferring Common
A normal easy shifting common makes use of a hard and fast interval N. For those who select N = 50 to react shortly, the identical common whipsaws inside broad traits. For those who select N = 200 to filter noise, the common lags badly behind reversals. The trade-off is prime — till you let N change.
The Stealth Vein Indicator counts how lengthy the market has remained in a single state. The state is outlined by the energetic reset mode. Whereas the state stays the identical, the counter increments by 1 every bar, and the dynamic size is about to BaseLen + (counter – 1) . When the state flips, the counter snaps again to 1 and the size returns to base.
How alerts are generated:
- Every bar, the energetic reset mode produces a state worth: +1 (bullish bias), -1 (bearish bias), or 0 (impartial)
- The counter increments if the state matches the prior bar’s state, or resets to 1 if not
- The dynamic moving-average size is computed as BaseLen + counter – 1 , capped by MaxDynLen
- The dynamic SMA is computed utilizing this adaptive size
- The 2-pole filter is utilized to supply filteredTrend
- Pattern-up and trend-down strides are incremented primarily based on filteredTrend slope
- As soon as strides exceed thresholds, the road colors change and affirmation circles seem
NOTE: This can be a non-repainting indicator. All stateful values are computed from closed bars and persevered into sequence arrays, so historic alerts are secure throughout chart reloads.
Set up Information
Stealth Vein Indicator is distributed by the MQL5.com Market. Set up is computerized.
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
- Develop Indicators > Market
- Find Stealth Vein Indicator within the record
- Drag the indicator onto any chart, or double-click its title
- The settings dialog seems — regulate parameters as wanted
- Click on OK to use
After loading, you will note:
- Three-color MA line drawn in lime, purple, or yellow relying on affirmation state
- Pattern cloud fill in inexperienced when MA is beneath EMA(10), purple when MA is above
- Affirmation circles at filteredTrend ± ATR throughout sustained development intervals
- Transition triangles in the beginning of every new confirmed development
- Pattern Energy desk within the top-right nook displaying reset situation, counter, and scores
- Reset Mode Steering desk within the bottom-right displaying viewers and profit
IMPORTANT: Don’t manually copy information to the info folder. The MQL5 Market handles all file placement and updates routinely.
Reset Mode Choice
The reset mode is the one most vital configuration alternative. It determines what sign drives the counter. Every mode targets a special buying and selling fashion.
| Mode | Greatest For | Behaviour |
|---|---|---|
| Slope (default) | Pattern merchants | Counter grows whereas the dynamic MA slopes persistently in a single course |
| RSI | Reversal merchants | Counter grows when RSI stays past overbought/oversold thresholds |
| Quantity | Breakout merchants | Counter grows throughout sustained above-average quantity |
| Bollinger | Volatility merchants | Counter grows when shut stays outdoors the Bollinger Bands |
| MACD | Momentum merchants | Counter grows whereas MACD stays on one facet of its sign line |
| Stochastic | Brief-term merchants | Counter grows when uncooked %Ok stays past overbought/oversold |
| CCI | Cycle merchants | Counter grows when CCI deviates from its midpoint band |
| Momentum | Pattern merchants | Counter grows when fee of change retains its signal |
| None | Baseline reference | Counter resets each bar — fixed-length SMA at BaseLen |
The underside-right Reset Mode Steering desk updates routinely once you change modes, offering a fast reminder of every mode’s supposed viewers.
TIP: Slope mode is the most secure default. For those who discover that alerts happen too not often in your instrument, strive Quantity or RSI. If alerts happen too steadily, strive Slope with an extended Slope Lookback.
Dynamic MA Settings
These parameters management the shifting common’s base size, most size, and the way the counter behaves.
| Parameter | Default | Description |
|---|---|---|
| InpBaseLen | 50 | Beginning size of the dynamic shifting common |
| InpMaxDynLen | 350 | Most size the MA can develop to |
| InpCounterBreak | 70 | Counter threshold at which reverse-counter mode flips course |
| InpReverseCounter | false | When true, counter ping-pongs between 1 and CounterBreak |
| InpTrendingCol | 10 | Bars of one-direction filter slope to color the MA up or down |
How the counter behaves:
- With InpReverseCounter = false (default), the counter grows by 1 every matching-state bar till it reaches BaseLen + counter – 1 = MaxDynLen . From then on, size stays at MaxDynLen.
- With InpReverseCounter = true , the counter grows as much as CounterBreak , then decrements again to 1, then grows once more. The MA size oscillates rhythmically inside any persistent state.
TIP: For scalping on M5-M15, scale back InpBaseLen to twenty and InpMaxDynLen to 100. For swing buying and selling on H4-D1, the defaults are effectively tuned. For place buying and selling on D1-W1, take into account elevating InpBaseLen to 100.
Reset Mode Particular Settings
Every reset mode has its personal configuration parameters. Solely the parameters for the energetic mode have any impact.
Slope
| Parameter | Default | Description |
|---|---|---|
| InpSlopeLookback | 50 | Bars again to check the dynamic MA in opposition to |
RSI
| Parameter | Default | Description |
|---|---|---|
| InpRsiLength | 14 | RSI calculation interval |
| InpRsiOB | 60.0 | RSI stage above which the bullish state prompts |
| InpRsiOS | 40.0 | RSI stage beneath which the bearish state prompts |
Quantity
| Parameter | Default | Description |
|---|---|---|
| InpVolSmaLength | 20 | Size of the amount weighted shifting common baseline |
Bollinger
| Parameter | Default | Description |
|---|---|---|
| InpBbLength | 200 | Bollinger Bands lookback interval |
| InpBbMult | 1.1 | Normal deviation multiplier for band width |
MACD
| Parameter | Default | Description |
|---|---|---|
| InpMacdFast | 50 | MACD quick EMA size |
| InpMacdSlow | 100 | MACD gradual EMA size |
| InpMacdSignal | 25 | MACD sign line size |
Stochastic
| Parameter | Default | Description |
|---|---|---|
| InpStochLength | 50 | Stochastic %Ok interval |
| InpStochOB | 60.0 | Stochastic stage above which the bullish state prompts |
| InpStochOS | 40.0 | Stochastic stage beneath which the bearish state prompts |
CCI
| Parameter | Default | Description |
|---|---|---|
| InpCciLength | 100 | Commodity Channel Index interval |
| InpCciOB | 10.0 | CCI stage above which the bullish state prompts |
| InpCciOS | -10.0 | CCI stage beneath which the bearish state prompts |
Momentum
| Parameter | Default | Description |
|---|---|---|
| InpMomentumLength | 140 | Fee of change interval |
None
No extra parameters. The counter resets to 1 each bar.
TIP: When experimenting with modes, change just one parameter at a time and observe the impact on the chart earlier than adjusting the following one.
Pattern & Indicators Settings
These parameters management the two-pole filter, affirmation thresholds, and marker colors.
| Parameter | Default | Description |
|---|---|---|
| InpFilterLength | 20 | Two-pole filter dominant cycle interval |
| InpTrendSmoothing | 0.8 | Two-pole filter damping coefficient (0.1 – 1.0) |
| InpTrendingPeriods | 20 | Stride threshold for ATR-banded affirmation circles |
| InpTrendUpColor | clrLime | Color for up-trend circles, triangles, and MA |
| InpTrendDnColor | clrRed | Color for down-trend circles, triangles, and MA |
| InpGradColor | clrYellow | Impartial color and Pattern Energy gradient anchor |
Filter behaviour:
- Bigger InpTrendSmoothing (nearer to 1.0) produces stronger damping and a smoother filteredTrend
- Smaller values let extra high-frequency content material by
- InpFilterLength controls the dominant cycle: shorter values monitor worth extra intently, longer values produce a slower-moving reference
Affirmation thresholds:
- InpTrendingCol (in Dynamic MA settings, default 10) controls when the MA line modifications color
- InpTrendingPeriods (default 20) controls when ATR-banded circles seem
The MA at all times modifications color first, then circles seem as soon as strides attain the upper threshold. This dual-threshold design offers early-warning color transitions plus high-confidence circle confirmations.
Tables and Show
| Parameter | Default | Description |
|---|---|---|
| InpShowTrendStrengthTable | true | Present the Pattern Energy desk (top-right) |
| InpShowGuidanceTable | true | Present the Reset Mode Steering desk (bottom-right) |
Pattern Energy Desk (top-right)
Six rows organized as label-value pairs (row 3 deliberately empty to match the Pine Script supply):
| Row | Description |
|---|---|
| Reset Situation | Energetic reset mode title (Slope, RSI, Quantity, and many others.) |
| Counter Worth | Present counter as integer, displayed in orange |
| Pattern Energy | Normalized development rating (0-100) with gradient shade |
| (Row 3) | Deliberately empty for visible spacing |
| Highest Pattern Rating | Most rating noticed since indicator began, in lime |
| Common Pattern Rating | Working common throughout all processed bars, in dodger blue |
The Pattern Energy row’s color is computed by linear RGB interpolation between the impartial gradient anchor and the up-trend or down-trend color, scaled by the corresponding stride.
Reset Mode Steering Desk (bottom-right)
Three columns displaying the energetic mode’s data:
| Column | Description |
|---|---|
| Reset Mode | Energetic mode title in yellow |
| Greatest For | Dealer viewers for this mode |
| Key Profit | One-line description of the mode’s energy |
TIP: Each tables may be toggled off in the event that they overlap chart components you have to see. The tables redraw routinely when the chart is resized.
Alert Configuration
The Stealth Vein Indicator helps 5 alert occasions and 4 supply channels.
Alert Occasions
| Occasion | Default | Description |
|---|---|---|
| InpAlertTrendFlip | true | Fires when shut crosses the dynamic MA |
| InpAlertConfirmedUp | true | Fires in the beginning of a confirmed up-trend (PosTrendStart) |
| InpAlertConfirmedDn | true | Fires in the beginning of a confirmed down-trend (NegTrendStart) |
| InpAlertCounterBreak | false | Fires when counter reaches CounterBreak |
| InpAlertResetState | false | Fires when the reset state worth modifications |
Alert Channels
| Channel | Default | Description |
|---|---|---|
| InpAlertPopup | true | Present on-screen popup dialog |
| InpAlertPush | false | Ship push notification to MetaTrader cell app |
| InpAlertEmail | false | Ship electronic mail notification |
| InpAlertSound | false | Play sound file |
| InpAlertSoundFile | alert.wav | Sound file utilized by AlertSound channel |
Every alert fires as soon as per bar to stop duplicate notifications.
Enabling Push Notifications
- Set up the MetaTrader cell 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
- Test Allow
- Enter SMTP server, port, login, password, and vacation spot electronic mail
- Click on Check to confirm
- Set InpAlertEmail = true within the indicator settings
Buying and selling Methods
The next three approaches exhibit alternative ways to make use of the Stealth Vein Indicator. All methods assume default filter settings until said in any other case.
WARNING: Buying and selling entails important danger of loss. These methods are offered 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’t afford to lose.
Technique A: Pattern Following with Slope Mode
Purpose: Trip established traits utilizing sustained directional persistence.
Really helpful settings:
- Reset Mode = Slope (default)
- InpSlopeLookback = 50
- InpTrendingCol = 10
- InpTrendingPeriods = 20
- All alerts enabled
Commerce administration:
- Await the MA line to color lime (up-trend affirmation)
- Enter lengthy after the primary affirmation circle seems at filteredTrend – ATR
- Place cease loss beneath the affirmation circle (or beneath the prior swing low)
- Path the cease alongside subsequent affirmation circles as they kind
- Exit when the road color shifts to yellow (impartial) or purple (downtrend), or when a transition triangle marks a brand new run in the wrong way
Technique B: Reversal Buying and selling with RSI Mode
Purpose: Catch turning factors after excessive momentum readings.
Really helpful settings:
- Reset Mode = RSI
- InpRsiLength = 14, InpRsiOB = 70, InpRsiOS = 30
- InpTrendingPeriods = 10
- Alert on Confirmed Up/Down Begin enabled
Commerce administration:
- Look ahead to transition triangles within the course reverse to the prior development
- Affirm the brand new development course with the road color change
- Enter on the shut of the bar the place the triangle seems
- Place cease loss past the latest excessive worth (swing excessive for shorts, swing low for longs)
- Take revenue on the first affirmation circle within the new course or at mounted risk-reward (e.g., 1:2)
Technique C: Multi-Mode Affirmation
Purpose: Use a number of modes concurrently throughout a number of chart cases for high-conviction entries.
Setup:
- Open the identical chart in three home windows
- On chart 1, set Reset Mode = Slope
- On chart 2, set Reset Mode = MACD
- On chart 3, set Reset Mode = RSI
- Allow Confirmed Up/Down Begin alerts on all three
Commerce rule:
- Enter solely when at the very least two of the three charts present alignment (identical development course confirmed by their respective indicators)
- This compound affirmation reduces false alerts at the price of fewer trades per session
TIP: Technique C works finest when paired with a transparent higher-timeframe bias (for instance, solely take longs when the day by day MA is sloping up).
Parameter Tuning Presets
The next preset tables present beginning factors for various buying and selling kinds.
Scalping Preset (M5 – M15)
| Parameter | Scalping Worth |
|---|---|
| InpBaseLen | 20 |
| InpMaxDynLen | 100 |
| InpCounterBreak | 30 |
| InpFilterLength | 10 |
| InpTrendingCol | 5 |
| InpTrendingPeriods | 10 |
| InpResetMode | Slope or Stochastic |
Swing Buying and selling Preset (H1 – H4)
| Parameter | Swing Worth |
|---|---|
| InpBaseLen | 50 |
| InpMaxDynLen | 350 |
| InpCounterBreak | 70 |
| InpFilterLength | 20 |
| InpTrendingCol | 10 |
| InpTrendingPeriods | 20 |
| InpResetMode | Slope or MACD |
Place / Conservative Preset (H4 – D1)
| Parameter | Conservative Worth |
|---|---|
| InpBaseLen | 100 |
| InpMaxDynLen | 500 |
| InpCounterBreak | 100 |
| InpFilterLength | 30 |
| InpTrendingCol | 15 |
| InpTrendingPeriods | 30 |
| InpResetMode | Slope or Bollinger |
TIP: Begin with the Swing Buying and selling preset and regulate one parameter at a time. Observe the impact on sign frequency and high quality earlier than altering extra values.
Troubleshooting
Indicator Does Not Show Something
- Make sure the chart has at the very least 250 bars of historical past. The indicator’s warmup covers Bollinger size, momentum size, and ATR(200).
- Wait just a few seconds after loading on a recent chart for MT5 indicator handles to populate.
- Confirm the indicator title in Navigator > Indicators > Market matches Stealth Vein Indicator .
No Affirmation Circles Seen
- Strides might not have reached the brink. Cut back InpTrendingPeriods to 10 to decrease the requirement.
- The energetic reset mode might produce frequent state modifications that forestall strides from accumulating. Attempt Slope mode with an extended InpSlopeLookback .
- Confirm that InpTrendingPeriods just isn’t set increased than the standard development period in your timeframe.
MA Line Stays Largely Yellow (Impartial)
- InpTrendingCol could also be too excessive for the energetic filter size. Cut back to five.
- The 2-pole filter could also be too damped. Cut back InpTrendSmoothing to 0.5 to permit extra high-frequency content material by.
Counter By no means Grows Past Small Values
- The energetic reset mode is producing frequent state flips. Attempt a longer-lookback mode (Bollinger 200, MACD 50/100, or Slope 50).
- Quantity mode might present frequent flips on quiet classes; swap to Slope or RSI on devices with low or secure quantity.
Tables Overlap Chart Motion
- Each tables anchor to the best corners. Resize the chart wider or set InpShowTrendStrengthTable and InpShowGuidanceTable to false.
- Tables redraw routinely when the chart is resized.
Alerts Not Firing
- Test that the particular occasion flag (e.g., InpAlertTrendFlip ) is enabled
- For push notifications: confirm your MetaQuotes ID in Instruments > Choices > Notifications and that InpAlertPush = true
- For electronic mail: confirm SMTP settings in Instruments > Choices > E-mail and that InpAlertEmail = true
- Alerts hearth solely as soon as per bar per occasion. For those who missed an alert, you’ll not obtain a reproduction on the identical bar
Totally different Visuals on MT4 vs MT5
- The interior calculation logic is similar, however minor variations in tick quantity feeds between MT4 and MT5 brokers could cause Quantity mode to behave barely in another way
- Cloud and line colors are locked at compile time by #property directives, making certain similar rendering throughout each platforms
Incessantly Requested Questions
Does the indicator repaint?
No. All stateful values are computed from closed bars solely. The forward-walk processing mannequin populates persistent sequence arrays so historic alerts stay secure throughout chart reloads, timeframe switches, and dealer reconnects.
Can I apply it to cryptocurrency or inventory charts?
Sure. The indicator is symbol-agnostic. The volatility-adjusted ATR bands routinely scale to the instrument’s typical vary. For symbols with out dependable tick quantity knowledge (some CFDs, some crypto pairs), keep away from Quantity mode and select Slope, MACD, or RSI as a substitute.
Does it work in Technique Tester?
Sure. The indicator runs in MetaTrader’s built-in Technique Tester. Observe that Tester makes use of tick quantity from the modelled tick knowledge, which can differ from reside tick quantity on some brokers.
What’s the perfect timeframe?
H1 and H4 give the perfect steadiness between sign frequency and noise discount with default settings. M30 works effectively with the Scalping preset. D1 and W1 work with the Conservative preset.
Why are the circles plotted on the “improper” facet?
The circle mapping is deliberately inverted, devoted to the Pine Script supply. When the trend-down stride is excessive (many bars of falling filteredTrend = sturdy down-trend affirmation), the up-circle seems at filteredTrend + ATR(200) marking the place worth would want to journey to invalidate the development. The alternative mapping applies to up-strides.
Can I disable particular person visible components?
Tables may be toggled through InpShowGuidanceTable and InpShowTrendStrengthTable . The road colors, cloud fill, circles, and triangles are a part of the core visible design and may be hidden by setting their color to clrNone in MetaTrader’s Colours tab after attaching the indicator.
Obtain the indicator:
Threat Disclaimer
Buying and selling international change and CFDs on margin carries a excessive stage of danger and might not be appropriate for all traders. You could maintain a loss exceeding your preliminary funding. Pattern Quorum is a technical evaluation software and doesn’t assure worthwhile trades. Previous efficiency just isn’t 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 duty to your buying and selling selections.








