Shafina V2 4
Shafina V2 4 is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. This copy is version 2.4. Its source code uses moving averages. It places pending orders, moves the stop behind price and has a trading-hours filter. It has 40 settings, for example Filter (default 140), Filter EU (default 130) and Filter GU (default 170). Watch it on a demo account for a while — robots can behave differently with each broker. 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 · v2 · Free
About Shafina V2 4
Shafina V2 4 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 40 settings, such as Filter, Filter eu and Filter gu. MQL source code included.
It also can size trades from your balance and risk percent and works on several symbols at once.
Files in the download: Shafina v2.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 |
|---|---|---|
| Filter | 140 | |
| Filter eu | 130 | org 140 |
| Filter gu | 170 | |
| Filter uj | 190 | |
| Magic number | 150115 | Magic number that tells this EA's orders apart |
| Trade comment | Shafina | Comment written on the orders |
| Max trades | 10 | Maximum number of open trades |
| Stop loss | 5 | this is for our BUY/SELL STOP SL 2.3 pips modify, can not put 200 pips, will lose !!! |
| No trade profit yet stop loss | 30 | 30 pips |
| In trade profit stop loss | 60 | 2.3 pips |
| Distance | 30 | not used !!! |
| No trade profit yet distance | 20 | Distance between orders |
| In trade profit distance | 30 | Distance between orders |
| Limit | 23.0 | 20 will cause order130 error |
| No trade profit yet limit | 22 | can not play with this , 20 should be ok!!! |
| In trade profit limit | 25 | |
| Use trailing step | TRUE | Trailing stop distance or switch |
| Start trailing at | 2.9 | org 2.9 meaning keep bid/ask distance by x PIPS |
| Trailing step | 0.3 | org 0.3 |
| Use set break even | TRUE | Move the stop to break-even |
| Lock pips | 0.3 | org 0.3 |
| Set break even at | 2.3 | org 2.3 |
| Min lots | 0.01 | |
| Max lots | 100000000.0 | 100000.0; |
| Risk | 10 | org 60 |
| Fixed lots | 0.01 | 0.1; |
| Use mm | TRUE | |
| Max spread plus commission | 6.3 | 6.3 ok ! |
| Max spread plus commission eu | 10.3 | 0.6 ok ! |
| Max spread plus commission gu | 10.0 | 1.0 ok ! |
| Max spread plus commission uj | 10.0 | 0.6 ok ! |
| Max spread | 6.3 | 6.3 ok ! |
| Max spread eu | 0.6 | 0.6 ok ! |
| Max spread gu | 1.0 | 1.0 ok ! |
| Max spread uj | 0.6 | 0.6 ok ! |
| Ma period | 15 | Period or timeframe used by the calculation |
| Ma method | 1 | |
| Time filter | ---------- Time Filter ---------- | |
| Start hour | 0 | Hour when trading starts (server time) |
| Start minute | 0 |
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 · Multi-Currency · Moving Average · MT4 Expert Advisor · MQL4 Source Code