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

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 |

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.
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
- For background on this concept, see Big Bang (financial markets) on Wikipedia.
- For broader market context, see ividya (VIDYA) at the MQL5 Documentation.
