GLFX is a MetaTrader 4 Expert Advisor source file. Static analysis documents Moving Average, RSI, Custom Indicator, 192 exposed input declarations, and 0 include dependencies.
Source-code analysis only. No backtest or live-performance claim is provided.
Source code overview
- Platform: MT4
- Resource type: Expert Advisor
- File format: .mq4
- Event handlers:
OnInit,init,deinit,start
Detected code components
- Moving Average
- RSI
- Custom Indicator
- Scalping
- Trend
- Trailing Stop
- Session or Time Filter
- Risk or Lot Sizing
- File Access
Input parameters
| Parameter | Type | Default | Code comment |
|---|---|---|---|
COM_TMT |
string | "#-# Trade Settings" |
|
TMT_MaxCntTrades_1account |
int | 5 |
allow this amount of open trade at the same account and within all EAs |
TMT_MaxCntTrades_1EA |
int | 1 |
allow this amount of open trade at the same time and in the same EA |
TMT_MaxInDirection |
int | 1 |
allow this amount of open trade at the same direction and in the same EA |
TMT_TimeShiftOrder |
int | 0 |
amount of seconds must pass to allow opening a new trade after a last open trade, active when TMT_MaxCntTrades_1EA>1 |
TMT_SignalsRepeat |
int | 1 |
to open new trade, wait for confirmation repeated TMT_SignalsRepeat *times |
TMT_SignalsReset |
bool | true |
if true, open only in case of a explicit consequence signals without interrupt |
TMT_Currency |
string | "EURUSD" |
Currency pair to be traded |
TMT_Period |
string | "M15" |
TimeFrame, use the labels from the MT4 buttons |
TMT_Slippage |
int | 10 |
acceptable slippage |
TMT_TP |
int | 308 |
Take Profit in ticks, it can move higher if EMT_ExitWithTS_On =true; |
TMT_SL |
int | 290 |
Stop Loss in ticks |
TMT_TPfromSL_1On |
bool | false |
count TP from SL as TP=SL+TMT_ADDtoSLforTP |
TMT_ADDtoSLforTP |
int | 18 |
when f.e.=100 then TP=SL+100 |
COM_MMT1 |
string | "***********************************************************************" |
|
COM_MMT2 |
string | "#-# Money Management" |
|
MMT_Lots |
double | 0.1 |
use this LOT size, money management will override setting |
MMT_MinLot |
double | 0.01 |
Set to be micro safe by default |
MMT_MaxLot |
double | 2.0 |
Set to previous max value by default |
MMT_UseMManagement_On |
bool | false |
Money management for lot sizing |
MMT_MaxRisk |
double | 0.05 |
Percentage of FreeMargin for trade |
MMT_DecreaseLots_1On |
bool | false |
use decrease factor , when false then is automaticly set on 100% value |
MMT_DecrLotsPerc |
string | "080050010" |
9 digit number, 3 digits per subsequent loss 080050010= 080% 050% 010% |
COM_MMC1 |
string | "***********************************************************************" |
|
COM_MMC2 |
string | "#-# Money Management- LOT confirmation signals" |
|
MMC_IncreseFactor |
double | 2 |
allows to increase lot size if signals are confirmed, increse calculated LOT size multiplied with this coeficient |
MMC_MA_HF_On |
bool | false |
moving average on a higher frame, follows trend, uses SGE_MA_HF_On settings |
MMC_RSI_HF_On |
bool | false |
RSI on a higher frame, uses SGE_RSI_HF_On settings |
COM_SMT |
string | "#-# Set Management" |
|
SMT_ProveSets |
bool | false |
you will use this function when you are looking for the second set from results of the first optimalization |
SMT_NextSet |
int | 0 |
number of set readed from the file Sets-Symbol-Period.csv |
SMT_SetCount |
int | 0 |
how many sets are within Optim file, if you leave =0 then PC finds alone but it takes more time |
COM_EMS1 |
string | "***********************************************************************" |
|
COM_EMS2 |
string | "#-# Exit Management stategies" |
|
EMT_DecreaseTP_On |
bool | false |
allow to decrease Take Profit value if a counter trend is recognized |
EMT_ExitWithTS_On |
bool | false |
enable static trailing stops |
EMT_RSI_HF_On |
bool | false |
close order if a counter trend is recognized, used SGE_MultiCurr_1MA_On |
EMT_MA_HF_On |
bool | false |
close order if a counter trend is recognized, used SGE_RSI_HF_On |
EMT_CheckMainTrend |
bool | false |
if a trade is going agains trend set trailing stop, using FTE_FolMainTrend_On |
EMT_RecrossClose |
bool | false |
close a profit ticket in case of crossing open price x times |
Dependencies and package notes
- No include dependency was detected.
The downloadable derivative replaces non-runtime external URLs and contact details with the B123 site URL. Functional runtime endpoints remain unchanged to avoid breaking code.
Compilation and first test
- Place the source and required dependencies in the matching MetaTrader data folder.
- Compile it in MetaEditor and resolve every error before use.
- Inspect the inputs and code risks, then test only on a demo account or isolated chart.
Code and operational risks
- The code accesses files in the MetaTrader sandbox. Inspect filenames, read/write behavior, and retained data before use.
- The source contains risk or lot-sizing logic. Confirm defaults against account size, symbol specifications, and maximum exposure.
- The source references custom-indicator logic. Confirm every required indicator file is installed before compilation or testing.
Download access
Registration and sign-in are required. WooCommerce grants the private file through a zero-total order. Each account may initially claim 3 distinct free source products per site day.
Questions
What is GLFX?
GLFX is a MetaTrader 4 Expert Advisor source file. Static analysis documents Moving Average, RSI, Custom Indicator, 192 exposed input declarations, and 0 include dependencies.
Does this source include verified performance results?
No. This page is based on static source-code analysis and does not provide a backtest, live result, profit, win-rate, or drawdown claim.
What is required before compiling this file?
Place the source in the matching MetaTrader folder and compile it in an isolated MetaEditor data folder before use.
Why are some external URLs retained in the code?
Only detected functional runtime endpoints are retained to avoid breaking WebRequest or network behavior. Non-runtime URLs and contact details are replaced with the B123 site URL.
Do I need an account to download the source?
Yes. Registration and sign-in are required. WooCommerce grants the private download through a zero-total order, with an initial limit of 3 distinct free source products per site day.
Need a ready-to-use EA instead of source code?
This free download is useful when you want editable MT4 Expert Advisor source code. If you want a cleaner ready-to-use path, compare it with the paid BBTrading products that already include private delivery, setup notes, and backtest evidence where available.
Paid BBTrading alternatives to compare
These products are selected by platform, detected code signals, and available catalog evidence. They are comparison options, not a claim that they use identical logic.
- Mon Scalper EA – Profitable backtest
- CHERMA EA V5.1 MT4 – Profitable backtest
- LENA Scalp EA – Profitable backtest
Want this source checked or fixed?
Diagnostic status: compile_not_run. If the file does not compile, has missing dependencies, or behaves differently on your broker, use the page details when contacting B123/BBTrading support. The free source is a starting point; fixed, compiled, or backtested alternatives may save time.
Common reasons a free source may need work
- missing MQH include files or custom indicators
- legacy MQL syntax written for an older compiler
- broker-specific symbols, digits, spreads, or execution modes
- inputs that need risk review before any demo test



