Murray Math
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called Murray Math. As the name suggests, the idea behind it is Murrey Math levels. In the code it works with moving averages. It works with a grid of orders, places pending orders and moves the stop behind price. It has 31 settings, for example Fractals (default TRUE), Note1 (default 15m 0.5/1h 0.25/4h 0.125) and Note2 (default 15m 4/1H 16/4H 64/D1 256). Watch it on a demo account for a while — robots can behave differently with each broker. Inside: 5 indicator files 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 Murray Math
Murray Math 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 moves the stop loss behind price (trailing stop / break-even). It has 31 settings, such as Fractals, Note1 and Note2. MQL source code included.
It also trades only in the hours you set (time filter).
Files in the download: TimeFrameLib-v0.3~.mq4, TimeFrameLib-v0.3~.mqh, X TF 2009 (Angles) Plugin~.mq4, X TF 2009 (TimeLine) Plugin~.mq4, X TF 2009~.mq4, Murrey Math ea~.mq4, MURRAY_MATH_TRADING_SYSTEM_MANUAL.doc.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Fractals | TRUE | |
| Note1 | 15m 0.5/1h 0.25/4h 0.125/d1 0.0625 | |
| Note2 | 15m 4/1H 16/4H 64/D1 256 | |
| Trading frame | 4 | |
| Manual fractal | 0.0006 | |
| P | 256 | |
| Step back | 0 | Distance between orders |
| Baby50 lines | FALSE | |
| Baby33 lines | FALSE | |
| Baby25 lines | FALSE | |
| Adjust side to side | 0 | |
| Shift up dn | 0 | Bar shift (0 = current bar) |
| Win | 1 | |
| Win2 | 1 | |
| Number of days | 10 | |
| Begin 1 | 08:00 | Hour when trading starts (server time) |
| End 1 | 11:00 | |
| Color 1 | Navy | Colour on the chart |
| Begin 2 | 14:00 | Hour when trading starts (server time) |
| End 2 | 17:00 | |
| Color 2 | Navy | Colour on the chart |
| High range | FALSE | |
| Lots | 1.0 | Trade size in lots |
| Stop loss | 40.0 | Stop loss distance |
| Take profit | 0.0 | Take profit distance |
| Trailing stop | 0.0 | Trailing stop distance or switch |
| Slippage | 5.0 | Maximum slippage allowed when opening a trade |
| Start hour of day | 0.0 | Hour when trading starts (server time) |
| Endof day | 23.0 | |
| Beginer | 64.0 | Hour when trading starts (server time) |
| Periodtotake | 64.0 | Number of bars in the calculation |
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: Grid · Pending Orders · Trailing Stop & Break-even · Time Filter · Moving Average · MT4 Indicator · MQL4 Source Code