# MA.S.R_Trading

Trades based on MA troughs and peaks with StopLoss modification.

Canonical: https://prismaticalgos.com/compendium/algo/3184-ma-s-r-trading
Record ID: 3184
Catalog rank: 2341 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Unclassified (?)
Source: https://www.mql5.com/en/code/8105
Evidence label (unverified): forward_results

## 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: HIGH PROFIT FACTOR: claimed 3.7. Treat as an in-sample or curve-fitted figure until reproduced out of sample.; UNSIZED CLAIM: performance figures are published with no trade count, so the sample behind them cannot be judged.
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: EURUSD
- timeframes: H1
- sessions: Not specified
- market_regime: trending|null

## Indicators

- MA: {"period": 5}; applied to: close

## Recorded long-entry rules

- Indicator MA has formed a trough

## Recorded short-entry rules

- Indicator MA has formed a peak

## Recorded exit rules

- Trades will be closed by StopLoss. For placing a StopLoss, we should find the MA inflection (trough or peak) and detect: for Buy, the minimum price value for 10 bars in history; for Sell, the maximum price value for 10 bars in history. Then place a StopLoss. We should perform checks at each formation of trough (for Buy) or peak (for Sell) and modify the StopLoss, if necessary.

## Recorded filters

- Not specified.

## Risk controls

- Stop loss: Place a StopLoss at the minimum price value for 10 bars in history (for Buy) or the maximum price value for 10 bars in history (for Sell).
- Take profit: null
- Position sizing: lots 0.1
