Vizion-Trading-EA/ChartLabels.mqh
SahrJohn SahrJohn 526860b9cd EA: sync live build (Jul-Nov 2026) — trade report direction/setup fix, VZ indicators, risk modules
- AIGateway/profitgtx: report_trade takes direction and setup from the position's
  opening deal ("dir_src":"entry"); the closing deal inverted every direction and
  restarts lost the setup (99% "auto")
- add MATheory, RiskGuards, RiskSizing, TradePolicy (setup blocklist, strict AI gate)
- add VZ_Core + VZ_Features/MFIB/Regime/Setups/Sessions indicators, VZ_FeaturesExport
  service, VZ_DumpMA, VZ_TogglePause
- margin-aware sizing, news, labels and session updates since 2026-07-14

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 13:48:22 -06:00
#ifndef CHART_LABELS_MQH
#define CHART_LABELS_MQH
//+------------------------------------------------------------------+
//| ChartLabels.mqh |
//| The status panel in AILabels.mqh is the single source of truth |
//| for on-chart state. The old top-left status line and the old |
//| bottom-left session/news labels have been folded into it. |
//+------------------------------------------------------------------+
#include "AILabels.mqh"
// Retained only so a label left behind by an older build gets cleaned up.
string STATUS_LABEL = "VZ_STATUS";
void UpdateLabels()
{
// One-shot: clear a status label stranded by a previous version.
static bool legacy_cleared = false;
if(!legacy_cleared)
{
ObjectDelete(0, STATUS_LABEL);
legacy_cleared = true;
}
UpdateAILabel();
}
void CleanupLabels()
{
ObjectDelete(0, STATUS_LABEL);
CleanupAILabels();
CleanupSessionLabel();
}
#endif