Extracted algorithm research record
Trailing Stop
Trailing stop updates position every 10 pips and then increments every 6 pips if in profit.
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
No automated warnings are recorded in this snapshot. This does not establish that the extraction or system is sound.
Recorded market & execution profile
- Recorded markets
- CAC40
- Recorded timeframes
- 1 Hour, 30 minutes
- Recorded sessions
- 08:00-09:00 GMT
- 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
- IF Time = 080000 AND not OnMarket THEN COMPRA = Highest[7](high[1]) + 5*pipsize; BUY 1 CONTRACT AT COMPRA STOP
Recorded short-entry rules
- Not specified in the extracted record.
Recorded exit rules
- IF LongOnMarket AND close > (TradePrice + (y1 * pipsize)) THEN x1 = (close - tradeprice) / pipsize; IF x1 >= TrailStart THEN Diff1 = abs(TrailStart - x1); Chunks1 = max(0,round((Diff1 / StepSize) + RoundTO)); ProfitPerCent = BasePerCent + (BasePerCent * (Chunks1 * PerCentInc)); y1 = max(x1 * ProfitPerCent, y1); IF y1 THEN SellPrice = Tradeprice + (y1 * pipsize); IF abs(close - SellPrice) > PriceDistance THEN IF close >= SellPrice THEN SELL AT SellPrice STOP ELSE SELL AT SellPrice LIMIT ENDIF ELSE SELL AT Market ENDIF ENDIF
- IF ShortOnMarket AND close < (TradePrice - (y2 * pipsize)) THEN x2 = (tradeprice - close) / pipsize; IF x2 >= TrailStart THEN Diff2 = abs(TrailStart - x2); Chunks2 = max(0,round((Diff2 / StepSize) + RoundTO)); ProfitPerCent = BasePerCent + (BasePerCent * (Chunks2 * PerCentInc)); y2 = max(x2 * ProfitPerCent, y2); IF y2 THEN ExitPrice = Tradeprice - (y2 * pipsize); IF abs(close - ExitPrice) > PriceDistance THEN IF close <= ExitPrice THEN EXITSHORT AT ExitPrice STOP ELSE EXITSHORT AT ExitPrice LIMIT ENDIF ELSE EXITSHORT AT Market ENDIF ENDIF ENDIF
Recorded filters
- Not specified in the extracted record.
- Stop loss
- SET STOP pLOSS 70
- Take profit
- Not specified
- Position sizing
- Not specified
Questions about this record
What entry rules are recorded for Trailing Stop?
Long: IF Time = 080000 AND not OnMarket THEN COMPRA = Highest[7](high[1]) + 5*pipsize; BUY 1 CONTRACT AT COMPRA STOP Short: Not specified. These are unverified extracted rules.
Which markets and timeframes are recorded?
Markets: CAC40. Timeframes: 1 Hour, 30 minutes. These are source-recorded labels, not verified execution behavior.