PLAN B EA Version: 1.0

×

PLAN B EA - Comprehensive Trading Solution

"When Your First Strategy Fails, Let PLAN B Take Over!"


🔹 Overview

The PLAN B EA is a sophisticated MetaTrader 4 expert advisor developed by R.KH that implements an advanced grid trading strategy with dynamic adjustments. Designed for forex markets, it features:


Smart Grid Trading System (Automatically adjusts order distances)


Adaptive Risk Management (Auto-lot sizing or fixed lots)


Time-Based Trading Window (Operates only during optimal hours)


Spread Protection (Avoids trading during high spread conditions)


Trailing Stop Technology (Locks in profits as trades move favorably)


📌 Key Features:

✔ Self-Correcting Grid Algorithm

✔ Dual Operation Modes (Fixed lots or risk-based MM)

✔ Broker-Spread Adaptive (Auto-pauses during unfavorable conditions)

✔ Time Filter (Trades only during specified hours)

✔ Dynamic Trailing Stops (Adjusts based on market volatility)


⚙️ Configuration Settings

1. Core Parameters

ParameterValueDescription

Magic Number1001Unique trade identifier

Slippage1Maximum price slippage allowance

Max Spread15000Maximum allowed spread (in points)

2. Trading Schedule

SettingValueDescription

Start Hour16GMT hour to begin trading

End Hour22GMT hour to stop trading

Order Refresh1 secHow often to modify orders

3. Money Management

OptionValueDescription

Fixed Lot0.01Manual lot size (0 = auto)

Risk %User-definedRisk per trade if using MM

4. Trade Logic

ParameterDefaultFunction

Delta (Order Distance)0.6Multiplier for grid spacing

Theta (Max Distance)8Maximum allowed grid expansion

Stop Loss11SL size in dynamic units

COS (Trailing)5Trailing stop activation threshold

📊 How It Works?

Entry Strategy

Grid Initialization:


Places initial buy/sell stop orders when spread is favorable


Uses Ichimoku-based price filtering for high-probability entries


Dynamic Adjustment:


Automatically spaces subsequent orders based on real-time spread analysis


Adjusts order distances using the Delta multiplier


Exit Strategy

Trailing Stops: Activates after price moves 5 units in profit


Auto-Close: Triggers when:


Spread exceeds maximum threshold


Trading hours end


Equity protection rules activate


Risk Controls

Martingale Prevention: Uses Theta to limit grid expansion


Lot Size Caps: Respects broker's min/max lot requirements


Time-Based Protection: Only trades during specified hours


🚀 Optimal Usage Tips

✅ Best Pairs: EURUSD, GBPUSD (Low spread instruments)

✅ Timeframe: M15 or H1 for stable performance

✅ Broker Requirements: ECN/RAW accounts recommended

✅ Starting Balance: $1,000+ for risk-based MM

✅ Avoid News: Disable during high-impact news events


⚠️ Important Notes

Requires Stable Internet Connection (For precise order timing)


Not Scalper-Friendly (Designed for medium-term grid trading)


Demo Test Essential (Verify settings before live use)


📜 Developer & Source

Created by: R.KH (2025)

Official Site: www.robomql.com



Leave a comment

$20