Configuring NEW SH
Configuring and optimizing the NEW SH expert Advisor
In this article, I will show you how to choose working tools for the new SH expert Advisor and how to optimize it correctly for trading on a real account.
First of all, you need to determine which pair of tools you want to work with. There are many ways to do this, I’ll tell you how I do it myself.
For example, choose USDJPY. Open the window of this pair. In the market overview, we allow you to show all the tools and run the Script Correlation for SMARTHEDGE script. Specify in the script the number of candles on which we perform correlation analysis. I do this on multiple values, like 1000, 2000, 5000. We get the following values:
We see that in all three variants we have a CADJPY pair, and the value of its correlation modulo is always greater than 0.5 (it is better if this indicator is 0.7). You can try options on other timeframes and with a different number of bars for more accurate selection. But we will stop here. In other words, we received a pair of currencies USDJPY-CADJPY and will continue to work with it.
In order to make sure that this pair is suitable for us, we will run the ind Correlation history indicator on it
We also check the correlation for different periods. If it does not go beyond 0 on the history and does not fall below 0.5 for a long time, then we can trade such pairs. For a period of 1000 candles, everything is very perfect, the correlation does not fall below 0.5. On the 500 period, there is already a decrease in correlation. And at 300 candles, the correlation even changes its direction. That is, we either do not trade with this value of Bars Correlation, or we will be ready for risk. In this case, we see that the correlation is restored fairly quickly and there should not be much risk. Especially if we set Bars Correlation to more than 500.
Now let’s move on to optimizing these pairs. In the app, I posted a set for optimization. It already specifies all the parameters that should be optimized and the range in which the terminal will search for optimal settings. For The selected pair, the Symbol2 parameter sets the CADJPY currency pair. We will perform optimization on the USDJPY pair. For other pairs, you will only need to change the names of the pairs themselves. Leave all other optimization parameters the same.
Next, click start and wait for the results. If you set the model not for all ticks, but for opening prices, the results will be much faster, but they will need to be rechecked separately. After a while we get this list of options:
Here we can sort options by drawdown, profit, Mat expectation, and so on. Choose the most satisfying result, right-click on it and run a single test with these parameters. We get this picture:
Now you can save the set file in order to use it on real MT5 trading. In order to use it in the MT4 terminal, you need to open it as a text file using Notepad and re-save it by changing only the UTF-8 code page