Neural Networks, Deep Learning, Data Science, Algorithmic Trading, Cryptocurrency Investment.
sl_pct = 0.1 # 10% stop-loss tp_pct = 0.025 # 2.5% take-profit sl_price = self.data.Close[-1] * (1 + sl_pct) tp_price = self.data.Close[-1] * (1 - tp_pct) self.sell(sl=sl_price, tp=tp_price) bt_0 = Backtest(df_ens, MyCandlesStrat_0, cash=100000, commission=.001) stat_0 = bt_0.run() stat_0 confusion