Loading…

TFX V1

This Old Kings expert advisor (trading robot) for MetaTrader 4 is called TFX V1. The file name marks it as version 1. In the code it works with moving averages. It moves the stop behind price, can size trades from your risk and has a news filter. It has 40 settings, for example Start Lot Size (default 0.1), Lot Size Increment (default 0.1) and Long Short Balance (default false). 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 · Free

About TFX V1

TFX V1 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It moves the stop loss behind price (trailing stop / break-even), can size trades from your balance and risk percent and has a news filter. It has 40 settings, such as Start lot size, Lot size increment and Long short balance. MQL source code included.

It also works on several symbols at once.

Files in the download: TFX v1_8.mq4.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
Start lot size0.1starting lot size for cycle
Lot size increment0.1Additional orders will increase by this amount
Long short balancefalsewill balance long and short order lots + add Balance_Weight if trend changes
Balance weight0.1amount over balanced long and short lot sizes you want to increase by with the trend
Choose own progressionfalseselect true if you want te enter your own progression lot sizes below
Trade 10Enter in your own trade progression lot sizes
Trade 20
Trade 30
Trade 40
Trade 50
Trade 60
Trade 70
Trade 80
Trade 90
Trade 100
Trade 110
Trade 120
Trade 130
Trade 140
Trade 150
Trade 160
Trade 170
Trade 180
Trade 190
Trade 200
Max trades100maximum number of trades allowed
Close all maxfalseselect true if you want ALL orders to close if Max_Trades is hit
Pyramidtrueif true trades with trend, if false trades against trend
Auto restarttrueset to true if you want EA to re-start after each cycle
Use ma entryfalseselect true if you want moving average to decide starting direction
Next trade20next trade pip increment if Use_MA_Entry =true (will trade this many pips above OR below last order)
Ma period7moving average period for calculation
Ma timeframe60timeframe used for MA calculation, 1m=1, 5m=5, 15m=15, 30m=30, 1hr=60, 4hr=240, 1d=1440
Use kayvan methodtrueselect to use kayvan's method
Bar timeframe60Bar Timeframe used to look back on, 1m=1, 5m=5, 15m=15, 30m=30, 1hr=60, 4hr=240, 1d=1440
Bars look back1number of bars looked back at from current bar for high and low
Entry lag long0number of pips above high to enter trade
Entry lag short0number of pips below low to enter trade
Last entry filterfalseif true next high must be greater than last high, next low less than last low
Use trailing stoptrueselect true to use a trailing stop based on total $amount

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Trailing Stop & Break-even · Risk & Lot Size · News Trading · Multi-Currency · Moving Average · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria