Replies: 1 comment
-
See also: #134 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
So i am tryin simple momentum strategy on BTC/USD data. When i define size as a wholenumber, backtest run just fine. But when i try to define it as a fraction of equity, i get empty results like this:
This is how i run the code:
`class MomTrade(Strategy):
# Define timeperiod for momentum
n = 15
bt = Backtest(df, MomTrade, cash=100000, commission=0)
stats = bt.run()
display(stats)`
What am i doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions