Machine Learning, Deep Learning, Cryptocurrency Investment, Algorithmic Trading, Neural Networks.
self.position and self.trades[0].pl_pct >= (self.TRAILING_ACTIVATE_PCT * 0.001): self.max_profit = max(self.max_profit, self.trades[0].pl_pct) trailing_stop_price = self.trades[0].entry_price * (1 - (self.max_profit - (self.TRAILING_STOP_PCT * 0.001))) sl_price = max((self.data.Close[-1] * (1 -