Martingify
- Experts
- Version: 1.40
- Updated: 18 June 2026
- Activations: 10
Martingify is a professional expert advisor designed for automated trading on the MetaTrader 5 platform. It uses a structured mathematical approach to trade management, combining native machine learning logic with advanced safety features to handle various market conditions.
The system analyzes market momentum and volatility using a built-in Kalman Filter and Linear Regression engine to identify entry points and dynamically adapt grid distances. Once a position is opened, the advisor manages the trade using a customizable recovery mechanism. It includes multiple layers of protection to ensure the trading activity remains within defined risk parameters.
Key Features
- 100% Native Machine Learning: Utilizes a built-in Kalman Filter and Linear Regression model to adapt to market volatility without requiring external DLLs or ONNX dependencies.
- Advanced Grid Mitigation: An automated recovery algorithm that dynamically pairs the highest winning position with the lowest losing position, closing both simultaneously when their combined net profit is positive.
- Universal Broker Scaling: All distance inputs are now standardized in Pips. The system automatically detects the broker quote format (2, 3, 4, or 5 digits) and scales internal calculations automatically.
- Weekend Gap Protection: An automated safeguard that can close all open positions and suspend trading on Friday before the market closes.
- Stealth Trade Management: Virtual stop loss and take profit levels that are managed internally by the advisor.
- Comprehensive Safety Filters: Includes maximum spread blocks, news session pauses, and multiple equity protection levels.
Operation Recommendations
- Recommended symbols: Major currency pairs with low spreads.
- Recommended timeframe: H1 or M15 for optimal signal frequency.
- Account type: ECN or Raw Spread accounts are preferred.
- Minimum balance: Depends on the starting lot size and risk settings.
Input Parameters Martingale Settings
- Base Lot Size: The starting volume for the first trade in a sequence.
- Martingale Multiplier: The factor used to increase the lot size for recovery trades.
- Max Open Orders: The maximum number of simultaneous positions allowed in one direction.
Risk Management
- Max Daily Loss %: Daily percentage limit of account balance loss.
- Max Daily Profit: Target profit in currency to stop trading for the day.
- Max Allowed Spread (Pips): Maximum spread limit allowed for opening new trades.
Trade Management
- Trailing Stop (Pips): Distance to activate the trailing stop.
- Trailing Step (Pips): Minimum movement required to update the trailing stop level.
- Breakeven Trigger (Pips): Profit level to move the stop loss to breakeven.
- Breakeven Lock (Pips): Amount of profit to lock in when moving to breakeven.
Advanced Strategy
- Base Grid Step (Pips): Distance between additional orders in a grid sequence.
- Close on Friday: Enable or disable the weekend gap protection feature.
- Friday Close Hour: The server hour on Friday to trigger the weekend close.
- Virtual SL (Pips): Stop loss level managed internally.
- Virtual TP (Pips): Take profit level managed internally.
Safety and Filters
- Trading Start Hour/Min: The time when the advisor begins looking for new signals.
- Trading End Hour/Min: The time when the advisor stops looking for new signals.
- Pause during news: Option to disable trading during high-impact economic events.
- News Pause Minutes: Buffer time before and after news events to pause activity.
- Max Drawdown %: Equity drawdown percentage that triggers a safety close.
- Equity Hard Stop: Absolute equity value in currency that stops all trading.
- Magic Number: Unique identifier for the advisor trades.
