Replies: 1 comment
-
position size =-26 |
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
-
Hi noob on python and backtesting.py there,
I have a relatively simple customized technical indicator which produces/produced a signal on every time-slice. What I want to do is to have a maximum position size, which I tried to incorporate in the 'Strategy' class as per below :
Help!!! @kernc / or any experts on this module here? 🙏🙏🙏
Below are my signal and price data fed into the code : bt = Backtest(tmp2_, SignalStrategy, cash=10_000)
tmp2_ dataframe below
FYI, the data is SPY in which the price is about 385.0
Beta Was this translation helpful? Give feedback.
All reactions