MetaTrader 4 β€£ MT4 Scripts β€£ StatementToGraph – script MetaTrader 4

StatementToGraph – script MetaTrader 4


Graphic displaing of the statement, carring of a data from the *.htm table to the graph, for convenience of the analysis.

and studying.

The description:

I welcome! Suffice the new useful program.))

In a network, at forums often are offered Statements in a format *.HTM on which it is possible to track technics of trade or to consider efficiency of this or that strategy. But to use such “inventory” of transactions in a tabulared kind extremely inconveniently.

It is much more habitually and more evidently to observe and “feel” all this on the graph of the terminal where it is possible to analyze conveniently points of an input and accompanying signals, to cover with indicators, etc..

I have decided to not potter with HTML – code, StatementToGraph reads a simple text file in which the “business” part of the table Statement is preliminary copied and saved.

The step-by-step instruction:

To open in a browser the report (Statement), to select and copy only a part of the table with the orders.

To paste into an empty text file and to save it in a folder experts \files in a directory of your terminal.

For example: Π‘:\Program Files\ … \experts \files

It is possible to save it under the name Statement.txt or under another (in this case it will be necessary to change parameter of script FileName at its use).

Script StatementToGraph.mq4 should be placed in a folder experts \scripts in a directory of the terminal.

Alternative:   iRSISign - indicator MetaTrader 5

Then it is possible to start the terminal, and to open the chart of that currency that is in the Statement. If there are

some currencies – for everyone open the separate schedule.


  1. Since the script works on historical data, should be downloaded Archive of quotations on the given currency in the Tools – History Center, otherwise – press F2 …

  2. The name of currency in a file should correspond to a symbol of the graph i.e. if in report the symbol is specified as gbpjpy_s and in the terminal is only gbpjpy, it needs to replace all “gbpjpy_s” in a text file by “gbpjpy”. I hope, clearly.

Having dropped a script on the graph, check up a correctness of a name of a file:

… and Allow DLL imports

Allow DLL imports

Press OK and data of the report will become the



Green arrows – orders BUY, red– SELL, yellow– the cancelled pending orders.

Green lines – profitable transactions, red – unprofitable, yellow horizontal – not taken place.

Blue and red short hyphens – take

profits and stoplosses of orders.

Read also pop-up helps.

Colors, certainly it is possible to change.

The parameter DeletePrev is responsible for the removal of the graphics that were created by a script earlier.

And in summary…


Well, analyze, study, solve strategy, share the reasons.

On the basis of our general researches it is possible to write more many of the interesting programs.

Alternative:   NeuroProba - indicator MetaTrader 4

And I on former wait for your responses, ideas and offers…

πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks