This commit is contained in:
2025-03-14 17:44:33 +03:30
parent fe7df78f5d
commit a05b8f464d
25 changed files with 32729 additions and 17459 deletions
-164
View File
@@ -2816,123 +2816,6 @@ class XCPOIDrawer : public XCBase
return result;
}
/**
* Create Trend Line Object ...
*
* @param swings: XSwingPoint instance Collection ...
*
* @return ( bool )
*/
bool CreateTrend(
XSwingPoint &swings[],
XCTrendObject *&object //
)
{
//
bool result = false;
//
object = NULL;
//
result = ArraySize(swings) >= 2 &&
IsValidSize(ArraySize(swings));
if (!result)
{
return result;
}
//
string prefix = Prefix();
long chartID = ChartIdentification();
int window = SubWindowIdentification();
//
object = new XCTrendObject();
result = object.Create(
chartID,
window,
swings,
prefix //
);
//
if (!result)
{
return result;
}
//
color clrTrend = swings[0].type == X_SWING_LOW
? SwingLowColor()
: SwingHighColor();
object.TrendColor(clrTrend);
object.TrendRayRight(true);
//
return result;
}
/**
* Create Trend Line Object ...
*
* @param swings: XSwingPoint instance Collection ...
* @param useMinAsStart: Specified Min Value as Start ...
*
* @return ( bool )
*/
bool CreateTrend(
XPoint &swings[],
XCTrendObject *&object,
bool useMinAsStart = true //
)
{
//
bool result = false;
//
object = NULL;
//
result = ArraySize(swings) >= 2 &&
IsValidSize(ArraySize(swings));
if (!result)
{
return result;
}
//
string prefix = Prefix();
long chartID = ChartIdentification();
int window = SubWindowIdentification();
//
object = new XCTrendObject();
result = object.Create(
chartID,
window,
swings,
useMinAsStart,
prefix //
);
//
if (!result)
{
return result;
}
//
color clrTrend = useMinAsStart
? SwingLowColor()
: SwingHighColor();
object.TrendColor(clrTrend);
object.TrendRayRight(true);
//
return result;
}
/**
* Create Consolidation Zone Object ...
*
@@ -3376,53 +3259,6 @@ class XCPOIDrawer : public XCBase
return result;
}
/**
* Create Specific Risk Reward (RR) on Chart ...
*
* @param rr: XRR instance Reference ...
*
* @return ( bool )
*/
bool CreateRR(
XRR &rr,
XCRRObject *&object //
)
{
//
bool result = false;
//
object = NULL;
//
result = rr.IsValid();
if (!result)
{
return result;
}
//
string prefix = Prefix();
long chartID = ChartIdentification();
int window = SubWindowIdentification();
//
object = new XCRRObject();
result = object.Create(
chartID,
window,
rr,
prefix //
);
if (!result)
{
return result;
}
//
return result;
}
/**
* Draw Specified Signal ...
*