38 lines
1.5 KiB
MQL5
38 lines
1.5 KiB
MQL5
//+------------------------------------------------------------------+
| |||
//| SymbolConfig.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"
| |||
| |||
#include "SymbolRiskManagementConfigs.mqh"
| |||
#include <Collection/DynamicArraylist.mqh>
| |||
| |||
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;
| |||
};
| |||
| |||
struct SymbolConfig
| |||
{
| |||
string symbol;
| |||
ENUM_TIMEFRAMES tradeTimeframe;
| |||
CArrayList<STimeframeConfig> tfConfigs;
| |||
SymbolRiskManagementConfigs rmConfigs;
| |||
};
| |||
//+------------------------------------------------------------------+
|