Machine Learning, Deep Learning, Cryptocurrency Investment, Algorithmic Trading, Neural Networks.
sl_price = self.data.Close[-1] * (1 + (self.sl_pct_s * 0.001)) tp_price = self.data.Close[-1] * (1 - (self.tp_pct_s * 0.001)) limit_price_s = tp_price * 1.004 self.position.is_short self.sell(sl=sl_price, limit=limit_price_s, tp=tp_price) if self.position.is_short: self.entry_time =