Bonsai Half Trend 1.0 Full
Bonsai Half Trend 1.0 Full is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Its name points to following the trend. Its source code uses moving averages and a trend filter. It moves the stop behind price, has a trading-hours filter and can size trades from your risk. It has 25 settings, for example Enable Time Filter (default false), Start Hour (default 00:00) and End Hour (default 23:00). 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 Bonsai Half Trend 1.0 Full
Bonsai Half Trend 1.0 Full is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average and Trend. It moves the stop loss behind price (trailing stop / break-even), trades only in the hours you set (time filter) and can size trades from your balance and risk percent. It has 25 settings, such as Enable time filter, Start hour and End hour. MQL source code included.
Files in the download: Bonsai Half Trend 1.0 Full.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 |
|---|---|---|
| Enable time filter | false | |
| Start hour | 00:00 | Hour when trading starts (server time) |
| End hour | 23:00 | Hour when trading stops (server time) |
| Moving average | Moving_Average____________ | |
| Ma period | 50 | Period or timeframe used by the calculation |
| Ma method | 0 | |
| Ma applyto | PRICE_CLOSE | |
| Half trend settings | Half_Trend_Settings____________ | |
| Amplitude | 2 | |
| Show bars | true | |
| Show arrows | true | |
| Order management | Order_Management_________________ | |
| Use close at next | true | |
| Reverse mode | false | |
| Ma filter | false | |
| Max trades | 0 | Maximum number of open trades |
| Spread | 5 | Maximum spread allowed to trade |
| Lot value | Lot_Value________________ | |
| Lots | 0.1 | Trade size in lots |
| Lots mp | 0 | |
| Takeprofit stoploss | Takeprofit_Stoploss_____________ | Stop loss distance |
| Trailing stop | Trailing _Stop______________ | Trailing stop distance or switch |
| Trailing stop | 0 | Trailing stop distance or switch |
| Trailing step | 0 | Trailing stop distance or switch |
| Magic no | 2018 | Magic number that tells this EA's orders apart |
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: Trend · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · Moving Average · MT4 Expert Advisor · MQL4 Source Code