import speech_recognition as sr import pyttsx3 import datetime import random import json import os import re import ntplib from time import ctime from duckduckgo_search import DDGS import wikipediaapi current_assistant = "clara" user_name = "Mykee" BRAIN_FILE = "brain.json" # --- LOAD OR CREATE BRAIN --- def load_brain(): if os.path.exists(BRAIN_FILE): with open(BRAIN_FILE, "r") as f: return json.load(f) return { "facts": { "what is the capital of ghana": "The capital of Ghana is Accra.", "what is the capital of nigeria": "The capital of Nigeria is Abuja.", "what is the capital of france": "The capital of France is Paris.", "what is the capital of usa": "The capital of the USA is Washington D...
Posts
Ddxx
- Get link
- X
- Other Apps
# ============================================ # MY QUANT BOT - Phase 8 (Final Fixed) # What's new: # 1. Uses FairEconomy free news API # 2. Detects HIGH impact news for our pairs # 3. Pauses trading 30 mins before news # 4. Resumes 15 mins after news passes # 5. Everything from Phase 6 still works # ============================================ import os import time import numpy as np import MetaTrader5 as mt5 import pandas as pd import requests from dotenv import load_dotenv from sklearn.ensemble import RandomForestRegressor, RandomForestClassifier from sklearn.preprocessing import StandardScaler from datetime import datetime, timezone, timedelta # --- Load credentials --- load_dotenv() LOGIN = int(os.getenv("MT5_LOGIN")) PASSWORD = os.getenv("MT5_PASSWORD") SERVER = os.getenv("MT5_SERVER") # --- Settings --- SYMBOL = "EURUSDm" TIMEFRAME = mt5.TIMEFRAME_M15 RSI_PERIOD = 14 RSI_BUY = 30 RSI_SELL...