Tdi Cross Ea
Tdi Cross Ea is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. It raises the lot size after losses (martingale — high risk), can hold buy and sell positions together and places pending orders. It has 35 settings, for example Ecn Broker (default false), No Hedge (default false) and Symbols Prefix. 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 Tdi Cross Ea
Tdi Cross Ea is an expert advisor (trading robot) for MetaTrader 4. It increases the lot size after a losing trade (martingale), can hold buy and sell positions at the same time (hedging) and places pending buy/sell stop or limit orders. It has 35 settings, such as Ecn broker, No hedge and Symbols prefix. MQL source code included.
It also 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.
Files in the download: tdi_cross_ea.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 |
|---|---|---|
| Ecn broker | false | |
| No hedge | false | |
| Symbols prefix | ||
| Symbols suffix | ||
| Use auto magic | true | Magic number that tells this EA's orders apart |
| Manual magic | 19283745 | Magic number that tells this EA's orders apart |
| Use automatic mm | false | |
| Allow multiple trades on bar | false | How much the lot size grows after a loss |
| Allow only one active trade | false | |
| Risk | 1.50 | Risk per trade (percent of balance) |
| Base lot | 0.1 | |
| Close on trend change | true | |
| Positions | Positions settings | |
| Take profit pips | 200 | Take profit distance |
| Stop loss pips | 50 | Stop loss distance |
| Close when profit | 0 | |
| Close when loss | 0 | |
| All symbols for profit and loss | false | |
| Stop when closed all trades | false | |
| Shift | 1 | Bar shift (0 = current bar) |
| Rsi period | 13 | Period or timeframe used by the calculation |
| Rsi price | PRICE_CLOSE | |
| Rsi price line period | 13 | Period or timeframe used by the calculation |
| Rsi price line ma mode | 0 | |
| Rsi signal line period | 7 | Period or timeframe used by the calculation |
| Rsi signal line ma mode | 0 | |
| Volatility band period | 34 | Period or timeframe used by the calculation |
| Volatility band ma mode | 0 | |
| Volatility band multiplier | 1.6185 | How much the lot size grows after a loss |
| Ema trailing stop | Ema trailing stop settings (if used) | Trailing stop distance or switch |
| Use ema trailing stop | false | Trailing stop distance or switch |
| Time filter | Time filter settings | |
| Other | ||
| Allowed slippage | 0 | Maximum slippage allowed when opening a trade |
| Show messages | false |
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: Martingale · Hedging · Pending Orders · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code