Files
aiomql/sample_bot.py
T
Ichinga Samuel d65a8db1a2 v4
2024-11-04 00:32:51 +01:00

23 lines
609 B
Python

import logging
from aiomql.lib.bot import Bot
from aiomql.contrib.strategies import Chaos
from aiomql.contrib.symbols import ForexSymbol
def chaos_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 = [Chaos(symbol=symbol) for symbol in symbols]
bot = Bot()
bot.executor.timeout = 10
bot.add_strategies(strategies=strategies)
bot.execute()
chaos_bot()