Optimization of Waiting Night

Optimization of Waiting Night

11 сентября 2021, 10:33
Marat Baiburin
0
1 445
I welcome you, Dear Traders.

Brief instructions for optimizing the Waiting Night Expert Advisor:

When using your own settings, your trades will differ from the default EA operation. Responsibly treat the issue of optimization. If you don't have enough experience, use a demo account to experiment.

It is important to understand that using your own settings is always an advantage:

✔️ Your transactions may differ from those of other users of this system - and this is great, as it can reduce slippage. Imagine that several thousand users open a deal at the same time - of course, some of them will have some slippage, and the deal will open at a less favorable price. We don't need it.

✔️ You can set up an Expert Advisor for your broker's quotes. This will help you to configure the Expert Advisor more precisely.

✔️ You can use different settings for trading - this is the right risk diversification  


So, 5 parameters for optimization are open in the Expert Advisor, as well as the stop loss settings and the maximum spread filter are open. 

I ask you to pay attention to the stop loss settings:

At the moment, the stop loss settings for each pair are set individually from 500 to 1000 points. It seems to you that this is a lot, I understand. But during the rollover, the price makes strong jumps, but this can lead to a stop loss, and your deal will be unprofitable. Carefully check your settings on the demo account before installing them on a real account.

TP Modification (if = 0, then auto setting) – this parameter is responsible for exiting the transaction, that is, for a dynamic take profit. Optimize this parameter from 0.01 to 3 in increments of 0.01

Level calculation (if = 0, then auto setting) - responsible for the conclusion of the transaction. Optimize this parameter from 1 to 50 in increments of 1.

Dynamics (if = 0, then auto setting) - transaction filtering. Optimize this parameter from 0.01 to 3 in increments of 0.01

Force 1( if = 0, then auto setting) - transaction filtering. Optimize this parameter from -50 to 50 in increments of 1

Force 2 (if = 0, then auto setting) - transaction filtering. Optimize this parameter from -50 to 50 in increments of 1

❗️I recommend optimizing in the "Every tick based on real ticks" mode. But you can also optimize in the 1-minute OHLC mode - this will be a faster optimization, but not as accurate.

After selecting the currency pair and optimization mode, select the optimization parameters and specify the desired step, as in the screenshot below.
When everything is set up, you can start optimizing.

After the optimization is completed, you can select the result you like and save it in a set file.

I know two ways to optimize:
1. You can optimize all three parameters at once. Using the mt5 kinetic algorithm, the optimizer will find good parameters according to your optimization criterion.
2. You can optimize each parameter separately in turn for several cycles - this is a more subtle adjustment that requires some experience.


A few tips from my experience:

The longer the optimization period, the better the result will be. Do not take optimization periods of less than 3 years.
Try to optimize on the last period. For example, if you want to optimize the Expert Advisor for the last 4 years and test it on forward testing, then optimize from 2018-2021 and check from 2014-2018. It will be better if the Expert Advisor is configured for the current market.
Try to choose the best options from the ones found. Pay attention not only to the profit, but also to the drawdown, the profit coefficient and the recovery coefficient.

I recommend using the MT5 version for optimization, since mt5 has the ability to optimize through the MQL cloud, which significantly speeds up the process. There is no need to buy the MT5 version. You can use the MT5 demo version for optimization and use these parameters in the MT4 version.

A nice bonus for more advanced users:


The Expert Advisor also contains my personal optimization criterion, according to which you can also find good parameters. This is convenient because it takes into account both the profit coefficient and the profit.

Please do not hesitate to contact us with questions.




Sincerely, Marat Baiburin