LSMA

Display a responsive least-squares moving average on MT5.

Last updated: Compatibility: MetaTrader 5
Jump to Download Read Full Guide
✓ Free direct download✓ Direct package link available✓ Demo testing recommended
LSMA – Display a responsive least-squares moving average on MT5
On this page
  1. What is LSMA?
  2. How to use LSMA
  3. Where it helps
  4. MT5 Indicator Parameters
  5. How to Install .ex5 Indicator in MetaTrader 5
  6. Download LSMA

What is LSMA?

LSMA lines on an MT5 chart

LSMA is a least-squares moving average for MT5. It draws a single line on the main chart and uses a price input together with a period to calculate the displayed average.

The package also provides horizontal and vertical shift inputs. These change the position of the displayed line and should be reviewed as chart coordinates rather than treated as a forecast.

How to use LSMA

Compare the LSMA line with recent price movement and with another moving-average length when a second reference is useful. The displayed line can be shifted horizontally or vertically by these inputs.

period controls the smoothing depth, IPC selects the applied price, Shift changes the horizontal bar offset, and PriceShift changes the vertical point offset.

Where it helps

Use a least-squares average

The MT5 package provides a dedicated LSMA calculation rather than a generic moving-average label.

Adjust the applied price

IPC selects the applied price used by the calculation.

Control line placement

Shift and PriceShift expose the horizontal and vertical offsets.

MT5 Indicator Parameters

The table below lists the available MT5 indicator parameters. You can customize these options in the MetaTrader Inputs dialog to match your trading preferences.

ParameterDescription
PeriodSets the smoothing depth used by the LSMA calculation. Default: 50.
Applied PriceSelects the applied price used by the indicator. Default: PRICE_CLOSE_.
Horizontal ShiftSets the horizontal shift of the indicator in bars. Default: 0.
Vertical ShiftSets the vertical shift of the indicator in points. Default: 0.
LSMA parameter settings
Default MT5 Indicator Settings

The screenshot above shows the default input parameters in the MT5 settings window.

How to Install .ex5 Indicator in MetaTrader 5

  1. Download the ZIP file and extract it.
  2. In MT5, select File → Open Data Folder.
  3. Open MQL5 → Indicators and copy the EX5 or MQ5 file into it.
  4. If the package includes library files, copy them to MQL5 → Libraries. Copy TPL files to the top-level templates folder.
  5. Restart MT5, find the indicator in the Navigator, and drag it onto a chart.

Test the tool on a demo account first. File contents and required folders can vary between packages.

Free indicator package

Is LSMA Free to Download?

Yes. The current MT5 package is available at no charge from the direct link below. Test it in a demo environment before using it with live funds.

  • ✓ No purchase required
  • ✓ MT5 indicator package
  • ✓ Demo testing recommended
Rate this indicator☆☆☆☆☆ 0.0 (0)
Download ZIPlsma.zipFile type: .zip
Before you trade

Indicators are analytical tools, not guarantees of profit. Test every download in a demo environment and make decisions based on your own risk tolerance.