27 lines
1.1 KiB
MQL5
27 lines
1.1 KiB
MQL5
//+------------------------------------------------------------------+
| |||
//| STimeframeConfig.mqh |
| |||
//| Copyright 2025, MetaQuotes Ltd. |
| |||
//| https://www.mql5.com |
| |||
//+------------------------------------------------------------------+
| |||
#property copyright "Copyright 2025, MetaQuotes Ltd."
| |||
#property link "https://www.mql5.com"
| |||
#property version "1.00"
| |||
| |||
enum ENUM_TIME_FETCH_TYPE
| |||
{
| |||
FETCH_BY_COUNT,
| |||
FETCH_PREVIOUS_DAY, // -> PreviousDayStart(currentTime)
| |||
FETCH_PREVIOUS_WEEK, // -> PreviousWeekStart(currentTime, count)
| |||
FETCH_FIRST_PREVIOUS_MONTH // -> FirstOfPreviousMonths(currentTime, count)
| |||
};
| |||
//+------------------------------------------------------------------+
| |||
//| |
| |||
//+------------------------------------------------------------------+
| |||
| |||
struct STimeframeConfig
| |||
{
| |||
ENUM_TIMEFRAMES tf;
| |||
ENUM_TIME_FETCH_TYPE fetchType;
| |||
int count;
| |||
bool relaunchOnNewPeriod;
| |||
};
|