66 linhas
4,1 KiB
MQL5
66 linhas
4,1 KiB
MQL5
//+------------------------------------------------------------------+
|
|
//| CreateProject.mq5 |
|
|
//| Copyright 2024-2026, Yuriy Bykov |
|
|
//| https://www.mql5.com/ru/users/antekov |
|
|
//+------------------------------------------------------------------+
|
|
#property copyright "Copyright 2024-2026, Yuriy Bykov"
|
|
#property link "https://www.mql5.com/ru/articles/19684"
|
|
#property description "Советник создаёт проект с этапами, работами и задачами оптимизации."
|
|
#property description "Стратегия: SimpleCandles"
|
|
#property description "Символы: GBPUSD,EURUSD,EURGBP"
|
|
#property description "Таймфреймы: M3,M5,M12"
|
|
#property description "Промежуток: 2025-01-01 - 2025-10-01"
|
|
|
|
#property version "1.00"
|
|
|
|
// 1. Определяем константу - признак наличия входных параметров
|
|
#define __INPUT_PARAMS__
|
|
|
|
// 2. Подключаем шаблон советника создания проекта
|
|
#include "../../Adwizard/Experts/CreateProject.mqh"
|
|
|
|
//+------------------------------------------------------------------+
|
|
//| Входные параметры |
|
|
//+------------------------------------------------------------------+
|
|
sinput group "::: База данных"
|
|
sinput string fileName_ = "article.19684.db.sqlite"; // - Файл базы данных оптимизации
|
|
|
|
sinput group "::: Параметры проекта - Основные"
|
|
sinput string projectName_ = "SimpleCandles"; // - Название
|
|
sinput string projectVersion_ = "1.03"; // - Версия
|
|
sinput string symbols_ = "GBPJPY,EURJPY,USDJPY"; // - Символы
|
|
sinput string timeframes_ = "M3,M5,M12"; // - Таймфреймы
|
|
//sinput ENUM_OPT_STAGE_ORDER
|
|
// stageOrder_ = OPT_STAGE_ORDER_SEQUENTAL; // - Последовательность этапов
|
|
|
|
sinput group "::: Параметры проекта - Интервал оптимизации"
|
|
sinput datetime fromDate_ = D'2025-01-01'; // - Дата начала
|
|
sinput datetime toDate_ = D'2025-10-01'; // - Дата окончания
|
|
|
|
sinput group "::: Параметры проекта - Счёт"
|
|
sinput string mainSymbol_ = "GBPJPY"; // - Основной символ
|
|
sinput int deposit_ = 100000; // - Начальный депозит
|
|
|
|
sinput group "::: Этап 1. Поиск"
|
|
sinput string stage1ExpertName_ = "Stage1.ex5"; // - Советник этапа
|
|
sinput string stage1Criterions_ = "6,6,6,6,6,6"; // - Критерии оптимизации для задач
|
|
sinput long stage1MaxDuration_ = 60; // - Макс. продолж. задач (с)
|
|
|
|
sinput group "::: Этап 2. Группировка"
|
|
sinput string stage2ExpertName_ = "Stage2.ex5"; // - Советник этапа
|
|
sinput string stage2Criterion_ = "6"; // - Критерий оптимизации для задач
|
|
sinput long stage2MaxDuration_ = 180; // - Макс. продолж. задач (с)
|
|
//sinput bool stage2UseClusters_= false; // - Использовать кластеризацию?
|
|
sinput double stage2MinCustomOntester_ = 500; // - Мин. значение норм. прибыли
|
|
sinput uint stage2MinTrades_ = 20; // - Мин. кол-во сделок
|
|
sinput double stage2MinSharpeRatio_ = 0.7; // - Мин. коэфф. Шарпа
|
|
sinput uint stage2Count_ = 8; // - Кол-во стратегий в группе (1 - 16)
|
|
|
|
|
|
sinput group "::: Этап 3. Итог"
|
|
sinput string stage3ExpertName_ = "Stage3.ex5"; // - Советник этапа
|
|
sinput ulong stage3Magic_ = 1968403; // - Magic
|
|
sinput bool stage3Tester_ = true; // - Для тестера?
|
|
|
|
|
|
//+------------------------------------------------------------------+
|