-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
87 lines (72 loc) · 3.65 KB
/
.env.example
File metadata and controls
87 lines (72 loc) · 3.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Polymarket Scalp Radar - Configuration
# Copy this file to .env and fill in your credentials:
# cp .env.example .env
# ── CREDENTIALS ──────────────────────────────────────────────
# Private key exported from Polymarket wallet (0x...)
POLYMARKET_API_KEY=0xYOUR_PRIVATE_KEY_HERE
# ── MARKET SELECTION ────────────────────────────────────────
# Crypto asset to trade (btc, eth, sol, xrp)
MARKET_ASSET=btc
# Market window duration in minutes (5 or 15)
MARKET_WINDOW=15
# ── TRADING ──────────────────────────────────────────────────
# Maximum exposure limit in USD (open positions + pending orders)
POSITION_LIMIT=76
# USD amount per trade (can also be overridden via command line: python radar_poly.py 10)
TRADE_AMOUNT=4
# Price alert: enable (1) or disable (0) audio beep when token price crosses threshold
PRICE_ALERT_ENABLED=1
PRICE_ALERT=0.80
# Signal opportunity detection: enable (1) or disable (0) beep + trade prompt
SIGNAL_ENABLED=1
# Minimum signal strength (0-100) to trigger opportunity beep
SIGNAL_STRENGTH_BEEP=50
# Beep when BTC price moves $X or more from Price to Beat (0 = disabled)
PRICE_BEAT_ALERT=80
# ── INDICATOR PERIODS ────────────────────────────────────────
# RSI period (2-6 optimal for 15min; shorter = more reactive)
RSI_PERIOD=5
# MACD periods (standard 12/26/9 — confirmed adequate for 15min)
MACD_FAST=12
MACD_SLOW=26
MACD_SIGNAL=9
# Bollinger Bands (10/1.5 — tighter for 15min, better squeeze detection)
BB_PERIOD=10
BB_STD=1.5
# ADX period (14 = standard, recommended for regime detection)
ADX_PERIOD=14
# ── SIGNAL WEIGHTS ───────────────────────────────────────────
# Component weights for signal score (must sum to ~1.0)
# Mean reversion strategy: divergence + bollinger have higher weight
# BTC Momentum (RSI + candle score)
W_MOMENTUM=0.25
# Divergence (BTC price vs Polymarket price — key for mean reversion)
W_DIVERGENCE=0.25
# Support/Resistance levels
W_SUPPORT_RESISTANCE=0.10
# MACD histogram delta (confirmation, not primary)
W_MACD=0.10
# VWAP position + slope
W_VWAP=0.15
# Bollinger Bands position (squeeze + band touch = entry signal)
W_BOLLINGER=0.15
# ── VOLATILITY ───────────────────────────────────────────────
# ATR/price ratio threshold to flag high volatility (default 0.03 = 3%)
VOL_THRESHOLD=0.03
# Score multiplier when high volatility detected
VOL_AMPLIFIER=1.3
# ── REGIME ADJUSTMENT ────────────────────────────────────────
# CHOP regime: dampen signal (0.5 = reduce by 50%)
REGIME_CHOP_MULT=0.50
# TREND aligned: boost signal (1.15 = +15%)
REGIME_TREND_BOOST=1.15
# Counter-trend: reduce signal (0.7 = -30%)
REGIME_COUNTER_MULT=0.70
# ── PHASE THRESHOLDS ────────────────────────────────────────
# Min signal strength per market phase (proportional to window size)
# EARLY (>66% time left): conservative — wait for data
PHASE_EARLY_THRESHOLD=55
# MID (33-66% time left): best entry window — more permissive
PHASE_MID_THRESHOLD=25
# LATE (6-33% time left): very selective — only high conviction
PHASE_LATE_THRESHOLD=70