Triple MA Crossover Expert
Triple MA Crossover Expert — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Its name points to moving averages. Its source code uses moving averages. It moves the stop behind price and can size trades from your risk. It has 27 settings, for example Account Is Mini (default true), Money Management (default true) and Trade Size Percent (default 5). 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 Triple MA Crossover Expert
Triple MA Crossover Expert is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent. It has 27 settings, such as Account is mini, Money management and Trade size percent. MQL source code included.
Files in the download: TripleMA_Crossover_expert.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 |
|---|---|---|
| Account is mini | true | Change to true if trading mini account |
| Money management | true | Change to false to shutdown money management controls. |
| Trade size percent | 5 | Change to whatever percent of equity you wish to risk. |
| Lots | 3 | standard lot size. |
| Faster mode | 0 | 0=sma, 1=ema, 2=smma, 3=lwma |
| Fast ma period | 9 | Period or timeframe used by the calculation |
| Middle mode | 0 | 0=sma, 1=ema, 2=smma, 3=lwma |
| Middle ma period | 14 | Period or timeframe used by the calculation |
| Slower mode | 0 | 0=sma, 1=ema, 2=smma, 3=lwma |
| Slow ma period | 29 | Period or timeframe used by the calculation |
| Fast middle spread | 0 | Maximum spread allowed to trade |
| Middle slow spread | 0 | Maximum spread allowed to trade |
| Signal | 1 | |
| Stop loss | 250 | Maximum pips willing to lose per position. |
| Use trailing stop | true | Trailing stop distance or switch |
| Trailing stop type | 3 | Type 1 moves stop immediately, Type 2 waits til value of TS is reached |
| Trailing stop | 40 | Change to whatever number of pips you wish to trail your position with. |
| Tr stop level 1 | 20 | Type 3 first level pip gain |
| Trailing stop1 | 20 | Move Stop to Breakeven |
| Tr stop level 2 | 30 | Type 3 second level pip gain |
| Trailing stop2 | 20 | Move stop to lock is profit |
| Tr stop level 3 | 50 | |
| Trailing stop3 | 20 | Move stop and trail from there |
| Take profit | 0 | Maximum profit level achieved. |
| Margincutoff | 800 | Expert will stop trading if equity level decreases to that level. |
| Max lots | 100 | |
| Slippage | 10 | Possible fix for not getting closed |
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 · Trailing Stop & Break-even · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code