Extracted algorithm research record
Darvas Box Long-Only
Automated trading robot based on the Darvas Box strategy, focusing on long-only trades in trending markets.
Source & extraction context
Evidence label: source_code (source claim, not independent verification). Recorded completeness: 80.0/100. Neither is a performance result.
Names identify source records. Inclusion is not an endorsement or a claim of authorship, ownership or reuse permission. Check the source license before reusing any implementation.
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 market & execution profile
- Recorded timeframes
- M1, M5, M15, H1, D1
- Recorded sessions
- any
- Recorded regime
- trending
Recorded indicators & parameters
| Indicator | Parameters | Applied to |
|---|---|---|
| ATR | {"period": 14} | high, low, close |
Extracted strategy rules
Recorded long-entry rules
- current close price breaks above the box's upper edge plus ATR value × InpDarvasFlexATR
Recorded short-entry rules
- Not specified in the extracted record.
Recorded exit rules
- hit Stop Loss (SL) or Take Profit (TP)
Recorded filters
- volatility filter using ATR buffer
- 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
Questions about this record
What entry rules are recorded for Darvas Box Long-Only?
Long: current close price breaks above the box's upper edge plus ATR value × InpDarvasFlexATR Short: Not specified. These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: EURUSD, GBPUSD, XAUUSD. Timeframes: M1, M5, M15, H1, D1. These are source-recorded labels, not verified execution behavior.