Not making any trades #411
-
I'm probably missing something obvious but this strategy isn't making any trades. I'm getting buy and sell signals but it doesn't actually do a trade. please help Expected BehaviorIndicators were precalculated and added to the data frame. I expected trades to be made based on those indicators Actual BehaviorIt didn't make any trades. I also didn't get any errors. Steps to ReproduceUse the code below and the data frame from the linked csv file. Link: https://github.com/alizain5693/data/blob/main/ethereumData.csv Additional info` strategy
bt = Backtest(data,EMAcross,cash = 1000, commission = 0.00036) `
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Probably solved by now, but I have to let you know that if the initial investment is less than the prices, no trade will happen. |
Beta Was this translation helpful? Give feedback.
Probably solved by now, but I have to let you know that if the initial investment is less than the prices, no trade will happen.