Divergence Trader is a MetaTrader 4 Expert Advisor source file. Static analysis documents Moving Average, Trailing Stop, Break Even, 17 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:
init,deinit,start
Detected code components
- Moving Average
- Trailing Stop
- Break Even
- Session or Time Filter
- File Access
Input parameters
| Parameter | Type | Default | Code comment |
|---|---|---|---|
Lots |
double | 0.1 |
how many lots to trade at a time |
Slippage |
int | 2 |
how many pips of slippage can you tolorate |
Fast_Period |
int | 7 |
|
Fast_Price |
int | PRICE_OPEN |
|
Slow_Period |
int | 88 |
|
Slow_Price |
int | PRICE_OPEN |
|
DVBuySell |
double | 0.0011 |
|
DVStayOut |
double | 0.0079 |
|
ProfitMade |
double | 0 |
how much money do you expect to make |
LossLimit |
double | 0 |
how much loss can you tolorate |
TrailStop |
double | 9999 |
trailing stop (999=no trailing stop) |
PLBreakEven |
int | 9999 |
set break even when this many pips are made (999=off) |
StartHour |
int | 0 |
your local time to start making trades |
StopHour |
int | 24 |
your local time to stop making trades |
BasketProfit |
int | 75 |
if equity reaches this level, close trades |
BasketLoss |
int | 9999 |
if equity reaches this negative level, close trades |
FileData |
bool | false |
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.
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 Divergence Trader?
Divergence Trader is a MetaTrader 4 Expert Advisor source file. Static analysis documents Moving Average, Trailing Stop, Break Even, 17 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.
- Trend Ghost???? – Parameters and setup
- Kamikaze Trend Sniper v3 – Parameters and setup
- AI TradingVision GPX EA – Parameters and setup
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

