CryptSwarms / Docs / Confiança

Como a Confiança Funciona

O sistema de confiança controla a intensidade com que a skill opera.

Tipos de Pipeline

Pipeline Linear

Calculo aditivo: confidence = base + bonuses - penalties. Simples e transparente. Recomendado para iniciantes.

Pipeline Linear
confidence:
  pipeline: linear
  base: 0.55
  floor: 0.50
  ceiling: 0.75
  bonuses:
    - when: retracement_sweet_spot
      add: 0.05
    - when: trend_aligned
      add: 0.04
    - when: ema_proximity_tight
      add: 0.03
    - when: bounce_confirmed
      add: 0.03
  penalties:
    - when: cascade_reds
      sub: 0.06
    - when: below_ema50
      sub: 0.08
    - when: drawdown_extreme
      sub: 0.04
  kill_switches:
    - when: price_below_ema50
      floor: 0.50
      reason: "Price below EMA(50) — structure broken"
    - when: cascade_4_reds
      floor: 0.50
      reason: "4+ reds — capitulation"

Pipeline Gaussiano

Usa distribuicao normal centrada no sweetspot. Indicador mais próximo do ponto ideal = maior confiança. Ideal quando ha um valor 'perfeito'.

Pipeline Gaussiano
confidence:
  pipeline: gaussian
  center: 0.50
  band: [0.30, 0.70]
  floor: 0.35
  ceiling: 0.80

Pipeline Stepped

Patamares discretos de confiança. Cada faixa de valor do indicador mapeia para um nível fixo de confiança. Sem transicoes suaves.

Pipeline Stepped
confidence:
  pipeline: stepped
  steps:
    - range: [0, 20]
      value: 0.80
    - range: [20, 30]
      value: 0.60
    - range: [30, 100]
      value: 0.40
  floor: 0.35
  ceiling: 0.85

Bonuses e Penalties

Bonuses aumentam a confiança quando condições favoraveis sao detectadas. Penalties diminuem quando condições adversas existem.

+ Bonus: aumenta confiança quando condições favoraveis sao satisfeitas (ratio de entrada >= 75%)

- Penalty: diminui confiança quando condições adversas existem (ratio de entrada < 50%)

! Kill Switch: força confiança para o piso quando condições perigosas sao detectadas (ratio de entrada < 37.5%)

Nomes de triggers sao semanticos — qualquer nome funciona. A engine resolve com base em quantas condições de entrada foram satisfeitas. Você pode criar seus proprios triggers customizados além dos padrões listados abaixo.

Catálogo de Triggers

Trend / EMA

TriggerTypeDescription
trend_alignedBonusTrend direction aligns with entry
trend_quality_alignedBonusHigh-quality trend confirmation
trend_integrity_highBonusStrong trend with consistent structure
trend_integrity_lowPenaltyWeak or choppy trend
trend_strongly_downPenaltyStrong bearish trend detected
ema_alignment_bullishBonusFast > Mid > Slow EMA alignment
ema_proximity_tightBonusPrice close to EMA — good pullback
ema_proximity_very_tightBonusPrice touching EMA — ideal entry
ema_micro_trend_brokenPenaltyShort-term EMA structure broken
ema9_below_ema20PenaltyEMA(9) crossed below EMA(20)
slope_deadPenaltyEMA slope near zero — no momentum

RSI

TriggerTypeDescription
rsi_deeply_oversoldBonusRSI < 20 — extreme oversold
rsi_sweet_spotBonusRSI in ideal pullback zone (30-50)
rsi_extremeAnyRSI at extreme levels
rsi_extremely_overboughtPenaltyRSI > 80 — extreme overbought
rsi_not_oversoldPenaltyRSI not yet oversold (> 30)
rsi_outside_neutralAnyRSI outside neutral zone
rsi_confirms_extremeAnyRSI confirms extreme market state

Retracement / Drawdown

TriggerTypeDescription
retracement_sweet_spotBonusPullback depth in ideal range (2-5%)
deep_retracement_sweet_spotBonusDeep pullback in ideal range
drawdown_extremePenaltyDrawdown exceeds safety threshold
drawdown_too_deepPenaltyDrawdown beyond recovery point
drawdown_above_8pctKill SwitchDrawdown > 8% from peak
drawdown_high_slope_deadKill SwitchHigh drawdown + flat EMA
drawdown_extreme_slope_deadKill SwitchExtreme drawdown + no momentum

Bounce / Recovery

TriggerTypeDescription
bounce_confirmedBonusPrice bounced off support/EMA
bounce_strongBonusStrong bounce with volume
bounce_weakPenaltyWeak bounce — low conviction
higher_low_confirmedBonusHigher low formed — structure intact
recovery_high_72BonusRecovery ratio > 72%
recovery_high_82BonusRecovery ratio > 82%
deep_pullback_late_recoveryBonusDeep pullback starting to recover

Volume

TriggerTypeDescription
volume_confirms_reversalBonusVolume spike confirms reversal
volume_confirms_bounceBonusVolume confirms bounce off support
volume_confirms_breakoutBonusVolume confirms breakout
volume_confirms_sentimentBonusVolume aligns with sentiment
volume_not_confirmingPenaltyVolume does not confirm move
volume_dryPenaltyVery low volume — no participation
volume_below_minimumKill SwitchVolume below minimum threshold
no_volume_confirmationPenaltyNo volume confirmation for entry
volume_both_legs_adequateBonusBoth legs have adequate volume (pairs)
volume_one_leg_lowPenaltyOne leg has low volume (pairs)
single_leg_volume_below_500mPenaltySingle leg volume < $500M

Bollinger / Volatility

TriggerTypeDescription
bollinger_touch_lowerBonusPrice touched lower Bollinger Band
bollinger_width_expandingPenaltyBollinger Bands expanding rapidly
atr_breakout_regimeAnyATR in breakout regime (high vol)
atr_expanding_rapidlyPenaltyATR expanding fast — volatility spike
atr_regime_normalBonusATR in normal range

MACD

TriggerTypeDescription
macd_histogram_positive_increasingBonusMACD histogram positive and growing
macd_histogram_decliningPenaltyMACD histogram declining

Candle Patterns

TriggerTypeDescription
bullish_candle_patternBonusBullish candle pattern detected
candle_confirmBonusCandle confirms entry direction

Cascade / Consecutive

TriggerTypeDescription
cascade_redsPenaltyMultiple consecutive red candles
cascade_4_redsKill Switch4+ consecutive red candles
cascade_reds_deep_drawdownKill SwitchRed cascade during deep drawdown
consecutive_reds_3Penalty3 consecutive red candles
consecutive_reds_4Kill Switch4 consecutive red candles
continuation_risk_highPenaltyHigh risk of continued decline

Price Structure

TriggerTypeDescription
price_at_supportBonusPrice at support level
price_above_recent_highBonusPrice broke above recent high
price_below_ema50Kill SwitchPrice below EMA(50)
price_below_ema50_slope_deadKill SwitchBelow EMA(50) + no slope
price_in_freefallKill SwitchPrice dropping rapidly
below_ema50PenaltyPrice is below EMA(50)
overshoot_below_ema50PenaltyPrice overshot below EMA(50)
explosive_bounce_no_roomPenaltyBounce was explosive — limited upside left

ADX

TriggerTypeDescription
adx_strong_trendBonusADX > 25 — strong trend
adx_weak_trendPenaltyADX < 20 — no clear trend
adx_below_15PenaltyADX < 15 — extremely flat market

Sentiment / Market Regime

TriggerTypeDescription
extreme_fear_regimeAnyExtreme fear detected in market
fear_greed_extremeAnyFear & Greed index at extremes
sentiment_conflicting_signalsPenaltyMixed sentiment signals
sentiment_extreme_over_14_daysPenaltyExtreme sentiment sustained 14+ days
sentiment_persistent_2_daysAnySentiment persistent for 2+ days

Cointegration / Pairs

TriggerTypeDescription
cointegration_confirmedBonusPair cointegration confirmed
cointegration_weakPenaltyWeak cointegration signal
cointegration_brokenKill SwitchCointegration relationship broken
spread_still_divergingPenaltySpread still moving apart
spread_zscore_extremeBonusSpread z-score at extremes
zscore_beyond_3_5Kill SwitchZ-score > 3.5 — extreme divergence
half_life_shortBonusMean reversion half-life short
half_life_too_longPenaltyHalf-life too long for strategy
correlation_highBonusPair correlation is high

Multi-Timeframe

TriggerTypeDescription
no_active_15m_setupPenaltyNo active 15m setup available
setup_15m_confidence_highBonus15m setup has high confidence
setup_15m_expiredPenalty15m setup expired

On-Chain / External

TriggerTypeDescription
onchain_confirms_directionBonusOn-chain data confirms direction
onchain_contradictsPenaltyOn-chain data contradicts signal
onchain_strongly_contradictsKill SwitchOn-chain strongly contradicts
btc_crash_eventKill SwitchBTC crash event detected
btc_in_freefallKill SwitchBTC in freefall mode
exchange_specific_eventKill SwitchExchange-specific event (halt, etc)
known_manipulation_eventKill SwitchKnown market manipulation detected
extreme_persists_too_longPenaltyExtreme condition persisting too long

Kill Switches

Kill switches forçam a confiança para o piso (floor) quando condições perigosas sao detectadas. Sao freios de emergência que protegem contra cenarios extremos.