Loading…

Make Grid 50 100 200 30pips Stop70

From the Old Kings archive: Make Grid 50 100 200 30pips Stop70, an expert advisor (trading robot) for MetaTrader 4. As the name suggests, the idea behind it is a grid of orders at fixed price steps. In the code it works with MACD and moving averages. It works with a grid of orders, places pending orders and trades breakouts. It has 17 settings, for example unique Grid Magic (default 11111), Lots (default 0.05) and Grid Size (default 20). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. 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 50 100 200 30pips Stop70

Make Grid 50 100 200 30pips Stop70 is an expert advisor (trading robot) for MetaTrader 4 based on MACD and Moving Average. It opens a grid of orders at fixed price steps, places pending buy/sell stop or limit orders and trades breakouts. It has 17 settings, such as Unique grid magic, Lots and Grid size. MQL source code included.

Files in the download: MakeGrid_50_100_200_30pips_stop70.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.05Trade size in lots
Grid size20pips between orders - grid or mesh size
Grid steps10total number of orders to place
Take profit30number of ticks to take profit. normally is = grid size but u can override
Stop loss70if u want to add a stop loss. normal grids dont use stop losses
Update interval1update orders every x minutes
Want longstruedo we want long positions
Want shortstruedo we want short positions
Want breakouttruedo we want longs above price, shorts below price
Want countertruedo we want longs below price, shorts above price
Limit ema50truedo we want longs above ema only, shorts below ema only
Limit ema100truedo we want longs above ema only, shorts below ema only
Limit ema200truedo we want longs above ema only, shorts below ema only
Grid max open0maximum number of open positions : not yet implemented..
Use macdtrueif true, will use macd >0 for longs only, macd >0 for shorts only
Close open positionsfalseif UseMACD, do we also close open positions with a loss?

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 · Breakout · MACD · Moving Average · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria