주시
1
0
포크
이미 NN_in_Trading을(를) 포크했습니다
0
원본 프로젝트 dng/NN_in_Trading
NN_in_Trading/Experts/ORION/StudyForecast.mq5
2026-09-29 18:12:11 +03:00
43 라인
EOL 없음
2.2 KiB
MQL5
//+------------------------------------------------------------------+
//| StudyForecast.mq5 |
//| Copyright 2026, DNG |
//| https://www.mql5.com/ru/users/dng |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, DNG"
#property link "https://www.mql5.com/ru/users/dng"
#property version "1.00"
#property description "Харнесс обучения прогнозного блока ORION."
#property description "Обучает модель на заданном историческом интервале и проверяет восстановление чекпоинта."
#property description "Только для тестов; ордера не выставляет."
#define ORION_FORECAST_STUDY
#define Study
#include "Trajectory.mqh"
input datetime Start = D'2024.01.01';
input datetime End = D'2026.01.01';
input int Epochs = 100;
input bool ORIONRecoverySmoke = false;
input uint ORIONRecoverySmokeBatches = 2000;
input uint ORIONRecoverySmokeAge = 512;
//+------------------------------------------------------------------+
//| Function OnInit. |
//+------------------------------------------------------------------+
int OnInit()
{
return (CreateORIONForecastStudy() ? INIT_SUCCEEDED : INIT_FAILED);
}
//+------------------------------------------------------------------+
//| Function OnDeinit. |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
ReleaseORIONForecastStudy(reason);
}
//+------------------------------------------------------------------+
//| Chart event callback. |
//+------------------------------------------------------------------+
void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam)
{
if(id == 1001)
TrainORIONForecast();
}
//+------------------------------------------------------------------+