Test values print script for MetaTrader 5

The include file, small by its content, is designed to print out the values and names of variables:

  • When engineering the codes; and
  • When developing the functions or getting to know their work.

For me, it became one of the most frequently used helpers. It was developed based on this discussion in 2015.

To show how Test_values_print works, I’m attaching the test script of SD_Test_Test_values_print.

When placed in the chart, it uses this include file to show in the Experts terminal tab the coordinates corresponding with the point where it has been dropped with the mouse:

  • Number of the chart subwindow;
  • Coordinate X in the chart;
  • Coordinate Y in the chart; and
  • Time and price at these coordinates.

Its results to be printed out on the Experts tab:

22, OnStart, x = 264, y = 85
30, OnStart, res = true
32, OnStart, sub_window = 0, time = 2018.06.11 14:16:00, DTS_DIGITS(price) = 1.36620

Numbers 20, 30, and 32 are the numbers of test script code strings, from where it is printed. Their output is provided for in the macros of include file Test_values_print.

Free Download

Test values print script for MetaTrader 5

MT5 Forex Script Characteristics

Platform: Metatrader 5

Type: Script

Time frames: any.

How to install Screenshot Script in MetaTrader 5 / MT5:

Copy and paste the Test values print script for MetaTrader 5.zip files into the MQL5 Scripts folder of the Metatrader 4 trading platform.

Restart your MetaTrader 5 application (assuming it’s currently open) … or Launch your MetaTrader 4 application

You can access this folder from the top menu as follows:

File > Open Data Folder > MQL5 > Script (paste here)

On the left hand side, look for the “Navigator” window and under the “Common” tab, look into the “Scripts” section

Locate the indicator which you have just downloaded into the folder stated in Step 1

Drag (Click and drag) the Script onto the chart (when you want the task to be performed)

your task should now be executed…

Leave a Comment