Last active
April 27, 2024 21:19
-
-
Save Ichinga-Samuel/0aa8f3b5d3fc0c3817a0c85cc8d147cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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