Loading…

Triple MA Crossover EA

Triple MA Crossover EA — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Judging by its name, it is built around moving averages. Its source code uses moving averages. It moves the stop behind price and can size trades from your risk. It has 34 settings, for example Magic Number (default 3333), Account Is Mini (default false) and Money Management (default false). 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 Triple MA Crossover EA

Triple MA Crossover EA 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 34 settings, such as Magic number, Account is mini and Money management. MQL source code included.

Files in the download: TripleMA_Crossover_EA.mq4.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
Magic number3333Magic number that tells this EA's orders apart
Account is minifalseChange to true if trading mini account
Money managementfalseChange to false to shutdown money management controls.
Trade size percent5Change to whatever percent of equity you wish to risk.
Lots10standard lot size.
Max lots100
Fast ma mode00=sma, 1=ema, 2=smma, 3=lwma , 4=LSMA
Fast ma period9Period or timeframe used by the calculation
Fast ma shift0Bar shift (0 = current bar)
Fast ma applied price00=close, 1=open, 2=high, 3=low, 4=median((h+l/2)), 5=typical((h+l+c)/3), 6=weighted((h+l+c+c)/4)
Middle ma mode00=sma, 1=ema, 2=smma, 3=lwma, 4=LSMA
Middle ma period14Period or timeframe used by the calculation
Middle ma shift0Bar shift (0 = current bar)
Middle ma applied price00=close, 1=open, 2=high, 3=low, 4=median((h+l/2)), 5=typical((h+l+c)/3), 6=weighted((h+l+c+c)/4)
Slow ma mode00=sma, 1=ema, 2=smma, 3=lwma, 4=LSMA
Slow ma period29Period or timeframe used by the calculation
Slow ma shift0Bar shift (0 = current bar)
Slow ma applied price00=close, 1=open, 2=high, 3=low, 4=median((h+l/2)), 5=typical((h+l+c)/3), 6=weighted((h+l+c+c)/4)
Fast middle spread0Maximum spread allowed to trade
Middle slow spread0Maximum spread allowed to trade
Signal candle1Which candle to use for signal - 0 for current, 1 for prior
Stop loss0Maximum pips willing to lose per position.
Use trailing stopfalseTrailing stop distance or switch
Trailing stop type3Type 1 moves stop immediately, Type 2 waits til value of TS is reached
Trailing stop40Change to whatever number of pips you wish to trail your position with.
Tr stop level 120Type 3 first level pip gain
Trailing stop120Move Stop to Breakeven
Tr stop level 230Type 3 second level pip gain
Trailing stop220Move stop to lock is profit
Tr stop level 350type 3 third level pip gain
Trailing stop320Move stop and trail from there
Take profit0Maximum profit level achieved.
Margincutoff800Expert will stop trading if equity level decreases to that level.
Slippage10Possible fix for not getting closed

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: Moving Average · Trailing Stop & Break-even · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria