TSD V1x MT4 HDB V10
From the Old Kings archive: TSD V1x MT4 HDB V10, an expert advisor (trading robot) for MetaTrader 4. The file name marks it as version 10. In the code it works with MACD and an oscillator. It places pending orders, moves the stop behind price and trades breakouts. It has 22 settings, for example Magic Number (default 7000), Name (default TDS-v1x-MT4-HDB-v10) and Lots (default 1.0). 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 · v1x · Free
About TSD V1x MT4 HDB V10
TSD V1x MT4 HDB V10 is an expert advisor (trading robot) for MetaTrader 4 based on MACD and Oscillator. It places pending buy/sell stop or limit orders, moves the stop loss behind price (trailing stop / break-even) and trades breakouts. It has 22 settings, such as Magic number, Name and Lots. MQL source code included.
Files in the download: TSD-v1x-MT4-HDB-v10.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 |
|---|---|---|
| Magic number | 7000 | Magic number of the trades. must be unique to identify |
| Name | TDS-v1x-MT4-HDB-v10 | name of EA to put in order commet |
| Lots | 1.0 | Trade size in lots |
| Take profit | 100 | Take profit distance |
| Stoploss | 0 | Stop loss distance |
| Trailing stop | 60 | Trailing stop distance or switch |
| Slippage | 5 | Maximum slippage allowed when opening a trade |
| Start year | 2005 | in back testing, blocks trades before this year |
| MM | 0,Leverage=1,AcctSize=10000 | MM, etc. is not implemented |
| Long period | PERIOD_W1 | this is the time constant for the weekly variables |
| Short period | PERIOD_D1 | this is the time constant for the daily variables |
| Breakout period | PERIOD_D1 | for the high / low used for buy / sell stops |
| Tsd long method | 1 | 0 = MACD, 1 = OsMA, 2 = Williams, 3 = Force |
| Tsd short method | 3 | 0 = MACD, 1 = OsMA, 2 = Williams, 3 = Force |
| Williams h | -25 | Williams high limit |
| Williams l | -75 | Williams low limit |
| Williams p | 24 | Williams period for short time frame entry |
| Force p | 2 | Force period for short time frame entry |
| Long p1 | 12 | Oscillator P1 for long time frame direction |
| Long p2 | 26 | Oscillator P2 for long time frame direction |
| Long p3 | 9 | Oscillator P3 for long time frame direction |
| Pips from current | 16 | minimum distance between current price and stop order |
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 · Breakout · MACD · Oscillator · MT4 Expert Advisor · MQL4 Source Code