This commit is contained in:
2024-11-19 22:03:44 +03:30
parent ee9ea11b6a
commit a345aa52c1
7 changed files with 1003 additions and 43 deletions
@@ -557,8 +557,8 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
MqlTick mLastTick; // Last Issued Tick ...
//
XBarTracker mBarTracker; // Strategy Time Tracker ...
XCBarAnalyser mBarAnalyser; // Bar Analyser Instance
XBarTracker mBarTracker; // Strategy Time Tracker ...
XCBarAnalyser mBarAnalyser; // Bar Analyser Instance
// X121SMCStrategyConditions mConditions; // Market Conditions ...
//
@@ -993,7 +993,8 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
bool drawBullishRejectionBars = true,
bool drawBearishRejectionBars = true,
bool drawBullishMomentumBars = true,
bool drawBearishMomentumBars = true //
bool drawBearishMomentumBars = true,
bool drawTicksZone = true //
)
{
//
@@ -1075,7 +1076,8 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
{
//
XCSupportZone item = state.supportZones[i];
if (forceUpdateTo) {
if (forceUpdateTo)
{
item.To(cTime);
}
@@ -1106,7 +1108,8 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
{
//
XCResistanceZone item = state.resistanceZones[i];
if (forceUpdateTo) {
if (forceUpdateTo)
{
item.To(cTime);
}
@@ -1140,7 +1143,8 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
{
//
XCSupplyZone item = state.supplyZones[i];
if (forceUpdateTo) {
if (forceUpdateTo)
{
item.To(cTime);
}
@@ -1171,7 +1175,8 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
{
//
XCDemandZone item = state.demandZones[i];
if (forceUpdateTo) {
if (forceUpdateTo)
{
item.To(cTime);
}
@@ -1205,7 +1210,8 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
{
//
XCOrderBlock item = state.bullishOrderBlocks[i];
if (forceUpdateTo) {
if (forceUpdateTo)
{
item.To(cTime);
}
@@ -1236,7 +1242,8 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
{
//
XCOrderBlock item = state.bearishOrderBlocks[i];
if (forceUpdateTo) {
if (forceUpdateTo)
{
item.To(cTime);
}
@@ -1270,7 +1277,8 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
{
//
XCFVG item = state.bullishFairValueGaps[i];
if (forceUpdateTo) {
if (forceUpdateTo)
{
item.To(cTime);
}
@@ -1301,7 +1309,8 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
{
//
XCFVG item = state.bearishFairValueGaps[i];
if (forceUpdateTo) {
if (forceUpdateTo)
{
item.To(cTime);
}
@@ -1439,10 +1448,28 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
//
// Ticks Zone ...
if (state.ticksZone != NULL)
if (drawTicksZone &&
state.ticksZone != NULL)
{
//
// TODO: Implement this ...
XCTicksZone *iZone = state.ticksZone;
//
if (forceUpdateTo)
{
iZone.To(cTime);
}
//
XCTicksZoneObject *iObj;
bool isCreated = mPOIDrawer.CreateTicksZone(
iZone,
iObj //
);
if (isCreated)
{
AddObjectIfNotExists(iObj);
}
}
}