# OsasFXea Diamond

Automated EA for XAUUSD on MT4, using multi-timeframe Gain Index and dynamic risk management.

Canonical: https://prismaticalgos.com/compendium/algo/9414-osasfxea-diamond
Record ID: 9414
Catalog rank: 2623 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Mean Reversion & Counter-Trend (B)
Source: https://www.mql5.com/en/market/product/184303
Evidence label (unverified): backtest_shown

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

Claim warnings: UNSIZED CLAIM: performance figures are published with no trade count, so the sample behind them cannot be judged.; UNBOUNDED LOSS RISK: position sizing recovers losses by adding or multiplying size, and no stop loss is specified. The losing tail of such a system is limited only by account equity.
Build warnings: MT4_ONLY: the captured source is MQL4 / written for MetaTrader 4. It needs porting (order functions, indicator handles) before it runs on MT5.

## Recorded profile

- symbols: XAUUSD, XAUUSD.c
- timeframes: M5, H1, H4, D1
- sessions: Not specified
- market_regime: trending|volatile

## Indicators

- MA: {"applied_to": "close", "period": 5}; applied to: Not specified
- MA: {"applied_to": "close", "period": 20}; applied to: Not specified
- RSI: {"period": 30}; applied to: Not specified
- RSI: {"period": 70}; applied to: Not specified
- ATR: {"period": null}; applied to: Not specified

## Recorded long-entry rules

- H1, H4, D1 agree
- MA (5/20) trend alignment
- RSI between 30 and 70
- candle direction

## Recorded short-entry rules

- Not specified.

## Recorded exit rules

- RSI overbought/oversold exit
- trailing stop
- break-even
- ATR-based take profit

## Recorded filters

- ATR Filter Enabled
- Max Trades/Day 10
- Martingale Enabled (multiplier 2.0, max 5 steps)

## Risk controls

- Stop loss: null
- Take profit: 50 pips
- Position sizing: ATR-adjusted (reduces lots in high volatility, increases slightly in low volatility)
