Skip to content

Instantly share code, notes, and snippets.

@Ichinga-Samuel
Last active April 27, 2024 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ichinga-Samuel/0aa8f3b5d3fc0c3817a0c85cc8d147cd to your computer and use it in GitHub Desktop.
Save Ichinga-Samuel/0aa8f3b5d3fc0c3817a0c85cc8d147cd to your computer and use it in GitHub Desktop.
import logging
from aiomql import ForexSymbol, Bot, Sessions, FingerTrap
logging.basicConfig(level=logging.WARNING)
def run_bot():
bot = Bot()
symbols = ['EURUSD', 'GBPUSD', 'USDJPY', 'USDCHF', 'USDCAD', 'AUDUSD', 'NZDUSD', 'EURGBP', 'EURJPY', 'GBPJPY']
strategies = [FingerTrap(symbol=ForexSymbol(name=symbol)) for symbol in symbols]
bot.add_strategies(strategies)
bot.execute()
run_bot()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment