NonLagDot Non Repaint Indicator for MT4 and MT5

Written by Dominic Walsh · Published · Last updated

The NonLagDot idea is a smooth average with little lag, shown as dots rather than a line. The NonLagDot non repaint indicator weights recent closes with a cosine bell, colours each dot by its slope over two bars, and marks the bar where the slope flips and holds.

This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Main price chart
Plots 4: NLD up, NLD down, Buy, Sell
Alerts popup, push notification, email, sound
Inputs 11

What the file declares

Coloured dots and two marks on price.

`NLD up` dots deep sky blue at width 3.

`NLD down` dots tomato at width 3.

`Buy` prints lime with arrow 233.

`Sell` prints red with arrow 234.

A status block shows the closed-bar slope.

  • NLD up: arrow, deep sky blue, width 3, arrow code 159
  • NLD down: arrow, tomato, width 3, arrow code 159
  • Buy: arrow, lime, width 2, arrow code 233
  • Sell: arrow, red, width 2, arrow code 234
nonlagdot non repaint indicator: NonLagDot dots coloured by slope, EURUSD H1.
NonLagDot dots coloured by slope, EURUSD H1.

Under the hood

Weights

`NLD_Period` `14` sets the window. A cosine bell gives the newest close the largest weight, and `NLD_Smooth` `1.0` shapes it.

Slope

`SlopeBars` `2` compares each dot with the one two bars back. Rising dots turn blue, falling dots tomato.

Flips

A mark prints when the slope changes side and holds for `ConfirmBars` `1`. A cooldown of half the period spaces marks.

Turning output into a view

Blue dots mean the average is rising.

Tomato dots mean it is falling.

A mark shows the first bar of a new slope.

Dots hug price closely.

`ArrowOffsetPts` `12` sets the gap.

Warm-up needs about fifteen bars.

Alert channels in this build: popup, push notification, email and sound, one message per closed bar.

Slope flips send one message each. `EnableAlerts` is the master switch; the popup and the sound playing `SoundFile` start on, and the mobile and email routes do not.

Every Nonlagdot Non Repaint Indicator input

Core settings

Setting What it does Default
NLD_Period NonLagDot cycle length. Window for the weights, `14`. 14
NLD_Smooth Smoothing factor (0.5..3.0). Shape of the weight curve, `1.0`. 1.0
SlopeBars Slope confirmation bars. Bars back for the slope test, `2`. 2
ConfirmBars Bars to confirm signal. Bars the new slope must hold, `1`. 1

Display settings

Setting What it does Default
ArrowOffsetPts Arrow offset in points. Mark gap in points, `12`. 12

Alert settings

Setting What it does Default
EnableAlerts Master alert switch, `true`. on
EnablePopup Popup, `true`. on
EnablePushNotify Mobile route, `false`. off
EnableEmail (see inputs panel) off
EnableSound Sound, ships on, `true`. on
SoundFile Sound clip, `”alert.wav”`. alert.wav
nonlagdot non repaint indicator: Inputs panel, period and smoothing above slope settings.
Inputs panel, period and smoothing above slope settings.

Where to run it

A fast, smooth average suits intraday charts. EURUSD H1 is the reference chart, with a flip every day or two. On M15 raise `NLD_Period` to 21. On D1 flips mark swing turns.

Where it comes unstuck

Low lag means more flips in ranges.

Slope flips are not crossovers.

Cooldown can hide a quick second turn.

The sound route ships on.

Copy the compiled Nonlagdot Non Repaint Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Background reading on the method behind the Nonlagdot Non Repaint Indicator: Weighted Average at Investopedia, Moving average on Wikipedia.

Download the Nonlagdot Non Repaint Indicator for MT4 and MT5

The zip holds the compiled Nonlagdot Non Repaint Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.

Download this indicator free

Enter your email and the file is yours. You also get the full MT4 and MT5 library.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

What does NLD_Period 14 set?

The number of closes in the weighted window. A cosine curve gives the newest close the largest weight and fades older ones smoothly to the edge of the window.

Why test the slope with SlopeBars 2?

Comparing each dot with the one two bars back ignores tiny single-bar wiggles. The colour only changes when the average actually turns, so the dots flicker far less in quiet markets.

When does a NonLagDot Buy print?

When the slope flips from falling to rising and stays rising for the confirmation bar. A cooldown of half the period, seven bars by default, spaces marks.

What does NLD_Smooth 1.0 control?

The shape of the weight curve. Lower values concentrate weight on the newest bars and react faster; higher values spread it out and smooth the dots.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Nonlagdot Non Repaint Indicator as one input. Always backtest before trading live.

Category: this is part of our Signal and Forecast collection. Browse more Signal and Forecast for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment