AMAZE: Optimization and How Does It Work ?

AMAZE: Optimization and How Does It Work ?

29 May 2021, 16:38
Anton Kondratev
1
1 643

Is it Optimization or Evolution ? What will Darwin say ? 🤖

In fact, optimization surrounds us every day, we sleep with it, cook with it, and even communicate with it 🙈


The fundamental basis of any optimization is high-quality quotes from a broker 💯


Quotes should be different and preferably for different brokers.
Different brokers have different providers of quotes and different spreads and even slippage is a fact.
It's no secret that the broker uses quotes from different providers.


As a rule, Dukascopy is the main supplier within the day. Yes, there are Gaps, holes, broken quotes, etc. and who doesn't have them? all brokers have them!
The market consists of such quotes, but no one forces you to trade at this time (night time) and use them.


For testing with MT4 we use Dukascopy (TickDataSuite), but besides it there are other providers and currency exchanges.
MT5 also allows you to use multi-threaded data processing right during testing (Apparently Intel Core i9-10900K will still come in handy for us )
You can also use the power of MQL Cloud NetWork.


To speed up the optimization as much as possible, we will carry out it in two stages.
The first stage consists in identifying the most stable results for the selected period, for example, the last 7 years.
Why 7 years old? Why not 10? Why not 30? (Crazy😱)
Because Amaze EA does not use Martingale and does not use Grid, we do not need to check "How the system handles constant drawdown".


Amaze EA does not have a permanent and hanging drawdown (When you stay awake at night and watch the drawdown, do you need a test for 30 years? 🙊)
There is always a fixed StopLoss for every trade and the system will never break your account.
For large accounts, you can always use Risk no more than 5% and your maximum drawdown will not be more than 5%.


Testing from 87 to this day is needed in order to make sure that the entries to the market for the Grid or Martingale are correct 🤫 (BUT this is not accurate).
If the market entry is wrong, someday it will break your account completely 🥵
For Amaze, you just get the maximum drawdown and StopLoss closes, you will never break your account 🥴


💙 Amaze EA is a completely open system, which means that you have all the system parameters and can use them and change the behavior of the system 💙
You do not need to beg the developer for the settings, you can make them yourself! 🤗

If the market changes, you can always create your own goose that lays the golden eggs. Well, or What do you have these eggs? 🐣


I do not welcome systems that hide their settings inside, they only have StopLoss and TakeProfit and an Info Panel 🐒

They supposedly want to hide their parameters from outside eyes, but where is the evidence that they simply do not adjust the history of their transactions every time.

😱 What will happen when MQL blocks such a seller for spam (or a call to extremism lol)? 🛑

How can you optimize such a system for yourself? All parameters are hidden from you, this is a black box! 😱


Optimization should have its own characteristics for each currency pair.

For example GBPUSD and USDJPY have volatility that differs from EURUSD. Also, spreads and slippages will differ.

XAUUSD has huge volatility and the minimum profit will be at least 100 pips.

For EURUSD, I recommend using these optimization files and ICMarkets LIVE MT5 server


Testing will take place with real quotes, spreads, slippage, commissions, delays, gaps and swaps. 🔥

I repeat once again, we trade within the day, not at night, we do not need Gaps.

Optimization can have any time interval, for example we will start from January 11, 2020.

The first step is to find the most stable settings Profit Factor = MAX 🔥

Optimization settings. I use 5ms latency, but more detailed optimization in the second stage uses 100ms latency.

1

I attached the first stage of files and settings to the blog

2

Optimization will require a powerful processor and a huge amount of RAM (the more, the better from 8GB and above)

After the optimization is complete, we make a selection of the most stable settings.

Profit Factor should be maximum, ideally zero (this means that all trades are 100% profitable)


Further, among all the results with the best Profit Factor, you can choose the result with the highest amount of profit.

We are using the "profit in pips for faster calculations" setting, so the profit will be in PIPS.

The first stage of optimization allows you to get stable settings for the main trading days, these are Tuesday, Wednesday and Thursday.


On these days, the system trades almost a full day, Friday and Monday are shortened, because the big players usually sleep at this time.

Here are the results of the first stage of optimization

3


I usually choose the best ratio between the amount of profit and Profit Factor.

MT5 also generates slippage that can close a position prematurely.

If slippage is of great importance, then the system will try to secure the deposit and set the breakeven level in advance.


Thus, taking into account the commission and large slippage, the transaction may have a profit of 7 points, but the commission is 9 points and MT5 perceives this as a loss of 2 points.

The second stage of optimization allows you to get the final version of the settings.

We will add Monday and Friday to the trading week, as well as fine-tune profit tracking.


Before loading the second part of the optimization, be sure to uncheck all the boxes to the left of the parameters from the previous optimization.

This is a new optimization and we will not need the parameters of the old optimization.

A second optimization file is also attached to this blog.

4

From the optimization results, you can work out the best ratio of profit and Profit Factor.

As you can see, optimization is a very laborious process.

That is why it takes me about 12-20 hours to get working settings.


I don't quite understand why people use a huge period for optimization.

The longer the period you use for optimization, the more blurry the settings you get.

These will be less profitable settings, they will have fewer trades, but they will not predict the future for you.

No one can predict the future except Elon  🤫


I recommend optimizing once every 6 months to always have the best settings  ⏱️

Also, you can always save the cache of optimization files for yourself in order to later download and use it for your own purposes.


I also note that you can always divide the optimization into 2 parts, for BUY-type transactions and separately for SELL-type transactions.

I will also add these individual optimization settings to the attached files. 

This way your optimization will be much faster. I repeat that the system uses only one transaction for one currency pair. 

If BUY opens, then SELL type transactions will be terminated and vice versa.


Also as a Bonus I add my own Optimization Cache files, you can try to choose your own settings

Of course these are raw Cashe Optimization Settings and they are Suitable for Demo

I always recommend using the latest settings and the latest system version! 💙

The latest settings are presented in the description 💯