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, Im 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.


Download Test_values_print - script for MetaTrader 5




Related News




Latest News
Two Expected 2020 IPOs Bring Hope to Egypt’s Subdued Market
10.12.2019 05:15
(Bloomberg) -- Egypt’s ailing stock market could find a much-needed jolt of liquidity from two state-owned enterprises set to go public early next year. The long-awaited initial public offering of one of the biggest banks in the country, Banque du Caire, in particular could draw funds from outside the region, according to Hasnain Malik, head of
Read more
Gold’s Been on a Tear This Year and 2020 May See More Reward
10.12.2019 05:12
(Bloomberg) -- Gold’s impressive advance in 2019 -- aided by trade war frictions, easier monetary policy across the world’s leading economies and sustained central-bank buying -- may be set to spill into the new decade. As 2020 looms, BlackRock Inc (NYSE:BLK)., the world’s largest money manager, remains constructive on bullion as a hedge, while
Read more
Macron Braces for Second Day of Protests Against Pension Reform
10.12.2019 05:09
(Bloomberg) -- Emmanuel Macron is bracing for round-two of a clash with labor unions over his plan to upend France’s pension system, in what could become the defining moment of his presidency. Labor unions will stage a repeat of last week’s mass protests on Tuesday to load pressure the day before Macron’s government announces the final version of
Read more
Japan’s 10-Year Yield Climbs to Zero for First Time Since March
10.12.2019 05:06
(Bloomberg) -- Japan’s 10-year bond yield rose to zero for the first time in nine months amid waning global demand for debt. The nation’s benchmark yields are rising for a fourth month after the Bank of Japan slashed debt purchases and refrained from adding any more easing measures. Bonds have also fallen as optimism that the U.S. and China may
Read more
Australia cartel case against Citi, Deutsche delayed by late night witness statement
10.12.2019 05:03
SYDNEY (Reuters) - An Australian criminal cartel lawsuit against Citigroup Inc (N:C) and Deutsche Bank AG (DE:DBKGn) was postponed on Tuesday after defense lawyers complained the prosecution had given them a redacted statement for a key witness late on the previous day. Though for just one day, the delay raises the chance of pre-trial hearings
Read more