The botfathers SMC
- Uzmanlar
-
Kenneth Mwangi Chege
MQL5 kullanarak özel Expert Advisor (EA) geliştirme konusunda uzmanım. İşlem stratejilerini, açıkça tanımlanmış kurallara ve yapılandırılabilir parametrelere sahip otomatik işlem sistemlerine dönüştürüyorum. - Sürüm: 1.10
- Etkinleştirmeler: 5
THE BOTFATHERS — S.M.C MODEL
1. Market structure identification
The EA analyses historical price data on a user-selected signal timeframe to identify confirmed swing highs and swing lows.
It uses a configurable swing-confirmation length to distinguish meaningful price turning points from ordinary market fluctuations.
A swing high represents a confirmed local price high.
A swing low represents a confirmed local price low.
The EA tracks the latest confirmed swing levels as potential structure-break points.
The default swing-confirmation length is 5 bars, and the EA scans up to 250 historical bars by default.
2. Break of structure confirmation
The EA looks for a candle close beyond the most recently confirmed swing level.
Bullish structure break (buy signal):
Price closes above the latest confirmed swing high.
The previous completed candle closed at or below that swing high.
This confirms an upward break of the tracked structure level.
Bearish structure break (sell signal):
Price closes below the latest confirmed swing low.
The previous completed candle closed at or above that swing low.
This confirms a downward break of the tracked structure level.
The EA uses completed candles for signal confirmation rather than relying on an unfinished candle.
3. Trend confirmation using EMAs
The default configuration uses two Exponential Moving Averages to filter trades in line with the prevailing trend.
Buy confirmation: The 20-period EMA must be above the 50-period EMA.
Sell confirmation: The 20-period EMA must be below the 50-period EMA.
The EMA filter can be enabled or disabled through the EA inputs, and both periods are configurable.
4. RSI confirmation (optional)
The EA also includes an optional RSI filter.
When enabled:
Buy trades require RSI to be at or above the configured buy threshold (default 50).
Sell trades require RSI to be at or below the configured sell threshold (default 50).
RSI confirmation is disabled by default, allowing traders to use structure breaks and EMA alignment without an additional momentum filter.
5. Trade execution
Once a valid structure-break signal passes the enabled filters, the EA checks its trading conditions before placing an order.
These include:
Selected trading session.
Maximum permitted spread.
Existing open position for the same symbol and magic number.
Cooldown restrictions.
Broker trading availability in the patched version.
The EA supports London, New York, custom and unrestricted session selection. Session hours are based on broker/server time.
6. Stop-loss and take-profit management
The EA places a stop-loss at a configurable fixed distance from the entry price.
The default stop-loss distance is 300 points.
Two take-profit methods are available:
Risk-to-reward method: Target is calculated using a configurable multiple of the stop-loss distance. Default: 2R.
Fixed-points method: Target is calculated using a specified number of points. Default: 600 points.
7. Automatic break-even protection
The EA includes an optional break-even management feature.
By default, when the trade reaches 1R in floating profit, the stop-loss is moved to the entry price plus a small offset for buy trades, or entry price minus the offset for sell trades.
The default offset is 2 points.
This feature is designed to protect capital once a trade has moved sufficiently in the intended direction.
8. Risk and position sizing
The EA supports two position-sizing methods:
Percentage of equity: Calculates trade volume based on the configured percentage of account equity and the stop-loss distance. Default risk: 1%.
Fixed lot size: Uses a manually specified trading volume.
A maximum lot-size restriction is also available.
The patched version adds an additional margin check that can reduce the requested volume to fit available free margin or skip the trade when the minimum lot is unaffordable.
9. Trade frequency and cooldown
The EA is designed to avoid repeatedly entering the same market opportunity.
It includes:
One open position per symbol and EA magic number.
A configurable waiting period after a trade closes.
An optional additional cooldown measured in completed signal-timeframe bars.
The default cooldown after closing a trade is 30 minutes.
10. Default strategy settings
| Parameter | Default |
|---|---|
| Signal timeframe | M15 |
| Swing confirmation | 5 bars |
| Historical scan | 250 bars |
| Fast EMA | 20 |
| Slow EMA | 50 |
| RSI filter | Disabled |
| RSI period | 14 |
| Risk per trade | 1% |
| Stop-loss | 300 points |
| Take-profit | 2R |
| Break-even trigger | 1R |
| Break-even offset | 2 points |
| Maximum spread | 40 points |
| Trading session | Any |
| Cooldown | 30 minutes |
