Florin Tudor / Profilo
- Informazioni
|
no
esperienza
|
5
prodotti
|
38
versioni demo
|
|
0
lavori
|
1
segnali
|
0
iscritti
|
Queen of Gold AI UCB Agents è un Expert Advisor (EA) MQL5 adattivo che combina una logica di ingresso basata su regole con un livello bandito Upper Confidence Bound (UCB) contestuale. Il suo scopo non è solo rilevare opportunità di trading, ma anche apprendere quale azione sia più efficace in un dato contesto di mercato e conservare questa conoscenza tra le sessioni. Funzionamento L’EA parte da un motore di segnali deterministico. Il trigger di base si basa sul comportamento delle candele
L’Agente King of Gold AI UCB è un avanzato algoritmo di apprendimento automatico progettato per ottimizzare le decisioni di trading attraverso apprendimento adattivo e selezione probabilistica. Caratteristiche principali: Bandito decisionale UCB con filtraggio contestuale e ottimizzazione dei segnali Architettura a triplo bandito (livelli Decisione, Esecuzione, Profilo) Dimensionamento dinamico dei lotti con gestione del rischio adattiva Memorizzazione persistente del contesto e inizializzazione
Agente AI Multi-Arm Bandit – Motore di Apprendimento Adattivo e Decisionale Un sistema di trading avanzato, basato su un algoritmo multi-arm bandit, che apprende e si adatta continuamente alle condizioni di mercato. L’agente ottimizza in tempo reale l’esecuzione delle operazioni, la dimensione delle posizioni e le decisioni sulla base del feedback sulle performance. Logica di Decisione Utilizza la formula UCB: exploit + explore, dove exploration = C * sqrt(log(totalPulls + 1) / armPulls)
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


