Trade Settings
| Parameter | Default | Description |
|---|---|---|
| Lots | 1.0 | Position size (lot) |
See the Lot Size Calculator section at the bottom for recommended values.
WARNING: Do not modify these settings. Changing them can cause issues with order management and license validation.
- Magic Number: If you change this, the EA will not recognize its own orders and may open duplicate positions!
| Parameter | Default | Description |
|---|---|---|
| MagicNumber | 112233 | Unique identifier for EA orders |
| Slippage | 200 | Maximum allowed slippage (points) |
Trade Mode
| Parameter | Default | Description |
|---|---|---|
| TradeMode | Daily | Trading schedule mode |
Trade Mode Options
| Mode | Description |
|---|---|
| Daily | Trade every day (Monday-Friday) + Weekend |
| Weekend | Only trade Friday close → Monday open |
Trend Filter
| Parameter | Default | Description |
|---|---|---|
| TrendMode | Filter | How to handle trend direction |
| TrendMAType | LWMA | Moving average type |
| TrendTimeframe | H1 | Timeframe for trend calculation |
| TrendMAPeriod | 50 | MA period |
Trend Mode Options
| Mode | Description |
|---|---|
| OFF | Ignore trend, trade both directions |
| Filter | Skip trade if trend is bearish |
| Both | Trade in trend direction (LONG on bullish, SHORT on bearish) |
MA Type Options
| Type | Description |
|---|---|
| SMA | Simple Moving Average |
| EMA | Exponential Moving Average |
| SMMA | Smoothed Moving Average |
| LWMA | Linear Weighted Moving Average (default - most reactive) |
Market Schedule
WARNING: These times are precisely calibrated for the market open/close strategy. Changing them will break the strategy!
These times are in SERVER TIME (broker time), not your local time!
| Parameter | Default | Description |
|---|---|---|
| MarketCloseHour | 23 | Hour when market closes |
| MarketCloseMinute | 54 | Minute when market closes |
| MarketCloseSecond | 55 | Second for entry (precision timing) |
| MarketOpenHour | 1 | Hour when market opens |
| MarketOpenMinute | 5 | Minute when market opens |
How It Works
ENTRY: 23:54:55 (just before Friday close) ↓ HOLD: Position stays open through weekend ↓ EXIT: 01:05:00 (just after Monday open)
Exit Mode
| Parameter | Default | Description |
|---|---|---|
| SellOnFirstTick | true | Close position on first tick after market open |
Exit Behavior
| Setting | Behavior |
|---|---|
| true | Close immediately when market opens (recommended) |
| false | Use TP/SL to manage exit |
Martingale
| Parameter | Default | Description |
|---|---|---|
| UseMartingale | false | Enable martingale system |
| MartingaleMultiplier | 2.0 | Lot multiplier after loss |
| MaxMartingaleLevel | 3 | Max consecutive multiplications (0 = unlimited) |
Martingale Example
With Lots=0.1, Multiplier=2.0, Max=3:
0.1 lot → Loss
0.2 lot → Loss
0.4 lot → Loss
0.8 lot → Win (recovers all + profit)
0.1 lot → Reset to base
Martingale can blow your account. Use small base lot and MaxMartingaleLevel = 3.
Stop Loss / Take Profit
| Parameter | Default | Description |
|---|---|---|
| UseSL | false | Enable stop loss |
| StopLoss | 1500 | Stop loss distance (points) |
| UseTP | false | Enable take profit |
| TakeProfit | 1000 | Take profit distance (points) |
When SellOnFirstTick = true, SL/TP are typically not needed since the EA exits at market open.
Display Settings
WARNING: These settings control the overlay. Changing them may hide or break the display.
Only change OverlayX/OverlayY if the overlay is hidden behind another element.
| Parameter | Default | Description |
|---|---|---|
| ShowOverlay | true | Show the on-chart overlay |
| ApplyTemplate | true | Apply chart color template |
| OverlayX | 20 | X position (pixels from left) |
| OverlayY | 30 | Y position (pixels from top) |
| ColorProfit | Lime | Color for profit values |
| ColorLoss | Red | Color for loss values |
| ColorNeutral | White | Color for neutral values |
Lot Size Calculator
Formula: Lot = (Balance × Risk%) / $100
Recommended risk: 1% per trade (maximum 5%)
| Balance | 1% Risk | Lot Size | 5% Max | Max Lot |
|---|---|---|---|---|
| $1,000 | $10 | 0.1 | $50 | 0.5 |
| $2,000 | $20 | 0.2 | $100 | 1.0 |
| $5,000 | $50 | 0.5 | $250 | 2.5 |
| $10,000 | $100 | 1.0 | $500 | 5.0 |
Recommended Settings
🟢 Conservative (Low Risk)
- Lots: 0.1 per $1,000 balance
- UseMartingale: false
- TrendMode: Filter
- UseSL: true
- StopLoss: 2000
🟡 Standard
- Lots: 0.5 per $1,000 balance
- UseMartingale: false
- TrendMode: Filter
- SellOnFirstTick: true
🔴 Aggressive (High Risk)
- Lots: 1.0 per $1,000 balance
- UseMartingale: true
- MartingaleMultiplier: 2.0
- MaxMartingaleLevel: 3
- TrendMode: OFF