Solagracia
From the Old Kings archive: Solagracia, an expert advisor (trading robot) for MetaTrader 4. In the code it works with moving averages. It places pending orders, moves the stop behind price and has a trading-hours filter. It has 32 settings, for example Hour Open (default 16), Minutes Open (default 0) and Hour Close (default 8). 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 Solagracia
Solagracia is an expert advisor (trading robot) for MetaTrader 4 based on 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 32 settings, such as Hour open, Minutes open and Hour close. MQL source code included.
Files in the download: solagracia.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 |
|---|---|---|
| Hour open | 16 | Range : 0 - 23 SBFX !!! |
| Minutes open | 0 | Range : 0 - 59 |
| Hour close | 8 | Range : 0 - 23 |
| Minutes close | 0 | Range : 0 - 59 |
| Use close hour | true | |
| Percent | 10 | Range : 0 - 100 |
| Stop percent | 30 | Range : 0 - 300 |
| Mm risk | 0.1 | Risk per trade (percent of balance) |
| Space | ||
| Expert name | ---- SolaGracia EA ---- | |
| Stop after no trades | False | |
| Is ibfx mini account | False | |
| Magic | 081006 | Magic number that tells this EA's orders apart |
| Slippage | 6 | Maximum slippage allowed when opening a trade |
| Main parameters | Volume & Trade Method | |
| Lots | 1 | Trade size in lots |
| Trailing stop | 0 | Trailing stop distance or switch |
| Take profit | 0 | Take profit distance |
| MM | true | |
| Loss max | 3200 | Maximum Loss by 1 Lot |
| Use dif buy sell | False | Percent for BUY and SELL are different |
| Buy percent | 25 | Range : 0 - 100 |
| Sell percent | 50 | Range : 0 - 100 |
| Trade period | 6 | Max days in trade |
| Break even | 0 | BreakEven Level in pips |
| Break even gap | 0 | Pips when BreakEven will be reached |
| Trade | Trade Days of Week | |
| Monday | 1 | |
| Tuesday | 1 | |
| Wednesday | 1 | |
| Thursday | 1 | |
| Friday | 1 |
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 · Moving Average · MT4 Expert Advisor · MQL4 Source Code