Eagle Night Ranger
- Experts
- Giovanni Bengalis
- 버전: 1.0
- 활성화: 10
Eagle NightRanger — Night Range Scalper | MT4
Eagle NightRanger is a fully automated scalping EA designed for the Asian session and New York close (GMT 18:00–01:00). It exploits low-volatility ranges by combining a Bollinger Bands compression filter with a Williams %R momentum trigger. One position at a time. Fixed Stop Loss in the order, Take Profit managed in code. Optional breakeven, trailing stop, daily loss/profit limits and automatic Friday close are built in and disabled by default.
Strategy Logic
- Session Gate — All entry logic is restricted to GMT 18:00–01:00 (Asian markets / NY close). Exits remain active at all times. On symbols without a built-in preset the session gate is lifted and the EA trades around the clock using the chart timeframe.
- Spread Filter — If the live broker spread exceeds MaxSpread, entries are suppressed to avoid being caught by widening spreads at session transitions. On unknown symbols the effective ceiling is automatically raised to at least 150 pts for compatibility.
- Bollinger Bands Compression — BB width must fall inside a calibrated range: wide enough to confirm movement, narrow enough to confirm the market is not in breakout mode. Both bounds are tuned per symbol in the built-in preset table. On unknown symbols the BB filter is disabled so the WPR signal alone drives entries.
- Williams %R Signal — WPR below −95 triggers a BUY at Ask with a fixed SL. WPR above −5 triggers a SELL at Bid with a fixed SL. On unknown symbols thresholds are relaxed to −80 / −20. One entry per completed bar is enforced.
- Exit — WPR Reversal or Profit Target — An open BUY closes when WPR rises above −5, or when Bid has moved TakeProfit points above the entry price — whichever comes first. Mirror logic applies to SELL trades. The broker-side TP is kept at 0 so the EA manages profit exits cleanly through code.
- Breakeven & Trailing Stop (optional, default off) — Once a trade reaches BreakevenTrigger points in profit the SL is moved to entry price, then trails by TrailingStep points on every tick, locking in more profit as the trade extends.
- Daily Loss / Profit Cap (optional, default off) — Trading halts for the remainder of the GMT day when the session P&L drops below DailyLossPercent or rises above DailyProfitPercent of the balance at session open. Resets automatically at midnight GMT.
- Friday Session Close (optional, default off) — All positions are closed and new entries blocked from TimeFridayClose (GMT) every Friday, protecting against weekend gap risk.
Built-in Symbol Presets
Enable UseBuiltinPresets = true (default) and the EA loads back-tested parameters automatically. Unknown symbols use relaxed filters (BB disabled, WPR −80/−20, 24 h session) and fall back to your manual WPR_Period, StopLoss and TakeProfit inputs.
| Symbol | WPR Period | Stop Loss | Take Profit | BB Min Width |
|---|---|---|---|---|
| GBPCAD | 110 | 800 pts | 300 pts | 150 pts |
| GBPCHF | 110 | 600 pts | 200 pts | 150 pts |
| EURSGD | 140 | 700 pts | 160 pts | 150 pts |
| CHFSGD | 60 | 700 pts | 160 pts | 0 pts * |
| GBPSGD | 35 | 700 pts | 160 pts | 0 pts * |
* SGD pairs trade in naturally tight ranges during the night session. The BB minimum-width filter is disabled so the EA can still detect valid signals.
Key Features
- MT4 & MT5 native — two fully independent source files, no compatibility layers
- Fixed or compound lot sizing — fixed lot, or auto-scale with equity using the compound multiplier formula: Lot = Equity × Factor / 1,000,000
- Lot normalisation — lot size is automatically rounded to the broker lot step and clamped between min/max volume, preventing order rejection errors on any account type
- Built-in symbol presets — one click loads optimised WPR period, SL, TP and BB bounds per pair; unknown symbols use automatic relaxed filters
- Breakeven & trailing stop — optional: once profit reaches the trigger threshold the SL moves to entry, then trails tick by tick
- Daily loss / profit cap — optional: EA stops entering new trades for the day after hitting the configured loss or profit percentage
- Friday session close — optional: closes all positions and blocks new entries before the weekend at a configurable GMT cutoff
- Code-managed Take Profit — TP tracked in code, not placed on the broker server, avoiding slippage on TP orders
- Spread protection — configurable spread ceiling stops trading during liquidity gaps and news events
- One-bar entry guard — prevents duplicate orders from rapid tick activity on the same bar
- Up to 10 retries — automatic retry on OrderSend / trade execution failures before logging the error
- Unique Magic Number — prevents interference with manual trades or other EAs on the same account
- Live dashboard — always-on panel shows Balance, Equity, P&L Today, Spread, Session status, BB filter, WPR reading, active position and preset SL/TP
- Midnight chart theme — automatic chart colour scheme applied on attach; grid disabled
Input Parameters
| Parameter | Default | Description |
|---|---|---|
| Lots | 0.1 | Fixed lot size (used when UseCompoundLots = false) |
| UseCompoundLots | false | When true, lot size scales automatically with account equity |
| CompoundRiskFactor | 40 | Compound multiplier — Lot = Equity × Factor / 1,000,000. At $10,000 and factor 40 → 0.40 lot |
| UseBuiltinPresets | true | Loads back-tested WPR period, SL, TP and BB bounds automatically per symbol |
| WPR_Period | 110 | Williams %R look-back period. Active only when UseBuiltinPresets = false or on unknown symbols |
| StopLoss | 800 | Stop Loss distance in points from entry price. Active only when UseBuiltinPresets = false or on unknown symbols |
| TakeProfit | 300 | Profit target in points from entry price. Managed in code, not placed on the broker server |
| MaxSpread | 50.0 | Maximum broker spread in points to allow entries. Set 0 to disable. On unknown symbols the effective ceiling is max(MaxSpread, 150) |
| UseBreakeven | false | Enable breakeven and trailing stop management |
| BreakevenTrigger | 150 | Points in profit required to move SL to entry (breakeven). Requires UseBreakeven = true |
| TrailingStep | 50 | Trail step in points after breakeven is activated. SL follows price at this distance |
| UseDailyLimits | false | Enable daily loss and profit cap |
| DailyLossPercent | 2.0 | Stop trading for the day after this % drawdown from session-open balance. Requires UseDailyLimits = true |
| DailyProfitPercent | 3.0 | Stop trading for the day after this % gain from session-open balance. Requires UseDailyLimits = true |
| CloseOnFriday | false | Close all positions and block new entries before the weekend |
| TimeFridayClose | 20:30 | GMT time (HH:MM) at which Friday trading stops and open positions are closed. Requires CloseOnFriday = true |
| MagicNumber | 888999 | Unique identifier for all orders placed by this EA |
| TradeComment | EagleNightRanger | Comment string attached to all orders in the terminal history |
Recommendations
- Account type — ECN or Raw Spread account with spread below 20 pts on GBPCAD during the Asian session. Avoid standard / fixed-spread accounts.
- VPS required — the session window (18:00–01:00 GMT) requires the terminal to run 24/7. A VPS in a GMT±1 data centre ensures low latency and no missed entries.
- Chart timeframe — attach the EA to an M1 chart for the five built-in pairs. All indicator calculations run on M1 internally for known symbols. On unknown symbols the EA automatically uses the chart timeframe for indicators.
- Minimum capital — $500 per 0.01 lot recommended. For compound mode, start with a factor of 10–20 to validate on your broker’s feed before scaling.
- Risk features — enable UseBreakeven and UseDailyLimits to reduce drawdown. Recommended starting values: BreakevenTrigger = 150 pts, TrailingStep = 50 pts, DailyLossPercent = 2%, DailyProfitPercent = 3%.
- Weekend protection — enable CloseOnFriday with TimeFridayClose = 20:30 GMT to avoid gap risk over the weekend.
Trading involves significant risk of loss. Past performance is not indicative of future results. Use this EA only with capital you can afford to lose.
