mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-07-28 12:47:43 +00:00
21 lines
686 B
Python
21 lines
686 B
Python
import logging
|
|
|
|
from aiomql.lib.bot import Bot
|
|
from aiomql.contrib.strategies import FingerTrap, Chaos
|
|
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]
|
|
c_strategies = [Chaos(symbol=symbol) for symbol in symbols]
|
|
f_strategies = [FingerTrap(symbol=symbol) for symbol in symbols]
|
|
strategies = c_strategies + f_strategies
|
|
bot = Bot()
|
|
bot.add_strategies(strategies=strategies)
|
|
bot.execute()
|
|
|
|
|
|
sample_bot()
|