Description of Martin OI Advisor
Martin OI is an automated trading Advisor implementing a martingale strategy with thoughtful risk control and numerous safety mechanisms. The built-in limits are designed to mitigate the risk of significant drawdowns during martingale sequences.
You can find the configuration files in the section “Comments”.
Modes of Operation
Standard Martin OI algorithm — with the MA filter disabled (Use MA filter = false). Adaptive logic: the Advisor smartly switches trade direction and follows the trend. Thanks to this, it often exits a series earlier than comparable systems that stubbornly average in one direction.
Trend Filtering - If the MA filter is active (Use MA filter = true), the Advisor trades only in the direction of the trend. The Advisor calculates two EMAs on your chart: fast (MAFastPeriod) and slow (MASlowPeriod). Filter signal: if the fast EMA is above the slow, the Advisor sees an uptrend (opens buy orders for a new series); if below, a downtrend (prefers sell orders).
Key Features
- Comprehensive risk management
- Market-adaptive logic
- Loss-series limitation
- Spread and slippage control
- Limit on trades per single bar
- Partial series reset
- Built-in stop-loss and take-profit on every order
- Dynamic lot calculation
- Multi-symbol support
- Any timeframe
- Flexible configuration
Recommendations
- Timeframe: 1H
- Leverage: 1:500
- Deposit: $5,000 (cent account $500)
Input Parameters Overview
- FirstOrderDirection: Direction of the first trade in a series (Buy or Sell). Used when the MA filter is off or no signal is present. 1 = Buy, -1 = Sell.
- StopLossPips / TakeProfitPips: Stop-loss and take-profit in pips for each trade. Fixed for all steps.
- MartingaleFactor: Lot multiplier after a loss.
- MaxMartingaleSteps: Maximum number of averaging steps (limits martingale depth).
- StepDecrease: How many steps to roll back after a profitable series. Lowers the step number so the next cycle may start above the base lot if the previous series reached high steps.
- UseDynamicLot: Enable automatic calculation of the initial lot based on account balance.
- FixedLotSize / RiskPercent: Either a fixed starting lot or a percentage of balance for lot sizing (depending on the selected mode).
- UseMAFilter: Enable EMA-based trend filter.
- MAFastPeriod / MASlowPeriod / MaShift: Fast and slow EMA periods and bar shift for the filter.
- UseTrailingStop: Enable trailing stop.
- TrailingStart / TrailingStep: Levels at which the trailing stop begins and the step size from the current price.
- MaxAllowedSpread / Slippage: Maximum spread and slippage allowed for order execution.
- MaxOrdersPerBar: Limit on trades per single candle (usually 1–3 to avoid over-entering).
- MagicNumber: Unique EA identifier (can be changed so multiple EAs don’t interfere).