Generation

generate functionWed, 02 Aug 2023

Buy when close above ema simple moving average and take 5 points profit

def Buy(): return self.inputs.close[0] > self.inputs.ema[0] and self.inputs.close[0] - self.inputs.ema[0] > 5

Questions about programming?Chat with your personal AI assistant