Caicai Infinity Grid Trader Bands Edition
- Experts
-
Thiago Lopes
Hello! I'm Caicai, a developer and trader focused on creating high-performance Expert Advisors (EAs) for MetaTrader 5. My expertise lies in transforming complex trading logic into 100% automated systems using MQL5 and Pine Script.
Core Competencies: - Version: 2.4
- Activations: 5
🌟 EA Caicai Infinity Trader - Bands Edition
The EA Caicai Infinity Trader is an institutional-grade automated trading system designed for demanding traders who seek maximum mathematical efficiency and absolute risk control. Built with an advanced Linear Gradient engine (Dynamic and Static Grid), it uses intelligent pending order execution (Limit) with a CloseBy system to reduce spread costs and maximize performance.
Perfect for trading in diverse markets, its logic is highly adaptable to the volatility of Forex pairs (EURUSD, GBPUSD), Global Indices (USA30, USA500), Commodities (XAUUSD), and Cryptocurrencies.
⚙️ Strategy Engine: Caicai Bands
- Mean Reversion Mode (Pullback): Buys at the lower band and sells at the upper band, profiting from the return to the mean.
- Breakout Mode (Trend Following): Identifies band breakouts combined with a macro-trend filter to ride strong movements.
- Long Trend Moving Average: A macro filter that prevents the EA from trading against the main market flow.
- Dual ATR Filter: Blocks entries during atypical volatility (Max ATR for Pullbacks) or requires minimum market strength (Min ATR for Breakouts).
📈 Cycle Management and Linear Gradient (Grid)
- Smart Dynamic Grid: Instead of blindly opening orders every "X" points, the EA recalculates levels based on highs and lows reached, stretching the grid only when necessary and within a safe advance limit.
- Execution via Limit Orders: Places orders in the Order Book, avoiding negative slippage and ensuring the best price.
- Automatic CloseBy System: Closes opposite positions natively in MQL5 to save brokerage costs and spread when closing cycles.
- Cycle Trailing Stop: Protects the accumulated profit of the order basket, moving the stop in favor of the trade once a financial trigger is reached.
- Emergency Exit: An alternative profit (or loss) target automatically activated if the EA reaches a critical level of open orders.
🛡️ Risk Control and Daily Targets (Day Trade)
- Global Daily Target (Gain/Loss): Closes the day's operations upon hitting the financial target. Works isolated or shared across multiple Magic Numbers.
- Drawdown Protection: Locks in the day's profits. If you make $500, the EA can be configured to return a maximum of 30% of that value to the market, ensuring winning days don't turn into losing ones.
- Day Trade Mode: Forces the closure of all floating positions at a scheduled time, perfect for avoiding overnight exposure and gap risks.
- Variation Filter (%): Allows authorizing buys only if the asset has fallen "X%" from the previous day's close (or vice versa for sells).
- Post-Cycle Cooldown: After closing a cycle, the EA "rests" for a predefined time or until the price returns to the central mean, preventing impulsive re-entries at the same price level.
💻 Professional Panel and On-Chart UX
- Real-time status, trend direction, and indicator readings.
- P&L Statistics (Daily, Weekly, Monthly, Total) with an optional asset series filter (e.g., grouping specific symbols).
- Automatic drawing of the "Caicai Bands" on the chart and application of an optimized visual theme.
- Progress bar for the day's financial targets.
📋 Setup Tips
- For Indices/Commodities: Activate Day Trade Mode to close operations at the end of the session and use the Daily Variation Filter to catch directional rebounds.
- For Forex: Leave the Grid in Dynamic mode with a conservative distance and activate Drawdown Protection to secure profits during the London/New York sessions.
- Global Targets: If you don't want to use the global targets, simply input "0" in the Global Gain/Loss fields so the EA won't improperly cut your trades.
💡 Note: It is highly recommended to run tests in the Strategy Tester with "Random Delay" mode to refine the ideal Grid distances for your broker.
Author: Caicai Labs | Caicai Trader

