Ninja Forex EA
- Эксперты
- Версия: 5.0
- Обновлено: 3 апреля 2024
- Активации: 5
Advanced Dual-Mode Algorithmic Trading System | Reverse & Trend Strategies | Pending Orders & Smart Basket Management
Ninja Forex EA is a highly versatile and robust automated trading system designed for MetaTrader 4 (MT4). It combines multi-indicator technical analysis, price-level tracking, and advanced basket trade-management logic to navigate dynamic market conditions.
The Expert Advisor features two distinct operating modes, allowing traders to seamlessly switch between a contrarian Reverse Strategy and a momentum-based Trend Strategy via simple input settings. Built with automated risk management, spread protection, and real-time dashboard monitoring, Ninja Forex EA is engineered for precision and adaptability.
🚀 Key Features & Core Strategies
1. Dual Trading Modes ( Reverse_Direction Switch)
-
Mode 1 – Reverse Direction ( Reverse_Direction = true )
-
Employs a contrarian/reversal approach by monitoring RSI levels and recent price extremes.
-
Identifies potential SELL opportunities when prices push above recent highs under specific overbought RSI parameters.
-
Identifies potential BUY opportunities when prices drop below recent lows under specific oversold RSI parameters.
-
Designed to capture market exhaustion and corrective turning points.
-
-
Mode 2 – Trend Direction ( Reverse_Direction = false )
-
Combines trend-following indicators and price-action confirmation to ride established momentum.
-
Incorporates Ichimoku Kinko Hyo components (Tenkan-sen, Kijun-sen, Senkou Span lines) alongside ADX directional indicators and RSI filters.
-
Evaluates multi-layered conditions to confirm trend continuation before entering BUY or SELL positions.
-
2. Advanced Trade Management & Pending Orders
-
Dynamic Pending Orders: Automatically places strategic stop orders (Buy Stop / Sell Stop ) based on configurable step distances (Step ) to capture continuation momentum.
-
Basket Profit & Equity Protection: Monitors cumulative group profit. Includes automated profit-locking rules and equity-target closures when overall portfolio performance meets configured thresholds.
-
Trailing Stop Integration: Features built-in trailing stop logic (TrailingStop and TrailingStep ) to lock in floating profits as the market moves in a favorable direction.
-
Spread Protection: Automatically halts new order generation if the current market spread (Max_SPREAD ) exceeds the user-defined threshold, protecting trades from high-cost executions.
-
On-Chart Real-Time Dashboard: Displays vital account metrics directly on the chart, including Account Balance, Equity, Live Profit/Loss, Current SPREAD, Time (GMT/Local), and daily/weekly/monthly performance metrics.
⚙️ Input Parameters
| Parameter | Default | Description |
| Lot1 | 0.01 | Initial manual lot size for trade execution. |
| Auto_Lots | false | Enables automatic lot-size calculation based on account balance and risk factor. |
| MaxRisk | 0.01 | Calculation factor used when automatic lot sizing is active. |
| TakeProfit | 0 | Individual trade Take-Profit distance in points (Set to 0 to disable). |
| StopLoss | 0 | Individual trade Stop-Loss distance in points (Set to 0 to disable). |
| TrailingStop | 10 | Trailing-stop distance in points. |
| TrailingStep | 5 | Minimum trailing adjustment step in points. |
| Time_Start | "01:00" | Allowed trading window start time (GMT). |
| Time_End | "20:00" | Allowed trading window end time (GMT). |
| Max_Open | 100 | Maximum permitted number of simultaneous orders. |
| Max_SPREAD | 4 | Maximum allowable spread (in points) for opening new orders. |
| Step | 20 | Distance interval controlling consecutive pending orders. |
| Reverse_Direction | true | Switches between Reverse mode ( true ) and Trend-following mode ( false ). |
| MagicNumber | 2023 | Unique identifier to isolate and manage the EA's trades. |
📊 Recommended Configuration & Optimization
-
Platform: MetaTrader 4 (MT4)
-
Trading Instruments: Optimized for major Forex currency pairs and Gold (XAU/USD).
-
Timeframes: Multi-timeframe compatibility (M5, M15, M30, H1, H4).
-
Initial Setup: We strongly recommend starting with manual lot sizing (0.01 ) and default risk parameters on a demo account before transitioning to live deployment.
⚠️ Important Risk Warning
-
Automated Trading Disclaimer: Ninja Forex EA is an automated analytical tool and does not guarantee future profits. Past performance is not indicative of future results.
-
Floating Drawdown: The use of multi-position basket management and pending orders can expose accounts to significant floating drawdowns during high volatility or strong, sustained market trends.
-
Best Practices: Always test the EA thoroughly in the MT4 Strategy Tester and on a demo environment under your broker's actual spread and execution conditions. Ensure you trade with risk capital that you can afford to lose.

