Created
November 28, 2024 03:01
-
-
Save Chimezirim-Bassey/4b825d4f0b8fcde43df183cb87df6464 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.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