The Expert Advisor uses Burg's method for linear prediction. Linear prediction is based on finding future values as linear functions of previous values. Suppose we have the x..x[n-1] price range where the higher index corresponds more recent prices. The prediction of the x[n] future price is calculated as follows:
here a[i=1..p] are model ratios, and p is the model order. Burg's method finds the a ratios by decreasing a mean-square error on the last training n-p bars.
Only one of UseMOM and UseROC variables can be true, i.e. UseMOM=true AND UseROC=true is not allowed.
Like most of optimized Expert Advisors, Burg Extrapolator only works well on training bars. The Expert Advisor will steadily lose money without a constant re-optimization.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/19046
The scripts places multiple pending orders lower than the current price.Pending orders UP
The scripts places multiple pending orders higher than the current price.