Burg Extrapolator
This software component for MetaTrader 5 is built to enhance the capabilities of your trading environment. This Expert Advisor serves as automated trading software. It is utilized to monitor financial markets and execute trades based on predefined algorithmic rules, enabling precise position management without the need for constant manual oversight.
How to Setup and Use Burg Extrapolator
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
Description & Settings
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[0]..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:
x[n] = -Sum(a[i]*x[n-i], i=1..p)
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.
Input Parameters
MaxRisk
- maximum risk of all simultaneously performed deals.
ntmax
- maximum number of deals in one direction.
MinProfit
- minimal predicted profit at which positions will be opened.
MaxLoss
- maximal predicted loss at which positions will be closed.
TakeProfit
- Take Profit value.
StopLoss
- Stop Loss value.
TrailingStop
- the Trailing Stop function.
PastBars
- the number of previous bars used to predict future values.
ModelOrder
- the order of Burg's model as a fraction of the number of past bars (0..1).
UseMOM
- enables detrend of input data: mom(i)=log[p(i)/p(i-1)].
UseROC
- enables detrend of input data: roc=100*(p(i)/p(i-1)-1).
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.