Charles2 1 8a 2
Charles2 1 8a 2 is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Its source code uses 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 Symbols. 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 Charles2 1 8a 2
Charles2 1 8a 2 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 Symbols. MQL source code included.
It also can size trades from your balance and risk percent.
Files in the download: Charles2_1_8a.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 |
|---|---|---|
| Comment 1 | -- Comma separated list of Symbol Pairs | Comment written on the orders |
| Comment 1a | --- must be equal to the string of your | Comment written on the orders |
| Symbols | ||
| Magic number | 3939 | Magic number that tells this EA's orders apart |
| X factor | 2 | |
| Time set | 07:32 | |
| Comment 2 | -- Balance percentage order balance and | Comment written on the orders |
| Risk percent | 10 | Risk per trade (percent of balance) |
| Comment 3 | -- Percentage of the risk for each Lot | Comment written on the orders |
| Comment 3a | --- auto-adapted to number of pairs. | Comment written on the orders |
| Risk per trade | 30 | Risk per trade (percent of balance) |
| Max allowed orders | 15 | |
| Max open hours | 0 | |
| Profit check period | 3 | Period or timeframe used by the calculation |
| Comment 4 | -- Whether or not use more strict suppo | Comment written on the orders |
| Aggressive | false | |
| Use pivots | true | |
| Comment 5 | -- Whether or not leave open profitable | Comment written on the orders |
| Fast period | 18 | Period or timeframe used by the calculation |
| Slow period | 60 | Period or timeframe used by the calculation |
| Selectivity | 14 | |
| Comment 6 | -- Fixed value if RiskPerTrade == 0 | Comment written on the orders |
| Lots | 0.01 | Trade size in lots |
| Slippage | 3 | Maximum slippage allowed when opening a trade |
| Comment 7 | -- Set to true if broker is ECN/STP nee | Comment written on the orders |
| ECN | true | |
| Margin percent | 20 | |
| Comment 8 | -- On all orders | Comment written on the orders |
| Stop loss | 0 | Stop loss distance |
| Trail start | 25 | Trailing stop distance or switch |
| Trailing amount | 5 | Trailing stop distance or switch |
| Take profit | 25 | Take profit distance |
| Comment 9 | -- Whether or not manage ALL opened ord | Comment written on the orders |
| All orders | true | |
| Comment 10 | -- Whether or not compute the Profit on | Comment written on the orders |
| All symbols | false | |
| Comment 11 | -- Log to console or to a file | Comment written on the orders |
| Log to file | false | |
| Comment 12 | -- On init delete all pending orders | Comment written on the orders |
| Init reset orders | true |
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: Pending Orders · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · RSI · Moving Average · MT4 Expert Advisor · MQL4 Source Code