Skip to Content
FU StrategyConfiguration

Configuration

Copy .env.example to .env in fu-strategy/. Capital.com provides the first three credentials from Settings → API integrations.

Required

VarExampleNotes
CAPITAL_API_KEYabc123...Custom API keys are tied to one environment (demo or live)
CAPITAL_IDENTIFIERyou@example.comAccount email/username
CAPITAL_PASSWORDPlain text in .env; client RSA-encrypts before send
CAPITAL_ENVIRONMENTdemodemo or live

Capital.com auto-execution (1M)

VarDefaultNotes
CAPITAL_EXECUTION_ENABLEDfalseMaster kill switch for live positions
CAPITAL_EXECUTION_TIMEFRAME1MMust also be in LTF_TIMEFRAMES
CAPITAL_EXECUTION_SIZE1.0Deal size; raised to broker minDealSize if smaller
CAPITAL_EXECUTION_GUARANTEED_STOPfalseUses stricter minControlledRiskStopDistance when true
CAPITAL_EXECUTION_USE_MARKET_DISTANCEtrueAnchor SL/TP to live bid/offer via SL_PCT
CAPITAL_EXECUTION_SL_PCT0.5SL % of live entry; TP = SL_PCT × RR_TARGET
CAPITAL_EXECUTION_SAFETY_MULTIPLIER1.5Multiplier on broker min stop + spread

Strategy

VarDefaultNotes
SYMBOLSEUR_USD,GBP_USD,USD_JPYXXX_YYY format; mapped to Capital epics
HTF_TIMEFRAMES4H,1HBias + zones
LTF_TIMEFRAMES15M,5M,1MFU entry; include 1M for auto-exec
PAPER_MODEtrueDisables real order placement
RISK_PER_TRADE_PCT0.5Position sizer input
BACKFILL_CANDLES500Per-TF history on startup
POLLING_ENABLEDfalseStarts Capital poller when credentials + symbols set
POLLING_TAIL_CANDLES5Candle tail per poll

FU indicator

VarDefaultNotes
FU_USE_DOJI_FILTERfalseRequire prior candle to be a doji
FU_USE_MA_FILTERfalseRequire close vs SMA agreement
FU_SMA_LENGTH50SMA length when MA filter on
FU_DOJI_BODY_RATIO0.3Body ≤ 30% of range = doji
FU_ONLY_MODEtrueFU without requiring HTF zones/bias
FU_FIRE_ON_FORMINGtrueRequired for realtime forming-candle signals

Notifications

VarDefaultNotes
NOTIFICATIONS_ENABLEDtrueMaster on/off
NOTIFICATION_CHANNELSwhatsapp,smsAllow-list
NOTIFICATION_NUMBERSemptyE.164, comma-separated
WHATSAPP_*Access token, phone number id, verify token, app secret, optional template
PINDO_*API URL, token, sender id

Operational paths: SIGNAL_LOG_PATH (./logs/signals.jsonl), NOTIFICATIONS_LOG_PATH (./logs/notifications.jsonl), LOG_LEVEL.

Free-form WhatsApp text only works inside the 24-hour session window. Use a template with placeholders {{1}}…{{8}} for unsolicited production alerts.

Last updated on