Complete Supply and Demand Zone ...

This commit is contained in:
2024-10-23 11:42:34 +03:30
parent 6ce5da4707
commit 8212d542f2
4 changed files with 1452 additions and 68 deletions
+72 -10
View File
@@ -42,6 +42,8 @@ enum ENUM_XCHARTOBJECTS
X_MARKET_SESSION,
X_SUPPORT_ZONE,
X_RESISTANCE_ZONE,
X_SUPPLY_ZONE,
X_DEMAND_ZONE,
};
enum ENUM_X_CHART_IDS
@@ -411,8 +413,6 @@ class XCZoneObject : public CChartObject
long chart_id,
const string name,
const int window,
const datetime time1,
const datetime time2,
const XZone &zone,
const string objprefix = NULL,
const bool forceRect = false //
@@ -421,14 +421,9 @@ class XCZoneObject : public CChartObject
//
bool result = false;
//
NormalizeTime(time2);
//
XZone tmpZone = zone;
result =
time1 < time2 &&
IsValid(time1) &&
IsValid(name) &&
tmpZone.IsValid();
if (!result)
@@ -441,13 +436,14 @@ class XCZoneObject : public CChartObject
chart_id,
name,
window,
time1,
time2,
zone.from,
zone.to,
zone.upper,
zone.upper,
zone.lower,
zone.lower,
objprefix //
objprefix,
forceRect //
);
//
@@ -850,3 +846,69 @@ class XCResistanceZoneObject : public XCZoneObject
};
//
// Supply Zone ...
class XCSupplyZoneObject : public XCZoneObject
{
//
public:
//
//
// Constructors ...
void XCSupplyZoneObject()
{
}
//
// Deconstructors ...
void ~XCSupplyZoneObject()
{
}
/**
* Retrieve Object Type ...
*
* @return ( ENUM_XCHARTOBJECTS )
*/
virtual ENUM_XCHARTOBJECTS Type()
{
return X_SUPPLY_ZONE;
}
//
};
//
// Demand Zone ...
class XCDemandZoneObject : public XCZoneObject
{
//
public:
//
//
// Constructors ...
void XCDemandZoneObject()
{
}
//
// Deconstructors ...
void ~XCDemandZoneObject()
{
}
/**
* Retrieve Object Type ...
*
* @return ( ENUM_XCHARTOBJECTS )
*/
virtual ENUM_XCHARTOBJECTS Type()
{
return X_DEMAND_ZONE;
}
//
};
//
File diff suppressed because it is too large Load Diff