# Linear Regression Candles Trading EA

Trades based on Linear Regression candle color changes with a configurable trigger distance filter.

Canonical: https://prismaticalgos.com/compendium/algo/11809-linear-regression-candles-trading-ea
Record ID: 11809
Catalog rank: 137 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trade & Execution Management (K)
Source: https://github.com/Shifrozy/MT4-lineaggresion
Evidence label (unverified): source_code

## 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

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: all currency pairs and metals
- timeframes: M1, M2, M3, M5, M15, M30, H1, H4
- sessions: Not specified
- market_regime: trending|volatile

## Indicators

- Linear Regression: {"period": 20}; applied to: close

## Recorded long-entry rules

- Linear Regression candle turns GREEN + price moves above reference by trigger distance

## Recorded short-entry rules

- Linear Regression candle turns RED + price moves below reference by trigger distance

## Recorded exit rules

- Automatic Position Reversal on opposite signals

## Recorded filters

- Spread Filter Protection
- Max Spread 50.0 pips

## Risk controls

- Stop loss: 600 pips
- Take profit: 0 pips (disabled by default)
- Position sizing: Fixed LotSize of 0.01
