My10trend
From the Old Kings archive: My10trend, an expert advisor (trading robot) for MetaTrader 4. In the code it works with an oscillator. It works with a grid of orders, places pending orders and moves the stop behind price. It has 37 settings, for example Lot (default 0.1), Percent (default 30) and Stop Loss (default 400). 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 · v1.0 · Free
About My10trend
My10trend is an expert advisor (trading robot) for MetaTrader 4 based on Oscillator. It opens a grid of orders at fixed price steps, places pending buy/sell stop or limit orders and moves the stop loss behind price (trailing stop / break-even). It has 37 settings, such as Lot, Percent and Stop loss. MQL source code included.
It also trades only in the hours you set (time filter) and can size trades from your balance and risk percent.
Files in the download: my10trend.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 |
|---|---|---|
| Lot | 0.1 | Trade size in lots |
| Percent | 30 | |
| Stop loss | 400 | Stop loss distance |
| Take profit | 1500 | Take profit distance |
| Slippage | 10 | Maximum slippage allowed when opening a trade |
| Otstup | 10 | |
| Use trailing | false | Trailing stop distance or switch |
| Trailing stop loss | 20 | Stop loss distance |
| Trailing step | 10 | Trailing stop distance or switch |
| Tsl bars | -1 | |
| Time to death | 0 | |
| Max deals | 10 | |
| Param | ---------------------------------------- | |
| Wpr period | 20 | Period or timeframe used by the calculation |
| Rsi period | 7 | Period or timeframe used by the calculation |
| Ma period | 60 | Period or timeframe used by the calculation |
| Bb period | 20 | Period or timeframe used by the calculation |
| Envelopes period | 10 | Period or timeframe used by the calculation |
| Time shift | 0 | Bar shift (0 = current bar) |
| Start hour | 23 | Hour when trading starts (server time) |
| End hour | 23 | Hour when trading stops (server time) |
| Friday last work hour | 20 | |
| Monday first work hour | 6 | |
| Work only selected hours | false | |
| Hour percent | >0 - fixed lot, 0 - not work, <0 - perce | |
| Final trailing stop | 20 | Trailing stop distance or switch |
| Pip step | 50 | Distance between orders |
| Bar step | 5 | Distance between orders |
| Increment | 1 | |
| Pip step increment | 1 | Distance between orders |
| Time frames | -- 0, 1, 5, 15, 30, 60-H1, 240-H4, 1440- | Period or timeframe used by the calculation |
| Time frame | 60 | Period or timeframe used by the calculation |
| Protect sl | true | |
| Not open if big stop level | false | |
| Comment | My4 | Comment written on the orders |
| Magic number | 8877667 | Magic number that tells this EA's orders apart |
| Gv | LDTime |
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: Grid · Pending Orders · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · Oscillator · MT4 Expert Advisor · MQL4 Source Code