Specification

0
(0)
Name:
Specification [ ru | cn ]
Author: MetaQuotes (2008.05.06 11:01)
Downloaded: 1288
Download:
Specification 1
 Specification.mq4 (9.5 Kb) View
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

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:

Specification 2

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.