Русский
Экспертная система работает с тиками, на любых типах счетов, как неттинг так и хеджинг. Для внутреннего алгоритма элементарной единицей анализа является тик, а не бар. Работает с 5-значными котировками. Критическими являются реквоты, необходим брокер с минимальными задержками исполнения.
Экспертная система не использует историю, хранящуюся в базе данных, для работы. Для собственных нужд он закачивает исторические данные онлайн, создавая собственную базу данных, хранящуюся в оперативной памяти. При перезагрузке она теряется и при новой загрузке ее необходимо загружать снова, величина собственной базы данных регулируется параметром CountTick, указывающим, сколько тиков необходимо записать в базу, чтобы начать работу. Для долговременного анализа используется вышеописанная база, для кратковременного анализа и принятия решения о выходе на рынок используются данные долговременной базы данных, спроектированной на стек, то есть работает самая актуальная выборка тиков со стека под управлением информации, полученной от долговременной базы данных. Чтобы добиться хороших результатов в режиме реальных тиков на тестере, необходимо проводить оптимизацию.
После того как указанный объем данных загружен, происходит непосредственная работа, которая состоит из двух этапов. На первом этапе с периодичностью, задаваемой параметром ReOptimization, происходит анализ загруженных тиков по указанному объему (CountTick). Анализ данных представляет собой выбор наилучших параметров, с которыми данный эксперт проработал бы, если бы он в тот период работал, то есть выбор наилучшего результата осуществляется с помощью метода полного перебора. Поскольку вариантов немного, то это реальный процесс. Для перебора применяются три внутренних параметра:
Внутренний оптимизатор, проведя оптимизацию по указанному принципу, выбирает те настройки, что дали лучший результат, и выходит с ними на рынок, работая до тех пор, пока не придет указание для новой внутренней переоптимизации ( ReOptimization). При первом наборе истории тиков эксперт не выходит на рынок до тех пор, пока не заполнится база. При следующем цикле переоптимизации простоев нет, поскольку база обновляется онлайн и всегда актуальна.
На втором этапе происходит непосредственный вход в рынок с использованием настроек внутреннего оптимизатора и данных стека. TP и SL используются для страховки позиции (и могут корректироватся экспертом), хотя при некоторых настройках они могут играть базовую роль.
При подготовке к работе необходимо провести предварительную оптимизацию эксперта по параметрам:
Если в вашем случае оптимизация очень затратна, используйте готовое настройки, которые предоставлены в "Обсуждении", или обращайтесь ко мне в личной переписке.
English
The Expert Advisor works with ticks on both netting and hedging account types. The internal algorithm uses a tick (not a bar) as a unit for analysis. The product works with 5-digit quotes. Requotes are critical. A broker with the minimum execution delay is required.
The Expert Advisor does not use history stored in the database. It downloads history data online creating its own database stored in the internal memory. After the restart, the database is deleted and should be downloaded again. The size of the internal database is managed by CountTick parameter specifying how many ticks should be written to the database to start working. The mentioned database is used for the long-term analysis. Information from the long-term database designed for the stack is used for the short-term analysis and market entry. In other words, the EA uses the most current selection of ticks from the stack managed by the information received from the long-term database. Optimization is recommended for good results in the tester's real tick mode.
After downloading the specified volume of data, the EA starts its operation consisting of two stages. During the first stage, downloaded ticks are analyzed by the specified volume ( CountTick) with the periodicity set by ReOptimization parameter. The Expert Advisor selects the best parameters it would have worked with if it had operated at that period. In other words, the best result is selected using the exhaustive search method. Since there are no much parameters to select from, this method is reasonable. Three internal parameters are selected for the search:
The internal optimizer follows the mentioned principle and selects the settings that yielded the best results entering the market and working there till the instruction on the new internal reoptimization ( ReOptimization) is received. During the first configuration of the tick history, the EA does not enter the market till the database is filled. During the next reoptimization cycle, there are no delays, since the database is updated online and is always relevant.
During the second stage, the EA enters the market using the internal optimizer's settings and the stack data. TP and SL are used to secure the position, though they may be especially important with some settings.
The EA should be preliminarily optimized by the following parameters:
If optimization is very resource-consuming in your case, use the ready-made settings provided in the Comments or contact me via a private message.
The site Forex Stars offers to download robots for forex. We have presented ready-made developments of our own technical indicators and trading robots (advisers, bots) for the best ideas written for you. On the site you can download the adviser.
On the site you can download the forex bot, expert, indicator. Developers are ready to offer free testing of automatic robots. Products are broker independent. The broker can be used by anyone - of your choice. Direction on any topic from trend to scalping. Buying a forex advisor is very simple, buy and earn your capital!
Trading with mt4 and mt5 is currently the most progressive way to work on forex. Language for writing products mql4 and mql5. Used online trading platforms metatrader 4 and metatrader 5. Metatrader 4 can be downloaded on the developer's website as well as metatrader 5.