Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 4 Indicators | Specification | MQL5 Release

New free code from MQL5: indicators, EAs, and scripts for traders.

It is sometimes necessary to display your information as a table or as a set of tabulated lines. There is no problem to simply display several lines in the main window, you should just use Comment(line_1,"\n",line_2,"\n"...). See example Comment2

However, function Comment () displays information only in the main chart window. But we sometimes may need to show it in an indicator subwindow. In this case, the following example may be useful.

The indicator displays contract specification for a specific symbol. Function

Protect profits effectively with the smart Trailing Stop Expert Advisor. Advanced trailing options for MT4/MT5. See it in action.

void PrepareInfo(string & array[][])

fills the two-dimensional string array using function MarketInfo(). Then this array is displayed with the function

void Show(string valueArray[][])

This function is universal, so it can be used to display any two-dimensional arrays. Function

void  RefreshAccountInfo()

is necessary to update information when switching between symbols, timeframes or accounts.


All specification details are calculated and displayed only once, i.e., no updates are performed at every tick.

Below is a use example:



Image for Specification

Build better strategies with RobotFX professional tools – check them out.

8007

Best MetaTrader Indicators + Profitable Expert Advisors