LeadLagRelationshipTester - script for MetaTrader 5

Script for checking the LeadLagRelationship indicator, it is intended for sending quotes with a delay.

How to check: run the script and indicator with a common communication channel on the same instrument. Set the delay parameter in the script. After accumulating sufficient data, the indicator should show the delay specified in the script.

Script Parameters

  • inpTimerPeriod - period of the main timer in milliseconds.
  • inpUseMode - channel mode; 0 - file, 2 - global variables of the terminal. The channel mode is the method for delivering the quotes. The "file" method serves for delivery of quotes from external sources, while global variables are convenient for checking synthetic instruments.
  • inpFilename - name of the file to receive the quotes. It must have the .csv extension and should be located in (TerminalCommonFiles). If the quotes delivery method using a file is selected, enter the file name in this parameter.
  • inpGlobalVariableAsk - name of the global variable for Ask, if the quotes delivery method using global variables is selected.
  • inpGlobalVariableBid - name of the global variable for Bid, if the quotes delivery method using global variables is selected.
  • inpSetLag - delay in milliseconds. This is the delay for sending the quotes.

Download LeadLagRelationshipTester - script for MetaTrader 5

Related News

Latest News
Gold Steadies on ‘China Week’ Fears; Palladium Remains Precious Metals Star
09.12.2019 21:12
Investing.com - Gloomy Chinese data ahead of the crucial do-or-die week for the U.S.-China trade deal helped gold prices steady on Monday, despite virtually zero prospects for a Fed rate cut in December. Palladium, meanwhile, stayed on its record-high path, riding the winds of a global squeeze in the autocatalyst metal. Gold futures for February
Read more
Taiwan Stocks Will Soar to Record in 2020, Analysts Say
09.12.2019 21:06
(Bloomberg) -- This year’s unexpected 20% rally in Taiwan stocks is poised to close a final chapter in the history of its financial markets. The Taiex index is within 7% of its all-time high from 1990, a milestone that analysts say will likely be topped next year. That year marked the bursting of the bubble in Taiwan stocks, which had rallied even
Read more
Erdogan says Turkey to attain single-digit interest rates, inflation in 2020
09.12.2019 21:03
ANKARA (Reuters) - Turkey will attain single-digit interest rates and inflation in 2020, President Tayyip Erdogan told state broadcaster TRT Haber on Monday, adding this will pave the way for an increase in investments. Turkey's central bank has cut its policy interest rate by 10 percentage points since July to 14%. A Reuters poll last week
Read more
Trump says doing well with China in putting together trade deal
09.12.2019 20:27
WASHINGTON (Reuters) - President Donald Trump on Monday said the United States is doing well with China in hammering out a trade deal, as the clock ticks toward the levying of possible new tariffs on Chinese imports. U.S. tariffs on several consumer products, including mobile phones and toys, are set to kick in on Dec. 15, but there is hope the
Read more
Race to Run Bank of Canada Begins With Poloz Bowing Out in June
09.12.2019 20:24
(Bloomberg) -- Stephen Poloz’s announcement that he won’t seek a second term as governor of the Bank of Canada kicked off the guessing game on who will succeed him in June. The contest comes as the central bank stubbornly keeps the nation’s benchmark interest rate among the highest of all advanced economies, so one consideration for Prime Minister
Read more