Account Information - MetaTrader 4 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources




The indicator adds account information to the chart. Profit, Balance, Equity, Available Margin, Margin and Margin Level %.
There is automatic equal spacing between the horizontal and vertical axes of the account information header, and no font overlap - see suggestions below.
Hide/show responses depending on incoming price changes or chart refreshes. In scarce quotes or closed markets, indicator hide/show clicks don't seem to work while waiting for quotes or chart refresh. An auto-refresh timer indicator is included in the download. It is only necessary to attach an auto-refresh timer to one chart as it will refresh all instances of vertical account information and horizontal account information in all charts.
For the latest devices, increasing the auto-refresh refresh frequency has minimal impact on CPU load. Programs like Core Temp (free) at http://www.alcpu.com/CoreTemp/ can be scheduled to display CPU load, CPU temperature, and RAM percentage used on the taskbar, and can be used to monitor a program's impact on CPU load.




suggestion
Horizontal and vertical axes between account information titles are automatically equally spaced with no font overlap
Equal spacing between vertical axis account information titles *
* To avoid unnecessary duplication, any reference to "equally spaced" means "equally spaced between account titles."
For account titles in the vertical axis of a vertical sequence, equal spatial distance is determined by the OBJPROP_YDISTANCE parameter formula.
The account_info_vertical code below illustrates the solution.
Input integer up_down = 10 ; // up<-> down ......... when initializing the integer () { ………… { Up_Down_ML=Up_Down+Font_Size*10; Up_Down_M =Up_Down+Font_Size*8; Up_Down_FM=Up_Down+Font_Size*6; Up_Down_E =Up_Down+Font_Size*4; Up_Down_B =Up_Down+Font_Size*2; up_down_P = up_down; } ......... Integer calculation ( const integer rate_total, constant integer previously calculated, constant datetime &time[],..........) { ………… // Balance header YDISTANCE Object set ( "ACC_B_v" , OBJPROP_Y distance , upper_lower_B); ………… //Profit title YDISTANCE Object Set( "Accelerator_P_v" , OBJPROP_Y distance , up_down_P); …………
Equal spacing between horizontal axis account information titles
For account titles in the horizontal axis of a horizontal series, equal spatial distances depend on the OBJPROP XDISTANCE parameter formula.
The OBJPROP_YDISTANCE formula with equally spaced vertical axes is relatively simple because all elements of the consecutive heading formula, the corresponding input values of OBJPROP_YDISTANCE and even the sequence multiple and font size remain unchanged in the formula.
Successive header OBJPROP_XDISTANCE formulas for horizontal axis equal space must accommodate a real time updating variable in the form of multiple preceding account header lengths that increase or decrease according to changes in account margin, profit or loss, balance etc.
Keep the horizontal axes equally spaced by including the following in the formula:
Attachment download
📎 account_info_horizontal.mq4 (10.3 KB)
📎 account_info_vertical.mq4 (10.12 KB)
📎 autorefresh_timer.mq4 (2.51 KB)
Source: MQL5 #11015
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •