adding zone ...
This commit is contained in:
@@ -0,0 +1,79 @@
|
|||||||
|
///////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// SaherElm IT Center MQL5 Class Library
|
||||||
|
// ----------------------------------------------
|
||||||
|
// Name: XSCZone
|
||||||
|
// Description: provides all Zone 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 <Arrays/ArrayObj.mqh>
|
||||||
|
#include "../Libraries/x-saherelm.common.lib.mq5"
|
||||||
|
|
||||||
|
//
|
||||||
|
// Specific Zone ...
|
||||||
|
class XSCZone : public CObject
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Public ...
|
||||||
|
public:
|
||||||
|
//
|
||||||
|
// Props ...
|
||||||
|
double high;
|
||||||
|
double low;
|
||||||
|
int ticks;
|
||||||
|
double percent;
|
||||||
|
|
||||||
|
//
|
||||||
|
ENUM_TIMEFRAMES period;
|
||||||
|
datetime start;
|
||||||
|
datetime end;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Compare Two Zone With Each Other ...
|
||||||
|
virtual int Compare(
|
||||||
|
const CObject *node,
|
||||||
|
const int mode = 0 //
|
||||||
|
) const
|
||||||
|
{
|
||||||
|
//
|
||||||
|
const XSCZone *other = (XSCZone *)node;
|
||||||
|
|
||||||
|
//
|
||||||
|
return other.ticks - ticks;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Props ...
|
||||||
|
string GetTag() {
|
||||||
|
//
|
||||||
|
string result = "";
|
||||||
|
|
||||||
|
//
|
||||||
|
result = "XZ_" + ToString(period) + "_" + ToString(start);
|
||||||
|
|
||||||
|
//
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Protected ...
|
||||||
|
protected:
|
||||||
|
//
|
||||||
|
// Private ...
|
||||||
|
private:
|
||||||
|
};
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user