Product Demo

def algo(data, assets):capital, shares = assets price = data.current_price() short_period, long_period, threshold = 5, 20, 0.01 if data.shorter_than(long_period): return 0 trend = data.moving_averages(short_period, long_period) account = Account(assets) return account.buy(trend*capital/price) if trend > threshold else account.sell(trend*shares) if trend < -threshold else 0
ROI
-
Sharpe Ratio
-
Alpha
-
Beta
-
Terms and Conditions