Replies: 1 comment 1 reply
-
Firstly, you have an issue in line: self.signal = pd.Series(SIGNAL(self.data.df)).array If you want self.signal = self.I(SIGNAL, self.data.df) See |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi,

in the first I want to say you, thanks for this library.
I have an error that I encountered,
I receive form my strategy a dataframe with signal ( 1 for buy position and 2 for sell position)
I transform my dataframe in array. I learned your library and you use array for to compute backtest.
I verified my array and I have only 16 signal, however when I run the backtest i found 1504 trades?
Please can you help me to understand my error?
this is my code:
Beta Was this translation helpful? Give feedback.
All reactions