55 lines
1.1 KiB
Plaintext
55 lines
1.1 KiB
Plaintext
///////////////////////////////////////////////////////
|
|
//
|
|
// SaherElm IT Center MQL5 Class Library
|
|
// ----------------------------------------------
|
|
// Name: XSCRange
|
|
// Description: provides all Range requirements ...
|
|
//
|
|
//
|
|
// Maintainer:
|
|
// ------------
|
|
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
|
|
//
|
|
//////////////////////////////////////////////////////
|
|
//
|
|
// Global Properties ...
|
|
#property library
|
|
#property copyright "Copyright 2023, SaherElm IT Center"
|
|
#property link "https://www.saherelm.ir"
|
|
#property version "1.00"
|
|
#property strict
|
|
|
|
//
|
|
// Imports ...
|
|
#include "../Classes/x-saherelm.base.class.mq5"
|
|
#include "../Libraries/x-saherelm.xtrade.lib.mq5"
|
|
#include "../Classes/x-saherelm.xaccount.class.mq5"
|
|
|
|
//
|
|
// Definitions ...
|
|
|
|
//
|
|
enum ENUM_XSCRANGE_CALCULATION_MODE {
|
|
//
|
|
XSCRANGE_CALCULATE_MANUALLY = 0,
|
|
XSCRANGE_CALCULATE_DAILY = 1,
|
|
XSCRANGE_CALCULATE_HALFDAY = 2,
|
|
XSCRANGE_CALCULATE_4H = 3,
|
|
};
|
|
|
|
//
|
|
struct XSCRangeInput
|
|
{
|
|
//
|
|
// Props ...
|
|
|
|
//
|
|
datetime startTime; // Range Start Time
|
|
datetime endTime; // Range End Time
|
|
|
|
//
|
|
int lifetime; // Range Live Time (Secconds)
|
|
|
|
//
|
|
|
|
}; |