Skip to content

Instantly share code, notes, and snippets.

@Chimezirim-Bassey
Created November 28, 2024 03:01
Show Gist options
  • Save Chimezirim-Bassey/4b825d4f0b8fcde43df183cb87df6464 to your computer and use it in GitHub Desktop.
Save Chimezirim-Bassey/4b825d4f0b8fcde43df183cb87df6464 to your computer and use it in GitHub Desktop.
import logging
from aiomql.lib.bot import Bot
from aiomql.contrib.strategies import FingerTrap
from aiomql.contrib.symbols import ForexSymbol
def sample_bot():
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
syms = ["Volatility 75 Index", "Volatility 100 Index", "Volatility 50 Index"]
symbols = [ForexSymbol(name=sym) for sym in syms]
strategies = [FingerTrap(symbol=symbol) for symbol in symbols]
bot = Bot()
bot.add_strategies(strategies=strategies)
bot.execute()
sample_bot()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment