This commit is contained in:
2024-12-30 22:20:32 +03:30
parent 0bfed000db
commit 8d90d3bcc2
8 changed files with 258 additions and 6565 deletions
+8 -5
View File
@@ -1755,24 +1755,27 @@ class XCSignalObject : public XCBaseObject
*/
bool Create(
long chart_id,
const string name,
const int window,
XSignal &signal //
XSignal &signal,
string prefix = NULL //
)
{
//
bool result = false;
//
result = IsValid(name) &&
signal
.IsValid();
result = signal.IsValid();
if (!result)
{
return result;
}
//
string name = signal.GetTag();
if (IsValid(prefix))
{
name = prefix + "_" + name;
}
string nameMD5 = ToMD5(name);
//
+61 -14
View File
@@ -2487,12 +2487,6 @@ class XCPOIDrawer : public XCBase
long chartID = ChartIdentification();
int window = SubWindowIdentification();
//
// bool fill = BearishFVGFill();
// int width = BearishFVGWidth();
// color crl = BearishFVGColor();
// ENUM_LINE_STYLE style = BearishFVGStyle();
//
object = new XCTicksZoneObject();
result = object.Create(
@@ -2513,6 +2507,49 @@ class XCPOIDrawer : public XCBase
return result;
}
/**
* Create Consolidation Zone Object ...
*
* @param zone: XConsolidationZone instance Reference ...
*
* @return ( bool )
*/
bool CreateConsolidationZone(
XConsolidationZone &zone,
XCConsolidationZoneObject *&object //
)
{
//
bool result = false;
//
object = NULL;
//
result = zone.IsValid();
if (!result)
{
return result;
}
//
string prefix = Prefix();
long chartID = ChartIdentification();
int window = SubWindowIdentification();
//
object = new XCConsolidationZoneObject();
result = object.Create(
chartID,
window,
zone,
prefix //
);
//
return result;
}
/**
* Draw Specified Signal ...
*
@@ -2537,13 +2574,17 @@ class XCPOIDrawer : public XCBase
}
//
string name = signal.GetTag();
string prefix = Prefix();
long chartID = ChartIdentification();
int window = SubWindowIdentification();
//
object = new XCSignalObject();
result = object.Create(
ChartIdentification(),
name,
SubWindowIdentification(),
signal //
chartID,
window,
signal,
prefix //
);
if (!result)
{
@@ -3155,14 +3196,20 @@ class XCPOIDrawer : public XCBase
return result;
}
//
string prefix = Prefix();
long chartID = ChartIdentification();
int window = SubWindowIdentification();
//
// Draw Pivot it self ...
XCXPVPivotObject *iPivotObj;
iPivotObj = new XCXPVPivotObject();
bool isCreated = iPivotObj.Create(
ChartIdentification(),
SubWindowIdentification(),
pivot //
chartID,
window,
pivot,
prefix //
);
if (!isCreated)
{