SELL.mq4
From the Old Kings archive: SELL.mq4, an expert advisor (trading robot) for MetaTrader 4. It raises the lot size after losses (martingale — high risk), works with a grid of orders and places pending orders. It has 40 settings, for example Use Break Even (default false), Break Even Pips (default 10) and Breeak Even Profit (default 0). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. 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 SELL.mq4
SELL.mq4 is an expert advisor (trading robot) for MetaTrader 4. It increases the lot size after a losing trade (martingale), opens a grid of orders at fixed price steps and places pending buy/sell stop or limit orders. It has 40 settings, such as Use break even, Break even pips and Breeak even profit. MQL source code included.
It also moves the stop loss behind price (trailing stop / break-even), can size trades from your balance and risk percent and has a news filter.
Files in the download: SELL.mq4.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Use break even | false | Use_BreakEven |
| Break even pips | 10 | BreakEven_Pips |
| Breeak even profit | 0 | BreeakEven_Profit |
| Max loss percentage | 100000001 | Max_Loss_Percentage |
| Max loss money | 0 | Max_Loss_Money |
| Delete pending grid range | false | Delete_Pending_Grid_Range |
| Gr delete on loss | false | GR_Delete_on_Loss |
| Delete pending gsp gcp | false | Delete_Pending_GSP_GCP |
| X i | ---Lot Size Settings--- | xI |
| Lot size | 0.01 | Lot_Size |
| Use lot increment | true | lot_Increment |
| Dynamic lot size | true | Dynamic_Lot_Size |
| Dynamic multiplier | 10 | Dynamic_Multiplier |
| Lot size multiple | 2 | Lot_Size_Multiple |
| X ii | ---General Grid Settings--- | xII |
| Grid gap | 10 | Grid_Gap |
| Max slippage pips | 4 | Max_Slippage_Pips |
| Min pips from price | 5 | Min_Pips_from_Price |
| X iii | ---Random/Shift Settings--- | xIII |
| Shift buy range pips | 0 | Shift_Buy_Range_Pips |
| Shift sell range pips | 0 | Shift_Sell_Range_Pips |
| Random on candle | false | Random_OnCandle |
| I | ---Automatic Buy Range--- | I |
| Grid buy range | false | Grid_Buy_Range |
| Gbr no of orders | 3 | GBR_No_of_Orders |
| Grid buy range pips | 40 | Grid_Buy_Range_Pips |
| Buy range sl | 0 | Buy_Range_SL |
| Buy range tp | 200 | Buy_Range_TP |
| II | ---Automatic Sell Range--- | II |
| Grid sell range | true | Grid_Sell_Range |
| Gsr no of orders | 3 | GSR_No_of_Orders |
| Grid sell range pips | 40 | Grid_Sell_Range_Pips |
| Sell range sl | 0 | Sell_Range_SL |
| Sell range tp | 200 | Sell_Range_TP |
| III | ---Manual Grid Settings--- | III |
| Buy orders | false | Buy_Orders |
| Sell orders | false | Sell_Orders |
| IV | ---Grid Start Settings--- | IV |
| Buy gs price | 0 | buy_GS_Price ex: 1.5500 |
| Sell gs price | 110.605 | sell_GS_Price |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: Martingale · Grid · Pending Orders · Trailing Stop & Break-even · Risk & Lot Size · News Trading · MT4 Expert Advisor · MQL4 Source Code