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

Want to kickstart your project?Use the new AI Studio to create your code