Pyramid MA V5.2XE
Pyramid MA V5.2XE — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Judging by its name, it is built around moving averages. This copy is version 5. Its source code uses moving averages. It works with a grid of orders, places pending orders and can size trades from your risk. It has 40 settings, for example koef grid (default 0.5), 0 (default Indicators) and timeframe (default 0). 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 · v5 · Free
About Pyramid MA V5.2XE
Pyramid MA V5.2XE is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It opens a grid of orders at fixed price steps, places pending buy/sell stop or limit orders and can size trades from your balance and risk percent. It has 40 settings, such as Koef grid, 0 and Timeframe. MQL source code included.
Files in the download: PYRAMID MA v5.2XE.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 |
|---|---|---|
| Koef grid | 0.5 | |
| 0 | Indicators | |
| Timeframe | 0 | Period or timeframe used by the calculation |
| Period fast | 25 | Number of bars in the calculation |
| Period slow | 50 | Number of bars in the calculation |
| Ma method | 0 | |
| Applied price | 0 | |
| Shift | 1 | Bar shift (0 = current bar) |
| 1 | Start | |
| Start recede | 30 | |
| Steps | 15 | Distance between orders |
| Quantity | 5 | |
| 2 | Settings | |
| Lots | 0.0 | Trade size in lots |
| Alfa lot | 1 | |
| Choice method | FALSE | |
| Risk | 1.0 | Risk per trade (percent of balance) |
| Stop loss | 0 | Stop loss distance |
| Take profit | 15 | Take profit distance |
| Magic number | 87 | Magic number that tells this EA's orders apart |
| Slippage | 3 | Maximum slippage allowed when opening a trade |
| Number of try | 5 | |
| Lock | ______Settings warrants Lock_____ | |
| Lock | TRUE | |
| Lock pips | 15 | |
| Koef lot lock | 2.0 | |
| Mn lock b | 54 | |
| Mn lock s | 45 | |
| Stop loss lock | 0 | Stop loss distance |
| Take profit lock | 34 | Take profit distance |
| Av | ______Settings warrants AV_____ | |
| AV | TRUE | |
| Tf av | 0 | |
| Exponents | 1.0 | How much the lot size grows after a loss |
| Level av | 20 | |
| Level op | 15 | |
| F lot av | 2.0 | |
| Dr | ______Other Options_____ | |
| Market watch | FALSE | |
| Use sound | TRUE | Turn this alert on or off |
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: Moving Average · Grid · Pending Orders · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code