feat: Add P&L Tracking with automatic MT5 history import (V1.9)

Added comprehensive P&L tracking system with automatic MT5 history import:

New Features:
- Automatic MT5 history sync (hourly)
- Entry+Exit deal matching for complete positions
- Real P&L calculation (profit + commission + swap)
- Real Win Rate from closed MT5 trades
- Multi-period analysis (Today, Week, Month, All-Time)
- Live performance dashboard
- Performance metrics (Profit Factor, Max Drawdown, Win/Loss Ratio)
- Recent trades display

Files Added:
- mt5_pnl_tracker.py: Core P&L tracking module (950 lines)
- integrate_pnl_tracker.py: Notebook integration script
- PNL_TRACKER_GUIDE.md: Complete documentation
- PNL_QUICK_START.md: 3-step quick start guide
- BOT_IMPROVEMENTS_SUMMARY.md: Complete improvements timeline

Notebook Changes:
- Added Cells 85-90 (6 new cells for P&L tracking)
- Cell 85: Section header (Markdown)
- Cell 86: Setup P&L tracker
- Cell 87: Initial MT5 history sync
- Cell 88: Add P&L sync to scheduler
- Cell 89: Usage instructions (Markdown)
- Cell 90: Live dashboard display

Scheduler:
- Added pnl_sync job (every 1 hour)
- Automatically imports last 7 days from MT5
- Matches Entry/Exit deals
- Calculates real P&L

Database:
- mt5_deals table: Raw MT5 deals
- matched_positions table: Complete trades (Entry+Exit)
- pnl_summary table: Aggregated metrics

Benefits:
- Know real Win Rate (not estimates)
- Track actual profit/loss accurately
- Validate strategy performance
- Data-driven threshold optimization
- Performance trend analysis

Total Cells: 85 → 91
Version: V1.6 → V1.9

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
cbazzaandClaude Sonnet 4.5 committed 2026-01-21 10:05:50 +01:00
1 parent 0a1ff55857
commit 4f47b8e2fe
8 files changed
+3157 -2

No files matched your search

+648
View File
@@ -3805,5 +3805,653 @@
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=615530575, order=675869982, volume=0.1, price=4606.21, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946446, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4606.21, stoplimit=0.0, sl=4600.9902810335, tp=4618.454297416249, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-16T14:01:13.946606",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 99.67,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 46.835222053234865,
"risk_adjusted_strength": 135427.0979417865,
"adaptive_interval": 15,
"session": "overlap",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=616413131, order=676815533, volume=0.1, price=4601.23, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946447, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4601.91, stoplimit=0.0, sl=4596.818433026479, tp=4613.798917433801, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-19T00:45:02.613677",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 97.39,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 45.42738037829813,
"risk_adjusted_strength": 88084.7020044152,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=619276952, order=679844542, volume=0.1, price=4671.92, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946448, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4671.91, stoplimit=0.0, sl=4660.093225459875, tp=4700.681936350312, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-19T02:30:00.831555",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 99.08,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 45.42738037829813,
"risk_adjusted_strength": 104125.08953574466,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=619568259, order=680176548, volume=0.1, price=4662.54, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946449, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4662.53, stoplimit=0.0, sl=4652.089044276061, tp=4687.897389309846, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-20T06:00:05.166106",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 47.19495462405951,
"risk_adjusted_strength": 190885.00517831958,
"adaptive_interval": 30,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=622100780, order=683097748, volume=0.1, price=4696.71, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946450, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4695.88, stoplimit=0.0, sl=4691.396728767591, tp=4705.86317808102, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-20T07:00:40.499654",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 42.55476383774404,
"risk_adjusted_strength": 190394.87791700166,
"adaptive_interval": 30,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=622227846, order=683238323, volume=0.1, price=4711.64, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946451, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4714.84, stoplimit=0.0, sl=4709.319161144661, tp=4727.94209713835, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-20T07:30:02.456654",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 42.53020001908677,
"risk_adjusted_strength": 190941.61264533826,
"adaptive_interval": 30,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=622289273, order=683308114, volume=0.1, price=4712.68, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946452, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4712.71, stoplimit=0.0, sl=4706.714345137781, tp=4726.999137155551, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-20T08:00:03.124918",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 42.53020001908677,
"risk_adjusted_strength": 185769.0934654935,
"adaptive_interval": 30,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=622347555, order=683373281, volume=0.1, price=4712.59, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946453, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4712.67, stoplimit=0.0, sl=4706.414005440422, tp=4727.609986398945, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-20T17:00:07.570228",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 37.53114615252939,
"risk_adjusted_strength": 173641.75723732746,
"adaptive_interval": 15,
"session": "ny",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=624021056, order=685179068, volume=0.1, price=4738.22, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946454, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4737.92, stoplimit=0.0, sl=4727.608076891289, tp=4762.439807771779, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-20T19:00:04.416600",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 36.21368783634897,
"risk_adjusted_strength": 186577.58013811495,
"adaptive_interval": 5,
"session": "ny",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=624463205, order=685650696, volume=0.1, price=4759.27, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946455, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4759.37, stoplimit=0.0, sl=4752.693620416256, tp=4775.46594895936, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-20T21:20:04.285879",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 36.0540615082044,
"risk_adjusted_strength": 205750.34164198177,
"adaptive_interval": 5,
"session": "ny",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=624784688, order=686012814, volume=0.1, price=4755.96, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946456, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4755.96, stoplimit=0.0, sl=4750.586758792306, tp=4768.693103019237, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-20T21:25:04.587942",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 36.05406150820439,
"risk_adjusted_strength": 200282.59594187367,
"adaptive_interval": 5,
"session": "ny",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=624799363, order=686028514, volume=0.1, price=4750.03, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946457, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4750.06, stoplimit=0.0, sl=4744.2469026304925, tp=4763.892743423767, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T00:30:05.959602",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 34.36381836588902,
"risk_adjusted_strength": 246676.18349259745,
"adaptive_interval": 30,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=624981890, order=686226300, volume=0.1, price=4759.84, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946458, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4759.94, stoplimit=0.0, sl=4755.793650203463, tp=4769.640874491343, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T00:45:07.038142",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 34.0402921958823,
"risk_adjusted_strength": 233186.10454970784,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=625016931, order=686262875, volume=0.1, price=4774.28, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946459, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4774.11, stoplimit=0.0, sl=4769.3634878086405, tp=4785.276280478398, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T01:45:03.288839",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 33.57884076809549,
"risk_adjusted_strength": 235226.23398408096,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=625132210, order=686391792, volume=0.1, price=4785.29, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946460, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4785.29, stoplimit=0.0, sl=4779.9702302318465, tp=4797.889424420385, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T02:15:05.594075",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 32.80835330268924,
"risk_adjusted_strength": 218285.23803373447,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=625213276, order=686481573, volume=0.1, price=4809.3, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946461, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4809.27, stoplimit=0.0, sl=4801.921773609983, tp=4826.275565975044, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T02:30:03.156145",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 32.345298217298605,
"risk_adjusted_strength": 211050.61733678254,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=625266363, order=686539846, volume=0.1, price=4828.06, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946462, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4828.13, stoplimit=0.0, sl=4819.7934330267535, tp=4847.676417433117, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T02:45:14.341508",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 32.141398368567934,
"risk_adjusted_strength": 194662.8376004239,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=625312285, order=686591262, volume=0.1, price=4819.58, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946463, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4818.99, stoplimit=0.0, sl=4808.766033371716, tp=4843.814916570709, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T03:00:17.512795",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 27.787599332906808,
"risk_adjusted_strength": 204056.79773180129,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=625353264, order=686637686, volume=0.1, price=4835.31, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946464, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4834.96, stoplimit=0.0, sl=4824.674396901469, tp=4861.724007746328, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T03:15:05.109280",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 27.787599332906808,
"risk_adjusted_strength": 195773.4245551895,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=625388685, order=686678333, volume=0.1, price=4828.4, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946465, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4828.4, stoplimit=0.0, sl=4817.440406232747, tp=4855.133984418133, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T05:45:06.690990",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 27.341708680846352,
"risk_adjusted_strength": 224039.07698453404,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=625740768, order=687070782, volume=0.1, price=4865.15, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946466, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4865.64, stoplimit=0.0, sl=4857.405050151763, tp=4885.492374620593, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T07:30:30.030426",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 22.169013847059617,
"risk_adjusted_strength": 233387.74224473824,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=625991765, order=687349400, volume=0.1, price=4883.94, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946467, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4884.19, stoplimit=0.0, sl=4875.258428173341, tp=4905.783929566647, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T07:45:05.258154",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 22.169013847059617,
"risk_adjusted_strength": 230647.33424524733,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=626048684, order=687409983, volume=0.1, price=4861.69, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946468, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4861.66, stoplimit=0.0, sl=4852.530458781233, tp=4884.203853046916, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T08:00:40.759944",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 22.169013847059617,
"risk_adjusted_strength": 215551.50082176333,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=626112341, order=687477396, volume=0.1, price=4847.64, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946469, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4847.43, stoplimit=0.0, sl=4836.95314854046, tp=4873.902128648851, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
},
{
"timestamp": "2026-01-21T08:15:07.190073",
"version": "V1.6_Adaptive_Complete",
"symbol": "XAUUSD",
"entry_signal": 1,
"confidence": 100.0,
"adaptive_threshold": 70,
"signal_quality": "excellent",
"market_regime": "ranging",
"regime_strength": 22.169013847059617,
"risk_adjusted_strength": 222782.99454024713,
"adaptive_interval": 15,
"session": "asian",
"relaxed_features": {
"pullback_entry_disabled": true,
"lower_confidence_threshold": true,
"lower_min_strength": true,
"fixed_tf_alignment": true
},
"adaptive_features": {
"adaptive_rhythm": true,
"session_aware": true,
"volatility_based": true
},
"position_control_active": true,
"order_result": "OrderSendResult(retcode=10009, deal=626167777, order=687540064, volume=0.1, price=4837.51, bid=0.0, ask=0.0, comment='Request executed', request_id=1587946470, retcode_external=0, request=TradeRequest(action=1, magic=234000, order=0, symbol='XAUUSD', volume=0.1, price=4837.45, stoplimit=0.0, sl=4827.044720809508, tp=4862.763197976229, deviation=20, type=0, type_filling=1, type_time=0, expiration=0, comment='TradingBot_V1.6', position=0, position_by=0))"
}
]