def compute_score(rvol: float, atrp: float, trend: str) -> int:
    base = 70
    base += max(0, min(20, (rvol - 1.0) * 10))
    base += max(0, min(10, (8 - abs(5 - atrp))))
    if trend == "Aufwärts":
        base += 5
    return int(max(0, min(99, base)))
