# Market Structure Onnx

Combines machine learning-based market structure classification with rule-based trade execution.

Canonical: https://prismaticalgos.com/compendium/algo/520-market-structure-onnx
Record ID: 520
Catalog rank: 1107 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Statistical, Quantitative & Machine Learning (I)
Source: https://www.mql5.com/en/code/68535
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

Opacity warnings: PARTLY OPAQUE ENTRY: 2.0 of 4 entry conditions reference a value the source never published. The rest is specified.

## Recorded profile

- symbols: XAUUSD
- timeframes: H1
- sessions: Not specified
- market_regime: any

## Indicators

- SMA: {"period": 50}; applied to: close
- Fibonacci retracement: {}; applied to: close
- ATR: {}; applied to: close

## Recorded long-entry rules

- predicted label aligns with bullish trend
- confidence above 0.65

## Recorded short-entry rules

- predicted label aligns with bearish trend
- confidence above 0.65

## Recorded exit rules

- trailing stop based on risk-reward progress

## Recorded filters

- pivot-based method for swing high and low detection
- max spread 2.0 pips

## Risk controls

- Stop loss: beyond the structure invalidation level, ATR-normalized
- Take profit: fixed Risk-Reward ratio (default 1:2)
- Position sizing: fixed lot size, calculated using a professional on-chart panel
