Loading…

Make Grid LSMA

Make Grid LSMA — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Its name points to a grid of orders at fixed price steps. It works with a grid of orders, places pending orders and moves the stop behind price. It has 16 settings, for example unique Grid Magic (default 11111), Lots (default 0.1) and Grid Size (default 10). Watch it on a demo account for a while — robots can behave differently with each broker. Inside: 1 EA file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.

Expert advisor · MT4 · v1.0 · Free

About Make Grid LSMA

Make Grid LSMA is an expert advisor (trading robot) for MetaTrader 4. It opens a grid of orders at fixed price steps, places pending buy/sell stop or limit orders and moves the stop loss behind price (trailing stop / break-even). It has 16 settings, such as Unique grid magic, Lots and Grid size. MQL source code included.

It also can size trades from your balance and risk percent and has a news filter.

Files in the download: MakeGridLSMA.mq4.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
Unique grid magic11111Magic number of the trades. must be unique to identify
Lots0.1Trade size in lots
Grid size10pips between orders - grid or mesh size
Grid steps10total number of orders to place
Extend gridtrueUsed to limit grid to original when buy and sell stops are filled
Take profit0number of ticks to take profit. normally is = grid size but u can override
Stop loss0if u want to add a stop loss. normal grids dont use stop losses
Trail stop0will trail if > 0
Trailing stop type1Type 1 will trail immediately, type 2 will wait for price to move amount of trailStop
Update interval15update orders every x minutes
Lsma short period7Period or timeframe used by the calculation
Lsma long period16Period or timeframe used by the calculation
Pips difference16
Grid offset0positions are opened at price modulo GridSize and offset with this parameter.
Suspend gridfalseif set to true, will close all unfilled Orders
Shutdown gridfalseif set to true, will close all orders and positions.

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Grid · Pending Orders · Trailing Stop & Break-even · Risk & Lot Size · News Trading · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria