| import os | |
| from datetime import time | |
| import pytz | |
| # ββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Global Configuration | |
| # ββββββββββββββββββββββββββββββββββββββββββββββ | |
| # MT5 Connection | |
| MT5_PATH = r"" # Path to terminal64.exe, e.g., r"C:\Program Files\MetaTrader 5\terminal64.exe" | |
| MT5_LOGIN = 0 # Account number (int) | |
| MT5_PASSWORD = "" # Account password | |
| MT5_SERVER = "" # Broker server name | |
| DEFAULT_SYMBOL = "XAUUSD" | |
| TIMEFRAME = 1 # 1 minute for basic candles if needed, but we focus on ticks | |
| # Market Profile Settings | |
| # Session defined as 22:00 UTC (previous day) to 00:00 UTC (current day) as per request? | |
| # Actually user said: "after the feature-engineered micro marketprofile is established at 22 UTC to 0 UTC, then make sure there is a developing VAH VAL and POC line." | |
| # This implies the "profile building" phase is 22:00 -> 00:00. | |
| # And "developing" lines start from 00:00 onwards? | |
| # We will define the PROFILE_START_TIME and PROFILE_END_TIME. | |
| TIMEZONE_UTC = pytz.utc | |
| PROFILE_START_TIME = time(22, 0, 0) # 22:00 UTC | |
| PROFILE_END_TIME = time(0, 0, 0) # 00:00 UTC (next day effectively) | |
| # The user might mean a 2-hour window [22, 00) to build the initial profile? | |
| # Or maybe the "day" starts at 22:00 UTC? | |
| # "focus on ... gap-filled ... approach ... established at 22 UTC to 0 UTC" | |
| # Let's assume we use data from 22:00 (prev day) to 00:00 (current day) to ESTABLISH the levels. | |
| # And then we CONTINUE updating/developing them? Or we use those fixed levels? | |
| # "make sure there is a developing VAH VAL and POC line." -> implies they continue to evolve? | |
| # Or maybe they start plotting from 00:00 based on the 22-00 data? | |
| # I will implement it such that the profile *accumulates* starting from a specialized time. | |
| # Visualization Colors | |
| COLOR_BID = '#0000FF' # Blue | |
| COLOR_ASK = '#FF0000' # Red | |
| COLOR_VAH = '#00FF00' # Green | |
| COLOR_VAL = '#FF00FF' # Magenta | |
| COLOR_POC = '#FFFF00' # Yellow | |
| COLOR_BACKGROUND = '#000000' | |
| COLOR_TEXT = '#FFFFFF' | |
| # Technical | |
| UNIT_SIZE = 0.01 # For XAUUSD, $0.01 | |