Neural Networks, Deep Learning, Data Science, Algorithmic Trading, Cryptocurrency Investment.
take-profit sl_price = self.data.Close[-1] * (1 - sl_pct) tp_price = self.data.Close[-1] * (1 + tp_pct) self.buy(sl=sl_price, tp=tp_price) elif self.signal1_1 == 2: 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 =