AMAZE: How it works ? Why such settings ?

AMAZE: How it works ? Why such settings ?

4 June 2021, 16:37
Anton Kondratev
1
1 486

The MQL website offers a variety of trading systems.

Most of these systems use Martingale, Grid or Arbitrage, or Neural Networks.


As Bilbo said:

"I don't know half of you half as well as I should Like and I Like less than half of you half as well as you Deserve"


And only a few trade using StopLoss, and usually such systems are a black box.

Yes, they have TakeProfit and StopLoss, but the strategy parameters are hidden from you.


Nothing lasts forever, just like the strategy, the market changes and this is normal. But the black box always remains closed and sealed.

AmazeEA suggests using all the parameters so that you can optimize and create your breakdown strategy.

All the parameters are available to you, it is a freedom of action.

MT5 today allows you to test the system with real slippages , commissions, swaps, delays and spreads.

This is the real market in the palm of your hand.


2


There are many false breakouts in the forex market, especially for EURUSD.


This is done to ensure that the majority of the market will continue to move after the level breakout.

As a rule, such support and resistance levels have large volumes inside (there is a lot of money)

4


There are many robots trading in the market, I would say that 90% of the foreign exchange market are robots.


They are not the same as we are used to seeing them in MQL. These are very expensive and fast trading systems.



j


AmazeEA strives to get closer to this, which is why low spreads, fine tuning, optimization and low ping are so important to us.

The goal of any broker is to earn their commissions.


The higher the broker's commission, the better for him. But nobody wants to see a net commission for 1 lot too big.

Therefore, many novice brokers hide such a commission in their spread. For Tickmill, EURUSD usually has a spread of 0 points, sometimes it rises to 1 or 2 points.

This is the spread in the real market as it really is.


But when the broker tries to add his commission to the spread, it increases and becomes 5 points, and sometimes even 10 points.

The broker knows that you won't be able to catch his hand and say, hey, what the hell is a 10 point spread now when there is 1 poin in the real market?

Thus, when your trade is closed, the broker will keep 9 points of the spread and take a commission for each lot.

A bit of math ...

2


For example, your profit is 15 pips for zero broker spread and zero slippage.

Then For a leverage of 1: 500, the $ 5 commission is equal to 5 points of your net profit.

Those. 10 points of net profit remain, since 5 points (this is $ 5) is a commission for your broker.

If the spread is 9 points, you will keep only 1 point of profit, 14 points of profit will be taken by the broker.

In this case, the broker's commission will not be $ 5 per lot, but $ 14 per lot, $ 9 You will not even notice this spread. This moment will be like a neutrino.

Here is the dilemma, who is to blame? Trading system or broker?

For me, an elusive broker


2


AmazeEA constantly analyzes and checks the broker, when the spread exceeds normal values, the system adjusts the strategy and places orders a little further and vice versa.

If the spread is very low, the system tries to open a trade a little earlier in order to get more profit.

Therefore, trades will have different opening prices, it also depends on slippage (although slippage is also highly dependent on spreads)


The larger the spread, the greater the slippage.

The system uses four steps to lock in profits.

The first stage is to fix the minimum profit. This is the first profit taking.

Usually equal to 20-30 points.


If the breakeven (First Profit) is too close to the price, then the trade will close very quickly.

If the breakeven level (First Profit) is closer to the position opening price, in this case we will allow the market to Breathe and grow up (for example, with BUY STOP ORDER)




5


The second profit taking is price tracking.

If the price continues to rise sharply, in this case, the tracking is triggered and the profit level moves next to the price as a percentage.

The larger the profit, the further the breakeven level will be, since this is a percentage of the profit.

The third stage, when the profit is too large, the spiral / funnel mechanism is triggered.

In this case, with each step, the profit will narrow in like a funnel.

The fourth stage is rigid profit-taking using TakeProfit.


Thus, the parameters of the system are divided into several parts.

Part one

[BASED SETTINGS]

VISUAL PANEL - disable and enable the visual panel. In my case, the visual panel does not affect performance in real trading, but it displays good statistics for your broker.

GMT is the time zone offset for your broker. We use this in manual mode, because MQL forbids us to read this information directly from the broker.

Most brokers use GMT = 3 for daylight saving time and GMT = 2 for winter time.

You can very simply determine the GMT of your broker in my article

RISK / LOAD DEPOSIT - risk parameters, determines the load on the deposit and the maximum drawdown for a leverage of 1: 500.

MINIMAL LOT IF RISK = FIXED - you can specify your position size, to activate it set Risk = FIXED_LOT

MAX BROKER SPREAD is the maximum and acceptable spread that a broker can afford, if the spread is higher than this value, then protection against a large spread will be triggered and trading will be temporarily suspended.

MAX BROKER SLIPPAGE is the maximum and allowable slippage from your broker, if the slippage is higher than this value and protection against large slippages is activated, then the transaction will be closed immediately at the market price, because large slippage is volatile market behavior and it is best to stay away from it.

VIRTUAL STOPLOSS - allows you to activate Virtual StopLoss if you do not want to inform the broker at your stop. The system will close the trade at the current market price.

VIRTUAL TRALL - allows you to activate the virtual Profit Trailing, it is needed if you do not want to inform the broker about the breakeven level and the level of profit tracking.

Some brokers may try to close profits as soon as possible if there is a breakeven nearby. The system will close the trade at the market price.


CLOSE DEAL IF BIG SLIPPAGE - activates protection against large slippage, more than MAX BROKER SLIPPAGE

VISUAL SHOW SLIPPAGES - activates the display of slippage from the broker on the chart

VISUAL SHOW PROFITS - activates the display of profit on the chart, taking into account commissions, swaps, slippages, spreads

WAIT IF BIG SPREAD - activates protection against a large spread of the broker, if the spread is too large, trading will be suspended for a few minutes until the spread recovers

SLIPPAGE PROTECTION - activates protection against any slippage, even the smallest.

Negative slippage in any size affects any strategy, it's like if you buy a car, but while a deal is being made, the price of the car rises by 10%, just like that.


ADAPT SYSTEM TO ANY SLIPPAGES - activates the adaptation of the system to any slippage of the broker.

If slippage occurs, right during the open position, the system will adjust and change the settings in the RAM as quickly as possible.

PROTECT DUPLICATE EXTREMES - activates protection against double, triple levels, etc., this allows you to get rid of false levels that have already been broken.

PROTECT GAP NIGHT EXTREMES - activates protection against levels that were formed during night market gaps and unstable night quotes.

YOUR COMMENTS FOR DEALS - own comments for the trading system

MAGIC NUMBER - unique trade identifier for the trading system.


[BUY] ENABLE [BUY] DEALS - enable BUY buy deals

[BUY] FIXED TAKE PROFIT - TakeProfit for a BUY deal

[BUY] BUY STOPLOSS - StopLoss for a BUY deal

[SELL] ENABLE [SELL] DEALS - enabling SELL trades

[SELL] FIXED TAKE PROFIT - TakeProfit for SELL

[SELL] SELL STOPLOSS - StopLoss for SELL


[SHIFT ORDER BASED SETTINGS]

[BUY] BUY ORDER SHIFT - adjustment in points for buy deals (price offset)

[SELL] SELL ORDER SHIFT -   adjustment in points for sell trades (price offset)

[BUY] FIRST TIME [M5] - number of left-sided patterns М5, М15, М30, H1 for resistance levels

[BUY] LAST TIME [M5] - number of right-sided patterns М5, М15, М30, H1 for resistance levels

[SELL] FIRST TIME [M5] - number of left-sided patterns М5, М15, М30, H1 for support levels

[SELL] LAST TIME [M5] - number of right-sided patterns М5, М15, М30, H1 for support levels

When finding support and resistance points, the system uses patterns.

In this case, the system divides them into two parts, these are left-sided and right-sided.

The system does not use indicators, therefore calculations are made on historical quotes for the last 2-3 weeks.

Example

The more such patterns are found on the lower timeframes, the higher the level will be

[BREAKEVEN / FIRST PROFIT]

First and minimum profit / breakeven levels

[BUY] USE BREAKEVEN - Allows you to activate the minimum breakeven for BUY

[BUY] FIRST BREAKEVEN - the minimum number of profit points required to fix the breakeven for BUY

[BUY] FIRST BE SHIFT - break-even offset from the current market price for BUY

[SELL] USE BREAKEVEN - Allows you to activate the minimum breakeven for SELL

[SELL] FIRST BREAKEVEN - the minimum number of profit points required to fix the breakeven for SELL

[SELL] FIRST BE SHIFT - break-even offset from the current market price for SELL

22

[TRALL / TRAILING SETTINGS]

The second stage of profit-taking, if the market continues to move in a given direction

[BUY] FIRST TRALL - the amount of profit to activate the Trailing function, tracking profit, the movement of breakeven at the current price

[BUY] TRALL PROFIT [%] - percentage of the total amount of profit, the greater the profit, the further the trailing level

[BUY] TRALL STEP - the minimum step of following the price

[SELL] FIRST TRALL - the amount of profit to activate the Trailing function, profit tracking, breakeven movement at the current price

[SELL] TRALL PROFIT [%] - percentage of the total amount of profit, the greater the profit, the further the trailing level

[SELL] TRALL STEP - the minimum step of following the price

[SPLIT PROFIT]

The division of profit into parts is required for a more detailed mechanism for making a profit. Required to close a part of the total order between the first breakeven and trailing.

ENABLE PROFIT SPLITTING - activation of the split function

START SPLIT PROFIT - the amount of profit, after which the profit is divided into parts

[%] OF PROFIT FOR SPLIT - profit step in percentage, which indicates the frequency of division. For example, every 10% of the profit, a part of the position will be closed

[%] OF LOT FOR SPLIT - percentage of the total trade volume that will be closed. For example, for 1 lot, 10% is 0.1 lot

[HELIX / PROFIT HOLDING ALGORITHM]

This is a sophisticated algorithm that narrows the distance between the current price and the Trailing profit level

The higher the value, the larger the funnel will be and the faster the profit will slam / close. This is the acceleration for the movement of the Trailing Stop to the current price in the market

[BUY] HELIX START VALUE - the amount of profit, after which the funnel / narrowing of the trailing level mechanism will start

[BUY] HELIX PROFIT [%] - percentage of trailing percentage (from parameter TRALL PROFIT [%]   ) Determines the amount of profit for decrementing the percentage of profit

[BUY] MAX ETREMES - maximum height of the funnel

[BUY] DAYS PERIOD - history depth for searching patterns

[SELL] HELIX START VALUE - the amount of profit, after which the funnel / narrowing of the trailing level mechanism will start

[ SELL ] HELIX PROFIT [%] - percentage of trailing percentage (from parameter   TRALL PROFIT [%]     ) Determines the amount of profit for decrementing the percentage of profit

[ SELL ] MAX ETREMES - maximum funnel height

[ SELL ] DAYS PERIOD - history depth for searching patterns

[WORKING HOURS FOR GMT TIME]

System uptime. Time is calculated according to Greenwich Mean Time. This is Time for GMT = 0

START HOUR MONDAY [GMT = 0] - Time (in hours) to start on Monday

STOP HOUR MONDAY [GMT = 0] - Time (in hours) to complete trading on Monday

START HOUR [GMT = 0] -   Time (in hours) to start on Tuesday, Wednesday, Thursday

STOP HOUR [GMT = 0] - Time (in hours) to complete trading on Tuesday, Wednesday, Thursday

START HOUR FRIDAY [GMT = 0] - Time (in hours) to start on Friday

STOP HOUR FRIDAY [GMT = 0] - Time   (in hours) to complete the trade on Friday

[SMART GRID MODE]

For grid lovers, this mode allows you to activate the grid, while the grid has a built-in virtual profit trailing, which is very rare in MQL

Here even the grid has StopLoss, it is determined by the parameters [BUY] BUY STOPLOSS and [SELL] SELL STOPLOSS

USE GRID MODE - activate the Grid mode, it is disabled by default, I do not recommend using it, because the mesh is evil.

TYPE OF FILLING ORDER - type of order filling for MT5

AVERAGE TRALL PROFIT - average profit for all orders, after which profit trailing will begin

DISTANCE BETWEEN ORDERS - distance between orders

MAX NUMBER OF GRID ORDERS - the number of grid orders

MULTI LOT - MULTY , order volume multiplier


[GRID VIRTUAL TRALL]

Settings for Virtual Trailing of average profit for the Grid mode

PERCENTAGE OF PROFIT [%] - percentage of profit ( AVERAGE TRALL PROFIT )

GRID TRAILING STEP - profit step

HELIX PROFIT [%] - percentage of profit contraction at each step

[  NEWS  FILTER  SETTINGS  ]

In order for the news filter to work correctly, you need to add the URL to the terminal settings

http://ec.forexprostools.com/


USE NEWS FILTER - Enable / disable the news filter

CHECK NFP NEWS - CHECK NFP NEWS

CHECK HARD NEWS -  CHECK HARD NEWS 

CHECK MEDIUM NEWS -  CHECK MEDIUM NEWS

CHECK LOW NEWS -  CHECK LOW NEWS

NEWS SYMBOL - The name of the currency pair to search for news

SLEEP MINUTES BEFORE NEWS - SLEEP MINUTES BEFORE NEWS

SLEEP MINUTES AFTER NEWS- SLEEP MINUTES AFTER NEWS

USE OPTIMIZATION - This parameter greatly speeds up optimization, since it disables balance checking, etc.

CHECK CHRISTMAS DAYS - This parameter allows you to enable or disable transactions during the New Year holidays from December 24 to January 12

ONE DEAL PER HOUR - The system makes a maximum of only 1 transaction per hour

ADAPT ONLY TO LOW SLIPPAGES - If the slippage exceeds the Max Slippage parameter, then the trade will not adapt to a large slippage and will not close the position ahead of time

NIGHT GAPS - The Greenwich Mean Time hours are listed during which the market has bad levels, these are the night hours when the market is inactive and has bad quotes for different brokers.


The rest of the settings are optional or visual, they are used to customize the visual graphics.

Thank you so much for reading to the end, this article took me 3 days, I hope I didn't forget anything