Extracted algorithm research record
P4PatternStrategy
Detects P4 patterns and trades based on them with dynamic stop-loss and take-profit.
Source & extraction context
Evidence label: source_code (source claim, not independent verification). Recorded completeness: 50.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
Opacity warnings
- PARTLY OPAQUE ENTRY: 0.5 of 8 entry conditions reference a value the source never published. The rest is specified.
Recorded market & execution profile
- Recorded markets
- XAUUSDm
- Recorded timeframes
- M30
- Recorded sessions
- any
- Recorded regime
- any
Recorded indicators & parameters
| Indicator | Parameters | Applied to |
|---|---|---|
| No indicator stack was recorded. This does not establish a price-action-only strategy. | ||
Extracted strategy rules
Recorded long-entry rules
- b1 / b2 >= InpCondAXMin
- a >= InpP1P2AValueSpaceMinPriceLimit
- pointSpans[1] + 2 >= InpP1P2AValueTimeMinKNumberLimit
- b1 + b2 >= InpBSumValueMinRatioOfAValue * a
- b1 + b2 <= InpBSumValueMaxRatioOfAValue * a
- Pre0 -> P0 move > InpPreCondPriorMoveMinRatioOfStructure * (a + b1 + b2)
- Pre0 and P0 are separated by at least InpPreCondPriorMoveMinBarsBetweenPre0AndP0 bars
- InpRequiredSwingExtremaSegments_Pre0P0_P0P1_P1P2_P2P3_P3P4 is true for Pre0P0 and P0P1 and P1P2 and P2P3 and false for P3P4
Recorded short-entry rules
- ...
Recorded exit rules
- ...
Recorded filters
- InpMaxPositionsPerSymbol
- InpMaxProfitStopMoney
- InpMaxLossStopMoney
- Stop loss
- P0
- Take profit
- First P5/P6 after entry
- Position sizing
- InpFixedLots
Questions about this record
What entry rules are recorded for P4PatternStrategy?
Long: b1 / b2 >= InpCondAXMin a >= InpP1P2AValueSpaceMinPriceLimit pointSpans[1] + 2 >= InpP1P2AValueTimeMinKNumberLimit b1 + b2 >= InpBSumValueMinRatioOfAValue * a b1 + b2 <= InpBSumValueMaxRatioOfAValue * a Pre0 -> P0 move > InpPreCondPriorMoveMinRatioOfStructure * (a + b1 + b2) Pre0 and P0 are separated by at least InpPreCondPriorMoveMinBarsBetweenPre0AndP0 bars InpRequiredSwingExtremaSegments_Pre0P0_P0P1_P1P2_P2P3_P3P4 is true for Pre0P0 and P0P1 and P1P2 and P2P3 and false for P3P4 Short: ... These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: XAUUSDm. Timeframes: M30. These are source-recorded labels, not verified execution behavior.