File size: 911 Bytes
4cb21eb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# src/strategy.py

def get_market_regime(prediction_prob):
    """
    Translates model probability into actionable trading zones.
    """
    if prediction_prob >= 0.578:
        return {
            "zone": "GREEN ZONE (Sniper)",
            "color": "green",
            "icon": "🚀",
            "action": "Move/Stay to 3x S&P 500 (SPXL/UPRO)",
            "tag": "High Conviction Bullish"
        }
    elif 0.530 <= prediction_prob < 0.578:
        return {
            "zone": "YELLOW ZONE (Normal)",
            "color": "orange",
            "icon": "⚖️",
            "action": "Move/Stay to 1x S&P 500 (SPY/VOO)",
            "tag": "Standard Market Beta"
        }
    else:
        return {
            "zone": "RED ZONE (Cash)",
            "color": "red",
            "icon": "🛡️",
            "action": "Move/Stay to CASH (0x)",
            "tag": "Risk Aversion / Defensive"
        }