Neural Networks, Deep Learning, Data Science, Algorithmic Trading, Cryptocurrency Investment.
df_ens.set_index('Date', inplace=True) def SIGNAL_2(df_ens): return df_ens['tns'] class MyCandlesStrat_2(Strategy): def init(self): super().init() self.signal1_1 = self.I(SIGNAL_2, self.data) def next(self): super().next() if self.signal1_1 == 1: sl_pct = 0.1 # 10% stop-loss tp_pct = 0.025 # 2.5%