Generation

generate functionSun, 20 Oct 2024

i want you to make me a simple algo bot for mt5 where the bot will sell and buy on the basis of rsi a detailed complete code

def algo(rsi, buy, sell): if rsi > 70: print('BUY') buy = buy + 1 elif rsi < 30: print('SELL!') sell = sell + 1 else: print('NO OP') def main(): rsi = 0 buy = 0 sell = 0

Questions about programming?Chat with your personal AI assistant