i-Gentor LSMA o EMA Indicator for MT4 and MT5

Written by Dominic Walsh · Published · Last updated

Two averages at the same length should track each other closely. These do not, and the reason is deliberate: the i gentor lsma o ema indicator gives them different weightings and feeds them different prices, so twenty-five bars produces two genuinely different curves.

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: LSMA, EMA, BUY, SELL
Alerts popup
Inputs 3

Drawn output, plot by plot

Two lines and two marks on price.

`LSMA` traces dodger blue at width 2.

`EMA` traces orange at the same width.

`BUY` marks a crossing with arrow 233 in lime.

`SELL` does the same in red with arrow 234.

Both marks sit twenty points from the bar.

  • LSMA: line, dodger blue, width 2
  • EMA: line, orange, width 2
  • BUY: arrow, lime, width 2, arrow code 233
  • SELL: arrow, red, width 2, arrow code 234
i gentor lsma o ema indicator: The weighted and exponential curves crossing, EURUSD H1.
The weighted and exponential curves crossing, EURUSD H1.

Under the hood

The weighted curve

`InpLsmaPeriod` `25` runs a linearly weighted average over the typical price, meaning the average of each bar’s high, low and close rather than just the close.

The exponential curve

`InpEmaPeriod` `25` runs an exponential average over the close alone. Same window, different weighting, different input price, which is where the separation comes from.

The crossing

Two bars settle it. The weighted curve moving from at or below the exponential one to above prints the lime mark, and the mirrored move prints red.

How to follow along

Blue reads the whole bar, orange only its close.

The gap between them widens on a wicky session.

A crossing means the two recipes disagreed.

Both curves carry the same twenty-five bar window.

Marks confirm on closed bars only.

Warm-up needs twenty-six bars.

Alert channels in this build: popup, one message per closed bar.

`InpAlerts` `true` raises a terminal message when the two curves cross on a closed bar. That terminal message is the only destination this build carries, since no phone, mail or audio setting exists in its panel.

Every I Gentor LSMA o EMA Indicator input

Core settings

Setting What it does Default
InpLsmaPeriod LSMA period (LWMA on Typical Price). Window on the weighted curve, `25`. 25
InpEmaPeriod EMA period. Window on the exponential one, `25`. 25

Alert settings

Setting What it does Default
InpAlerts Alerts on closed bar. Speak on a closed-bar crossing, `true`. on
i gentor lsma o ema indicator: Inputs panel, two periods and one switch.
Inputs panel, two periods and one switch.

Best home for this one

Twenty-five bars on the hourly chart is about a day of trade, which is where the two curves separate usefully. EURUSD H1 is the reference chart. On M5 they track each other too closely. On H4 a crossing is a weekly event.

Known limits

Two curves at one length cross often in a range.

Both lag the price they describe.

The arrow distance stays fixed, never scaling.

Nothing filters a crossing at all.

Copy the compiled I Gentor LSMA o EMA 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 I Gentor LSMA o EMA Indicator: Linearly Weighted Moving Average at Investopedia, Moving Averages at StockCharts ChartSchool.

Download the I Gentor LSMA o EMA Indicator for MT4 and MT5

The zip holds the compiled I Gentor LSMA o EMA 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

Why does InpLsmaPeriod 25 read the typical price?

Because linear weighting usually goes with a price describing the whole bar. Averaging high, low and close keeps a long wick in the figure, which a close-only reading would throw away entirely.

Do LSMA and EMA differ if both use 25 bars?

Considerably. One ramps its weights linearly across the window while the other decays them exponentially, and they read different prices, so the two curves separate whenever a session produces long wicks.

Can I move the BUY arrow closer in?

Not from the panel. The source fixes it at twenty points, so check that distance whenever you load the tool onto a symbol whose point size differs from a major currency pair.

Is InpAlerts the third and last setting?

Yes. The two periods and that switch are the entire panel. The source fixes everything else about the tool, including the arrow distance and the colour of each curve.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the I Gentor LSMA o EMA Indicator as one input. Always backtest before trading live.

Category: this is part of our Trend collection. Also, truly, browse more Trend 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