Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 5 Script | PACF_ACF

Photo for the article PACF_ACF

The script calculates the autocorrelation and partial autocorrelation functions and displays them on a graph.

A brief comment on the input parameters:

  • input int N =100; // here we specify the data window for calculation (the script easily counts 100 000 bars and more)
  • input int K =16; // number of lags, for practical needs rarely count > 40 (the script easily counts up to 500).
  • input int start_pos=0; // data window offset, zero means that data(N) is counted from the most recently loaded bar.
  • input int duration=10; // duration of chart display in seconds

    48572

    Best MetaTrader Indicators + Profitable Expert Advisors