Tfot3
From the Old Kings archive: Tfot3, an expert advisor (trading robot) for MetaTrader 4. In the code it works with moving averages and ATR. It raises the lot size after losses (martingale — high risk), moves the stop behind price and has a trading-hours filter. It has 40 settings, for example First Face (default TRUE), Second Face (default TRUE) and Market Execution (default FALSE). 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 Tfot3
Tfot3 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average and ATR. It increases the lot size after a losing trade (martingale), 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 First face, Second face and Market execution. MQL source code included.
It also can size trades from your balance and risk percent.
Files in the download: TFOT_3.1-EDU.mq4, expert_advisors_black_belt_test.gif, expert_advisors_tfot.jpg, expert_advisors_tfot_audusd-test.gif, expert_advisors_tfot_eurusd-test.gif, expert_advisors_tfot_usdcad-test.gif, TFOT-eurusd_usdcad_1999.gif, TFOT4.gif.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| First face | TRUE | |
| Second face | TRUE | |
| Market execution | FALSE | |
| Comments first | First Face | Comment written on the orders |
| Comments second | Second Face | Comment written on the orders |
| Magic first | 125566 | Magic number that tells this EA's orders apart |
| Magic second | 125563 | Magic number that tells this EA's orders apart |
| Max spread | 4.0 | Maximum spread allowed to trade |
| Slippage | 2 | Maximum slippage allowed when opening a trade |
| Gmt auto | TRUE | |
| Gmt test | 2 | |
| Doubling trade | FALSE | |
| MM | ==== MM Parameters ==== | |
| Percent all max | 100.0 | |
| Max lots or | 5.0 | |
| FFMP | ==== First Face MM Parameters ==== | |
| Lot ff | 1.0 | |
| Percent lot ff | 0.0 | |
| Lot multiplier ff | 2.0 | How much the lot size grows after a loss |
| Multiply after losing trades ff | 0 | How much the lot size grows after a loss |
| Multiply next orders ff | 2 | How much the lot size grows after a loss |
| FFSP | ==== First Face System Parameters ==== | |
| Stop loss | 150 | Stop loss distance |
| Take profit | 23 | Take profit distance |
| Smma period | 60 | Period or timeframe used by the calculation |
| Smma distance | 20 | Distance between orders |
| Wpr period | 18 | Period or timeframe used by the calculation |
| Wpr all level | 6 | |
| Wpr top level | 10 | |
| Wpr bottom level | 13 | |
| Close distance | -5 | Distance between orders |
| Ff hour1 | 21 | |
| SFMP | ==== Second Face MM Parameters ==== | |
| Lot sf | 1.0 | |
| Percent lot sf | 0.0 | |
| Lot multiplier sf | 2.0 | How much the lot size grows after a loss |
| Multiply after losing trades sf | 0 | How much the lot size grows after a loss |
| Multiply next orders sf | 2 | How much the lot size grows after a loss |
| SFSP | ==== Second Face System Parameters ==== | |
| Take profit2 | 550 | Take profit distance |
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 · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · Moving Average · ATR · MT4 Expert Advisor · MQL4 Source Code