Samurai sun
- Experts
- Version: 1.70
- Updated: 21 August 2026
- Activations: 20
Samurai Sun MT5 represents an advanced, self-adaptive autonomous trading system designed for professional traders, asset managers, and funded prop-firm accounts. While conventional retail Expert Advisors rely on rigid heuristics or dangerous martingale grids that break down under volatile conditions, Samurai Sun is engineered around a native self-learning neural framework, dynamic market regime classification, and comprehensive capital preservation protocols.
Built from the ground up in 100% pure native MQL5, Samurai Sun operates with zero external DLLs, zero Python dependencies, and zero third-party runtimes. It seamlessly integrates fully autonomous execution with an interactive, multi-language on-chart command center.
Core Architectural Advantages
1. Self-Learning Adaptive Neural Engine
At the core of Samurai Sun is a native, self-contained neural processing engine designed to evaluate high-dimensional market dynamics in real time. Rather than relying on static curve-fitted historical rules, the model updates its internal synaptic weights continuously based on realized trade feedback. The engine analyzes momentum shifts, multi-timeframe directional strength, volatility expansion, and liquidity conditions to filter out low-probability entries before any order is submitted to the market.
2. Tri-Regime Structural Market Classifier
Market conditions change constantly. Samurai Sun automatically categorizes price action into three distinct operating states:
- Trending State: Deploys precision trend-following execution to capture sustained directional moves.
- Ranging State: Identifies compressed consolidation ranges and halts false breakout entries to eliminate whipsaws.
- Volatile State: Implements strict multi-timeframe consensus filtering across M15, H1, and H4 horizons before validating trade execution.
3. Prop-Firm Capital Defense Matrix
Engineered specifically to comply with the stringent drawdown and consistency rules of modern proprietary trading firms (FTMO, FundedNext, MFF, TopStep):
- Start-of-Day (SOD) Baseline Tracking: Automatically calculates relative drawdown against midnight starting equity, enforcing hard stops before daily firm limits are breached.
- Single-Trade Profit Balance Guard: Prevents equity distribution imbalances to maintain compliant, institutional consistency scores.
- Dynamic Trailing Equity Locks: Locks in daily profits dynamically to safeguard accumulated gains.
4. Candidate-Based Adaptive Trailing Protection
The exit subsystem evaluates four independent protective candidate models on every tick:
- Structural fractal high/low boundaries
- Dynamic volatility expansion trailing
- Multi-tiered adaptive step progression
- Dynamic break-even threshold automation The algorithm continuously selects the optimal protective price level while respecting broker freeze and stop-level parameters.
5. Stealth Multi-Stage Order Execution
To eliminate execution slippage and stop-level rejections:
- Orders are submitted with neutral stops for immediate market capture, with protective stops attached milliseconds later.
- If a position exceeds broker volume restrictions ( SYMBOL_VOLUME_MAX or SYMBOL_VOLUME_LIMIT ), the execution engine automatically divides the order into sequential stealth chunks.
6. Interactive Multi-Language On-Chart Command Suite
Samurai Sun includes a fully localized on-chart control dashboard featuring:
- Native Language Dropdown: Direct selection of 21 global languages (English, Spanish, Chinese, Japanese, German, Russian, Portuguese, French, Italian, Turkish, Malay, Indonesian, Arabic, Dutch, Polish, Vietnamese, Thai, Hindi, Korean, Ukrainian, and Traditional Chinese) plus Auto-Detection.
- High-Precision Live Candle Countdown: Real-time second-by-second countdown clock synchronized with broker server time.
- Trend Ribbon & Momentum Visuals: Real-time trend alignment and smoothed candle momentum visualization.
- One-Click Manual Execution: Instant manual intervention buttons (Buy, Sell, Close All, Close Profit, Close Loss, Del Pending, Trail Equity).
Technical Specifications
- Supported Assets: XAUUSD (Gold), EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, NZDUSD, USDCHF, and major cross pairs.
- Primary Timeframe: H1 (Compatible with M15, M30, H1, H4).
- Account Compatibility: Hedging and Netting accounts.
- Minimum Deposit: $100 (Recommended $500+ for standard risk; prop accounts 10k to 200k+).
- Execution Speed: Ultra-low latency native MQL5 code structure.
Input Parameters Guide
Multi-Language Settings
- LanguagePreference: Preferred dashboard and UI language (Dropdown selector with 21 languages or Auto-Detect).
Advanced Money Management
- MoneyMode: Lot sizing strategy (Fixed Fractional Risk %, Volatility Adjusted, Fixed Lot, Progressive Anti-Martingale).
- FixLot: Base volume for fixed lot mode.
- RiskPercent: Account balance/equity risk percentage per trade.
- AntiMartingaleMultiplier: Position scaling multiplier during verified winning streaks.
- AntiMartingaleConsecutiveWins: Minimum streak count before progression scaling activates.
Prop-Firm Compliance & Capital Limits
- UsePropFirmRules: Enables proprietary firm equity protection matrix.
- MaxRelativeDrawdownPct: Maximum permissible drawdown from midnight start-of-day equity.
- MaxSingleTradeProfit: Maximum allowed single-trade contribution to total daily P&L.
- DailyLossLimit: Hard monetary loss ceiling per 24-hour cycle.
- DailyProfitTarget: Daily dollar target upon which all trading is safely paused.
- MaxDrawdownPercent: Global maximum portfolio drawdown circuit breaker.
- EquityTrailTrigger / EquityTrailStep: Monetary equity trailing parameters.
Market Regime & AI Filters
- UseRegimeFilter: Activates automated multi-state market structure classification.
- BBandPeriod / BBandDev: Regime bandwidth baseline parameters.
- RangeThreshold / VolatileThreshold: Boundary criteria for market state classification.
- UseAIFilter: Enables the real-time neural pattern recognition and setup validator.
- AILearningRate: Online weight adaptation velocity.
- AIL2DecayRate: Structural regularization factor to prevent weight drift.
Order Management & Trade Defense
- MagicNumber: Unique identifier for chart and instance tracking.
- InstanceID: Multi-chart isolation tag.
- StepPips / StopLossPips / TakeProfitPips: Base spacing and initial protective thresholds.
- MaxSpreadPips: Maximum allowable spread threshold for order placement.
- MaxLatencyMs: Execution latency threshold to prevent fills during severe network lag.
- MaxTradesPerDay / CooldownMinutes: Trade pacing controls to prevent excessive market churn.
Break-Even, Partial Close & Exits
- UseBreakEven / BreakEvenTriggerPips / BreakEvenLockPips: Dynamic zero-risk protection settings.
- UsePartialClose / TP1_Percent / TP2_Percent: Multi-stage scale-out profit locking.
- UseATRTrailing / TrailingStopATR: Volatility-based adaptive trailing stop.
News & Session Controls
- UseNewsFilter: Filters high-impact macroeconomic announcements via economic calendar.
- NewsImportance: Filtering threshold (High Only, Medium & High, All).
- MinutesBeforeNews / MinutesAfterNews: Protection blackout windows.
- StartHour / StopHour: Session timing filters for active market windows.
Quick Setup Guide
- Attach Samurai Sun MT5 to your target asset chart (Recommended: H1 on XAUUSD or EURUSD).
- Ensure Allow Algo Trading is toggled ON in the MetaTrader 5 top navigation toolbar.
- Select your preferred LanguagePreference in the input settings tab.
- Set MoneyMode and RiskPercent appropriate for your account type (e.g., 0.5% - 1.0% for prop-firm challenges; 1.0% - 2.0% for personal accounts).
- If using the external news feed or price verification services, add the following endpoints to MetaTrader 5 permissions (Tools -> Options -> Expert Advisors -> Allow WebRequest for listed URL):
- https://api.binance.com
- https://api.kraken.com
- https://api.telegram.org (if Telegram broadcast alerts are enabled)
- Monitor and interact with the live on-chart control panel in real time.
Risk Disclaimer
Past performance is not indicative of future market results. Algorithmic trading involves inherent financial risk, and market participants should only deploy risk capital that they can afford to lose. Always perform comprehensive backtesting and run forward testing on a demo environment before deploying capital on a live production account.
