Panel update

 

Hello i have ((account balance )) in my EA panel,But when open position the balance it does not really move with the balance unless I make an refresh manual,How do I make it move every tick with balance in the include file please.

m_lMainAcc.Create(NULL,"lMainAcc",0,20,40,1,1);   
m_lMainAcc.Text("Main Acc.  "+(string)AccountInfoDouble(ACCOUNT_BALANCE));
m_lMainAcc.Color(clrPlum);
m_lMainAcc.FontSize(InpPanelFontSize);
this.Add(m_lMainAcc); 
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Account Properties
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Account Properties
  • www.mql5.com
Account Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Files:
 

Put this in the OnTick() finction:

m_lMainAcc.Text("Main Acc.  "+(string)AccountInfoDouble(ACCOUNT_BALANCE));
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Account Properties
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Account Properties
  • www.mql5.com
Account Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Osazee Asikhemhen #: Put this in the OnTick() finction:

I got error

Files:
Reason: