This commit is contained in:
Ichinga Samuel
2024-11-04 00:32:51 +01:00
parent 2c46e18528
commit d65a8db1a2
85 changed files with 5071 additions and 2512 deletions
+11 -11
View File
@@ -1,22 +1,22 @@
import logging
from aiomql.lib.bot import Bot
from aiomql.core import Config
from aiomql.contrib.strategies import FingerTrap, Chaos
from aiomql.contrib.strategies import Chaos
from aiomql.contrib.symbols import ForexSymbol
def 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']
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]
stgs = [Chaos(symbol=symbol) for symbol in symbols]
config = Config()
strategies = [Chaos(symbol=symbol) for symbol in symbols]
bot = Bot()
bot.executor.timeout = 60
bot.add_strategies(strategies=stgs)
bot.executor.timeout = 10
bot.add_strategies(strategies=strategies)
bot.execute()
bot()
print("Bot executed successfully")
chaos_bot()