# Darvas Box Long-Only

Automated trading robot based on the Darvas Box strategy, focusing on long-only trades in trending markets.

Canonical: https://prismaticalgos.com/compendium/algo/9479-darvas-box-long-only
Record ID: 9479
Catalog rank: 1011 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/market/product/148720
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: EURUSD, GBPUSD, XAUUSD
- timeframes: M1, M5, M15, H1, D1
- sessions: any
- market_regime: trending

## Indicators

- ATR: {"period": 14}; applied to: high, low, close

## Recorded long-entry rules

- current close price breaks above the box's upper edge plus ATR value × InpDarvasFlexATR

## Recorded short-entry rules

- Not specified.

## Recorded exit rules

- hit Stop Loss (SL) or Take Profit (TP)

## Recorded filters

- volatility filter using ATR buffer

## Risk controls

- Stop loss: box's lower edge
- Take profit: twice the distance from entry to SL
- Position sizing: each trade risks exactly InpRiskPercent of your current account balance
