Re: MT5 Expert Advisors (EA)
23
Use this one. This one is better. That "MIDAS HAWK EA" sucks.
Run (XAUUSD, M5, 2026.01.01–2026.03.31, Model 0 Every tick, $1,000, 1:100):
+$13,193.80
net profit (691 trades,
98.26% win rate
/ 679W / 12L, PF 13.19, max equity DD $209.70 / 2.40%) —
Run (XAUUSD, M5, 2026.01.01–2026.03.31, Model 0 Every tick, $1,000, 1:100):
+$13,193.80
net profit (691 trades,
98.26% win rate
/ 679W / 12L, PF 13.19, max equity DD $209.70 / 2.40%) —
Re: MT5 Expert Advisors (EA)
24Banzai wrote: Sat Nov 28, 2026 4:45 pm ApexRegimeEA.png
Use this one. This one is better. That "MIDAS HAWK EA" sucks.
Run (XAUUSD, M5, 2026.01.01–2026.03.31, Model 0 Every tick, $1,000, 1:100):
+$13,193.80
net profit (691 trades,
98.26% win rate
/ 679W / 12L, PF 13.19, max equity DD $209.70 / 2.40%) —
Scalping the Century TimeFrame since 1999
Re: MT5 Expert Advisors (EA)
25Ekspert: ApexRegimeEABanzai wrote: Sat Nov 28, 2026 4:45 pm ApexRegimeEA.png
Use this one. This one is better. That "MIDAS HAWK EA" sucks.
Run (XAUUSD, M5, 2026.01.01–2026.03.31, Model 0 Every tick, $1,000, 1:100):
+$13,193.80
net profit (691 trades,
98.26% win rate
/ 679W / 12L, PF 13.19, max equity DD $209.70 / 2.40%) —
Instrument: GOLD
Okres: M5 (2025.01.16 - 2026.11.28) 1:33
Re: MT5 Expert Advisors (EA)
26"Model 0" is not an EA setting — it is MetaTrader 5's internal number for the Every tick option in the Strategy Tester.
In MT5's menu, you won't see the words "Model 0"; you will see Every tick.
Here is the quick translation of MT5's Modeling list:
Step-by-Step Guide
1. Install the files (no extra library files needed):
In MetaTrader 5, click File -> Open Data Folder.
Copy ApexRegimeEA.ex5 into MQL5\Experts\.
(Optional) Copy ApexRegimeEA.set into MQL5\Profiles\Tester\.
Back in MT5, open the Navigator panel (Ctrl+N), right-click Expert Advisors, and click Refresh.
2. Open Strategy Tester:
In MT5's menu, you won't see the words "Model 0"; you will see Every tick.
Here is the quick translation of MT5's Modeling list:
- Model 0 = Every tick (MT5 simulates smooth ticks inside each 1-minute bar)
- Model 1 = 1 minute OHLC (uses only Open/High/Low/Close of each 1-minute bar)
- Model 2 = Open prices only
- Model 3 = Math calculations
- Model 4 = Every tick based on real ticks (uses real historical broker ticks, if available)
Step-by-Step Guide
1. Install the files (no extra library files needed):
In MetaTrader 5, click File -> Open Data Folder.
Copy ApexRegimeEA.ex5 into MQL5\Experts\.
(Optional) Copy ApexRegimeEA.set into MQL5\Profiles\Tester\.
Back in MT5, open the Navigator panel (Ctrl+N), right-click Expert Advisors, and click Refresh.
2. Open Strategy Tester:
- Press Ctrl+R (or click View -> Strategy Tester).
- Click Single (to run a single test, not Optimization).
- Expert: ApexRegimeEA.ex5
- Symbol: XAUUSD (or your broker's exact Gold name, e.g., XAUUSDm, GOLD)
- Timeframe: M5
- Date: Custom period -> e.g. 2026.01.01 to 2026.03.31 (or 2025.01.16 to 2026.11.28)
- Forward: No
- Delays: Zero latency / No delay
- Modeling: Every tick (this is "Model 0")
- Deposit: 1000 USD
- Leverage: 1:100
- Optimization: Disabled
- Click the Inputs tab, right-click anywhere inside it, and choose Defaults (or Load -> select ApexRegimeEA.set).
- Click the green Start button at the bottom right.
- Switch to the Graph or Backtest tab to see the curve and results (a 3-month test usually finishes in under a minute; ~22 months takes a couple of minutes).
Every tick (Model 0) uses MT5-generated synthetic ticks inside bars, which is why the tight default micro-lock (inp_MinProfitLockPts = 10.0) achieves 95%–98% win rates there. Before trading real money, they should also test with Every tick based on real ticks or on a demo account, or disable/widen inp_MinProfitLockPts (e.g., set it to 0) and use smaller lot sizes.
Re: MT5 Expert Advisors (EA)
27+$219,178.73
Please use this new version.
GOLD, M5 chart, from 2025.01.16 to 2026.11.28
I added in some institutional risk intelligences including
VaR, CVaR, and Kelly Criterion
Re: MT5 Expert Advisors (EA)
28VaR, CVaR, and Kelly Criterion
1. VaR — Value at Risk
VaR is an estimate of a loss limit over a chosen time period and confidence level. It answers: “Under the model, how much could I lose before losses become unusually large?”
2. CVaR — Conditional Value at Risk
CVaR looks beyond the VaR warning line. It estimates the average loss in the worst tail of outcomes. It answers: “When losses are among the worst cases, how bad are they on average?” CVaR is also commonly called Expected Shortfall (ES).
3. Kelly Criterion — How much should I risk?
The Kelly Criterion is a mathematical method for estimating what fraction of your capital to risk when you have a repeatable edge. Its goal is to maximize long-run growth over many bets or trades.
As you can see, new stuffs are out everyday.
I didn't know Kelly Criterion was developed in 1956 by John L. Kelly Jr. at Bell Labs.
It's not over yet. In the future, we will add in Artificial Intelligence (A.I.).
Re: MT5 Expert Advisors (EA)
29Hello, sir. If you want to start at 0.01€, how can we set that up?
Great work!
Great work!
Re: MT5 Expert Advisors (EA)
30Hi Banzai,
**Subject: BUY Position SL/TP Calculation – Bid/Ask Price Adjustment**
I have reviewed the SL and TP calculation in the `ComputeSLAndTPs()` function and noticed a potential issue with how BUY positions are handled.
Currently, both SL and TP levels are calculated using the BID price as the reference price, regardless of trade direction.
For BUY positions, however, the actual execution price is ASK, while the position is closed using BID. This creates an inconsistency between the calculated SL/TP distances and the actual entry price.
**I suggest the following correction:**
1. Pass both `bid` and `ask` prices to `ComputeSLAndTPs()`.
2. For BUY positions (`dir == 1`), calculate all SL and TP levels using ASK as the reference price:
- SL = ASK − SL distance
- TP1–TP5 = ASK + calculated TP distances
3. For SELL positions (`dir == -1`), keep the existing BID-based calculations unchanged:
- SL = BID + SL distance
- TP1–TP5 = BID − calculated TP distances
**Why is this correction important?**
- The BUY stop-loss distance should be measured from the actual entry price (ASK), not BID.
- The BUY take-profit levels should also be calculated relative to the actual entry price (ASK), so the intended reward distance is preserved.
- This ensures consistency between entry price, SL distance, TP distances and position sizing.
- It avoids unintentionally reducing the effective reward-to-risk ratio for BUY trades because of the spread.
The change should apply to both `TP_FIXED_R` and `TP_DYNAMIC_LADDER` modes, without modifying the existing ATR calculations, structure logic, TP multipliers, Risk Intelligence or signal-generation logic.
**In short:** use ASK as the price reference for all BUY SL/TP calculations and retain BID as the reference for SELL calculations.
This is a price-reference correction, not a change to the EA's trading strategy.
**Subject: BUY Position SL/TP Calculation – Bid/Ask Price Adjustment**
I have reviewed the SL and TP calculation in the `ComputeSLAndTPs()` function and noticed a potential issue with how BUY positions are handled.
Currently, both SL and TP levels are calculated using the BID price as the reference price, regardless of trade direction.
For BUY positions, however, the actual execution price is ASK, while the position is closed using BID. This creates an inconsistency between the calculated SL/TP distances and the actual entry price.
**I suggest the following correction:**
1. Pass both `bid` and `ask` prices to `ComputeSLAndTPs()`.
2. For BUY positions (`dir == 1`), calculate all SL and TP levels using ASK as the reference price:
- SL = ASK − SL distance
- TP1–TP5 = ASK + calculated TP distances
3. For SELL positions (`dir == -1`), keep the existing BID-based calculations unchanged:
- SL = BID + SL distance
- TP1–TP5 = BID − calculated TP distances
**Why is this correction important?**
- The BUY stop-loss distance should be measured from the actual entry price (ASK), not BID.
- The BUY take-profit levels should also be calculated relative to the actual entry price (ASK), so the intended reward distance is preserved.
- This ensures consistency between entry price, SL distance, TP distances and position sizing.
- It avoids unintentionally reducing the effective reward-to-risk ratio for BUY trades because of the spread.
The change should apply to both `TP_FIXED_R` and `TP_DYNAMIC_LADDER` modes, without modifying the existing ATR calculations, structure logic, TP multipliers, Risk Intelligence or signal-generation logic.
**In short:** use ASK as the price reference for all BUY SL/TP calculations and retain BID as the reference for SELL calculations.
This is a price-reference correction, not a change to the EA's trading strategy.