IQ Option Trading Bot
IQ Option Trading Bot
# Check connection
if not I_want_money.check_connect():
print("Login failed.")
exit()
else:
print("Logged in.")
def get_signal(prices):
fast_ma = get_moving_average(prices, fast_period)
slow_ma = get_moving_average(prices, slow_period)
signal = get_signal(prices)
if signal:
print(f"Signal detected: {signal.upper()}")
if result > 0:
print(f"Win! Profit: ${result}")
elif result == 0:
print("Draw.")
else:
print(f"Loss: ${-result}")
else:
print("Trade failed.")
else:
print("No trade signal.")