Florin Tudor / Perfil
- Informações
|
no
experiência
|
5
produtos
|
38
versão demo
|
|
0
trabalhos
|
1
sinais
|
0
assinantes
|
Queen of Gold Ai Ucb Agents é um Expert Advisor MQL5 adaptativo que combina lógica de entrada baseada em regras com uma camada contextual de bandido UCB O objetivo não é apenas detectar oportunidades de trading mas aprender qual ação é mais eficaz em um determinado contexto de mercado e manter esse conhecimento entre sessões Como funciona O sistema começa com um motor de sinais determinístico A base é construída a partir do comportamento de velas consecutivas interpretado de forma contrária
O Agente King of Gold AI UCB é um avançado algoritmo de aprendizado de máquina projetado para otimizar decisões de negociação por meio de aprendizado adaptativo e seleção probabilística. Principais funcionalidades: Bandido de decisão UCB com filtragem contextual e otimização de sinais Arquitetura de triplo bandido (camadas de Decisão, Execução e Perfil) Dimensionamento dinâmico de lotes com gerenciamento de risco adaptativo Armazenamento persistente de contexto e inicialização do histórico de
Agente AI Multi-Arm Bandit – Motor de Aprendizado Adaptativo e Tomada de Decisão Um sistema de trading avançado, impulsionado por um algoritmo multi-arm bandit, que aprende e se adapta continuamente às condições do mercado. O agente otimiza a execução de trades, o tamanho das posições e a tomada de decisões em tempo real com base no feedback de desempenho. Lógica de Decisão: Utiliza a fórmula UCB: exploit + explore, onde exploration = C * sqrt(log(totalPulls + 1) / armPulls) Prioriades baseadas
UCB_STATE_V4 = a snapshot of your bandit algorithm’s state:
Which combinations it has tried
How many times it tried them
The profit/reward for each
Its internal scoring
Basically, it’s the memory of your AI.
🧠 Structure
1️⃣ Header
UCB_STATE_V4
1
→ Version + config info.
2️⃣ Default/Fallback Strategy
-1|2|0|0|0|0|2|0|0|AGGRESSIVE|GREEDY
-1 probably = SELL
AGGRESSIVE + GREEDY = style
Trades = 0, Profit = 0 → never used
3️⃣ Important strategies that were actually used
1|1|1|1|1|0|2|0|0|NORMAL|MODERATE|EXEC
96 trades
Profit: 37.42
Score: 0.40
🔥 This is your main winning strategy
Chosen 96 times
Positive profit and positive score → bandit prefers this
-1|1|1|1|1|0|2|0|0|NORMAL|MODERATE|EXEC
22 trades
Profit: 13.32
Score: negative
Positive profit but negative score → probably high drawdown or risk
4️⃣ Other strategies
0 trades
0 profit
Not explored yet or never chosen
5️⃣ Symbol statistics
EURUSD
118 trades
Win rate ~55%
The bandit is learning, not random
6️⃣ Decision history
timestamp | chosen strategy | reward
Shows when a strategy was chosen and the outcome
❗ Key Problem (why it’s not working in Tester)
Strategy Tester in MT5 runs in a sandbox
DLL cannot write anywhere freely
It only writes to:
MQL5\Files\
Tester\Agent-xxx\MQL5\Files\
✅ Live accounts don’t have this restriction → that’s why it works there.
🔥 Recommended Testing Environments
Demo account – works like live, writes files normally
Forward testing on chart – watch bandit evolution
VPS – run continuously, bandit keeps learning
Conclusion:
Your bandit is working (96 trades + scores)
The algorithm is fine
The limitation is MT5 Strategy Tester, not the AI itself
UCB_STATE_V4
1
-1|2|0|0|0|0|2|0|0|AGGRESSIVE|GREEDY 0 1774229303 0 0.00000000 0.00000000 0 0.00000000 0.00000000 0 0.00000000 0.00000000 0 0.00000000 0.00000000
3
1|1|1|1|1|0|2|0|0|NORMAL|MODERATE|EXEC 96 1774229084 96 37.42000000 0.40015989 0 0.00000000 0.00000000
-1|1|1|1|1|0|2|0|0|NORMAL|MODERATE|EXEC 22 1774229084 22 13.32000000 -0.16765199 0 0.00000000 0.00000000
-1|2|0|0|0|0|2|0|0|AGGRESSIVE|GREEDY|EXEC 0 1774229303 0 0.00000000 0.00000000 0 0.00000000 0.00000000
6
0|1|0|0|2|0|0|AGGRESSIVE|GREEDY 0 1774229304 0 0.00000000 0.00000000 0 0.00000000 0.00000000
0|2|0|0|2|0|0|AGGRESSIVE|GREEDY 0 1774229363 0 0.00000000 0.00000000 0 0.00000000 0.00000000
0|2|0|0|2|0|0|AGGRESSIVE|CONSERVATIVE 0 1774229408 0 0.00000000 0.00000000 0 0.00000000 0.00000000
0|2|0|0|2|0|0|AGGRESSIVE|MODERATE 0 1774229415 0 0.00000000 0.00000000 0 0.00000000 0.00000000
0|1|2|0|1|2|0|AGGRESSIVE|CONSERVATIVE 0 1774596950 0 0.00000000 0.00000000 0 0.00000000 0.00000000
0|1|2|1|1|2|0|AGGRESSIVE|CONSERVATIVE 0 1774597077 0 0.00000000 0.00000000 0 0.00000000 0.00000000
1
EURUSD 1 118 82 0.55416158 0.12497833 50.00000000
2
EURUSD 1 1 1 1 1 0 96 66 37.42000000 -16.84000000
EURUSD 1 -1 1 1 1 0 22 16 13.32000000 25.44000000
0
2
1547155986 -1 -1|2|0|0|0|0|2|0|0|AGGRESSIVE|GREEDY 1 5.00000000 -1|2|0|0|0|0|2|0|0|AGGRESSIVE|GREEDY|EXEC 0 1774229304
1547159109 -1 -1|2|0|0|0|0|2|0|0|AGGRESSIVE|GREEDY 1 5.00000000 -1|2|0|0|0|0|2|0|0|AGGRESSIVE|GREEDY|EXEC 0 1774229361


