Loading…

Mt4 Scripts

This Old Kings expert advisor (trading robot) for MetaTrader 4 is called Mt4 Scripts. In the code it works with moving averages. It raises the lot size after losses (martingale — high risk), places pending orders and can size trades from your risk. It has 40 settings, for example period slow (default 70), period fast (default 25) and period absalut (default 1440). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. Inside: 151 EA 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 Mt4 Scripts

Mt4 Scripts is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It increases the lot size after a losing trade (martingale), places pending buy/sell stop or limit orders and can size trades from your balance and risk percent. It has 40 settings, such as Period slow, Period fast and Period absalut. MQL source code included.

Files in the download: accountdetails.mq4, AllAmplitude.mq4, AllMarketData.mq4, analizBara.mq4, ap_1.01.mq4, Average Volatility script for MetaTrader 4.mq4, A_DeleteAllPending.mq4, BasketChartCreator.mq4 ….

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

Settings

SettingDefaultWhat it does
Period slow70Number of bars in the calculation
Period fast25Number of bars in the calculation
Period absalut1440Number of bars in the calculation
Shift min11Bar shift (0 = current bar)
Shift max12406-8
Shift min21Bar shift (0 = current bar)
Shift max21440Bar shift (0 = current bar)
Sleep5000
Clr hightclrBlue
Clr lowclrRed
Clr medclrGold
Name hightHLine
Name lowLLine
Name mediumMLine
Name trendTrendLine
Name fiboTrendFibo
Name hight lYear Hight Line
Name low lYear Low Line
Name medium lYear Medium Line
Name medium yMedian Year
Begin date calcD'2001.01.01'Hour when trading starts (server time)
End date calcD'2005.09.30'
Basket name#COM#Basket Chart Name
PairsAUDUSD,NZDUSD,USDCAD,EURAUD,EURNZD,EURCABasket Pairs (comma seperated)
Pairs dw +1 , +1 , -1 , -1 , -1 , -1 Directional Weights (comma seperated)
Template name0Template to load on basket chart, "0" to disable
Trade direction0Trade direction
Bo investment10Investment size
Bo expiry1Expiration in minutes
N bars50
TimeframePERIOD_W1Period or timeframe used by the calculation
Chart property valueNoneZoom Level
Change by partial name
Use old colorfalseColour on the chart
Old colorBlueColour on the chart
New colorAquaColour on the chart
Vertical linefalse
Horisontal linefalse
Trend linefalse
Trendbyangle linefalse

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: Martingale · Pending Orders · Risk & Lot Size · Moving Average · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria