//+------------------------------------------------------------------+ //| AccountInfoDisplay.mq5 | //| Copyright 2000-2025, MetaQuotes Ltd. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2000-2025, MetaQuotes Ltd." #property link "https://www.mql5.com" //--- #include #include //--- #include "AccountInfoDisplayInit.mqh" //--- //+------------------------------------------------------------------+ //| Account Info Display script class | //+------------------------------------------------------------------+ class CAccountInfoDisplay { protected: CAccountInfo m_account; //--- chart objects CChartObjectLabel m_label[28]; CChartObjectLabel m_label_info[28]; public: CAccountInfoDisplay(void); ~CAccountInfoDisplay(void); //--- bool Init(void); void Deinit(void); void Processing(void); private: void AccountInfoToChart(void); }; //--- CAccountInfoDisplay g_accountDisplay; //+------------------------------------------------------------------+ //| Constructor | //+------------------------------------------------------------------+ CAccountInfoDisplay::CAccountInfoDisplay(void) { } //+------------------------------------------------------------------+ //| Destructor | //+------------------------------------------------------------------+ CAccountInfoDisplay::~CAccountInfoDisplay(void) { } //+------------------------------------------------------------------+ //| Method Init. | //+------------------------------------------------------------------+ bool CAccountInfoDisplay::Init(void) { int i; int sy=10; int dy=16; color color_label; color color_info; color color_heading = clrDarkGray; int font_size_data = 8; int font_size_heading = 9; //--- tuning colors color_info =(color)(ChartGetInteger(0,CHART_COLOR_BACKGROUND)^0xFFFFFF); color_label=(color)(color_info^0x202020); //--- if(ChartGetInteger(0,CHART_SHOW_OHLC)) sy+=16; int current_y = sy; //--- creation Labels[] for(i=0;i