2026-07-24 08:28:00 +03:00
|
|
|
//+------------------------------------------------------------------+
|
2026-08-13 23:48:47 +03:00
|
|
|
//| StudyForecast.mq5 |
|
2026-07-24 08:28:00 +03:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
#property copyright "Copyright DNG®"
|
|
|
|
|
#property link "https://www.mql5.com/ru/users/dng"
|
|
|
|
|
#property version "1.00"
|
|
|
|
|
#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;
|
2026-08-10 03:18:14 +03:00
|
|
|
input bool ORIONRecoverySmoke = false;
|
|
|
|
|
input uint ORIONRecoverySmokeBatches = 2000;
|
|
|
|
|
input uint ORIONRecoverySmokeAge = 512;
|
2026-07-24 08:28:00 +03:00
|
|
|
//+------------------------------------------------------------------+
|
2026-08-13 23:48:47 +03:00
|
|
|
//| Function OnInit. |
|
2026-07-24 08:28:00 +03:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
int OnInit()
|
|
|
|
|
{
|
|
|
|
|
return (CreateORIONForecastStudy() ? INIT_SUCCEEDED : INIT_FAILED);
|
|
|
|
|
}
|
|
|
|
|
//+------------------------------------------------------------------+
|
2026-08-13 23:48:47 +03:00
|
|
|
//| Function OnDeinit. |
|
2026-07-24 08:28:00 +03:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
void OnDeinit(const int reason)
|
|
|
|
|
{
|
|
|
|
|
ReleaseORIONForecastStudy(reason);
|
|
|
|
|
}
|
|
|
|
|
//+------------------------------------------------------------------+
|
2026-08-13 23:48:47 +03:00
|
|
|
//| Chart event callback. |
|
2026-07-24 08:28:00 +03:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam)
|
|
|
|
|
{
|
|
|
|
|
if(id == 1001)
|
|
|
|
|
TrainORIONForecast();
|
|
|
|
|
}
|
|
|
|
|
//+------------------------------------------------------------------+
|
2026-08-13 23:48:47 +03:00
|
|
|
|