Loading…

Charles2.1.5

From the Old Kings archive: Charles2.1.5, an expert advisor (trading robot) for MetaTrader 4. In the code it works with RSI and moving averages. It places pending orders, moves the stop behind price and has a trading-hours filter. It has 40 settings, for example Comment 1 (default -- Comma separated list), Comment 1a (default --- must be equal to th) and Magic Number (default 3939). 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 Charles2.1.5

Charles2.1.5 is an expert advisor (trading robot) for MetaTrader 4 based on RSI and Moving Average. It places pending buy/sell stop or limit orders, moves the stop loss behind price (trailing stop / break-even) and trades only in the hours you set (time filter). It has 40 settings, such as Comment 1, Comment 1a and Magic number. MQL source code included.

It also can size trades from your balance and risk percent.

Files in the download: Charles2_1_5.mq4.

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

Settings

SettingDefaultWhat it does
Comment 1 -- Comma separated list of Symbol PairsComment written on the orders
Comment 1a --- must be equal to the string of yourComment written on the orders
Magic number3939Magic number that tells this EA's orders apart
X factor1.8
Time set07:32
Comment 2 -- Balance percentage order balance andComment written on the orders
Risk percent5Risk per trade (percent of balance)
Comment 3 -- Percentage of the risk for each LotComment written on the orders
Comment 3a --- auto-adapted to number of pairs.Comment written on the orders
Risk per trade10Risk per trade (percent of balance)
Max allowed orders15
Max open hours0
Profit check period3Period or timeframe used by the calculation
Comment 4 -- Whether or not use more strict suppoComment written on the orders
Aggressivefalse
Use pivotstrue
Comment 5 -- Whether or not leave open profitableComment written on the orders
Fast period18Period or timeframe used by the calculation
Slow period60Period or timeframe used by the calculation
Selectivity14
Comment 6 -- Fixed value if RiskPerTrade == 0Comment written on the orders
Lots0.01Trade size in lots
Slippage3Maximum slippage allowed when opening a trade
Comment 7 -- Set to true if broker is ECN/STP neeComment written on the orders
ECNtrue
Margin percent20
Comment 8 -- On all ordersComment written on the orders
Stop loss0Stop loss distance
Trail start30Trailing stop distance or switch
Trailing amount10Trailing stop distance or switch
Take profit20Take profit distance
Comment 9 -- Whether or not manage ALL opened ordComment written on the orders
All orderstrue
Comment 10 -- Whether or not compute the Profit onComment written on the orders
All symbolstrue
Comment 11 -- Log to console or to a fileComment written on the orders
Log to filefalse
Comment 12 -- On init delete all pending ordersComment written on the orders
Init reset orderstrue
Comment 13 -- Trading Time ManagementComment written on the orders

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

Old Kings — classic MT4 & MT5 collection · PolyMaria