Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into orca
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 authored Nov 25, 2024
2 parents 778a97c + 64e67c0 commit f983716
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions risk/_actor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import logging
from typing import Tuple, Union

from scipy.optimize import linprog
import numpy as np
from scipy.optimize import linprog

Expand Down Expand Up @@ -29,6 +29,7 @@
from core.queries.ohlcv import TA, BatchBars
from core.queries.portfolio import GetPortfolioPerformance


RiskEvent = Union[
NewMarketDataReceived,
PositionOpened,
Expand All @@ -44,8 +45,8 @@
ANOMALY_CLIP = ANOMALY_CLIP_MULTIPLIER * DEFAULT_ANOMALY_THRESHOLD
LATENCY_GAP_THRESHOLD = 2.2

VOLATILITY_MULTY = 1.5
RR_MULTY = 2.0
VOLATILITY_MULTY = 2.0
RR_MULTY = 3.0


def _ema(values, alpha=0.1):
Expand Down

0 comments on commit f983716

Please sign in to comment.