This commit is contained in:
2025-08-28 13:34:24 +03:30
parent 69df921dd2
commit ec41d0c907
5 changed files with 284 additions and 31 deletions
+34 -30
View File
@@ -22,8 +22,8 @@
//
// Imports ...
#include "../../Classes/x-saherelm.x-poi.drawer.class.mq5"
#include "../../Helpers/x-saherelm.xom1.helper.mq5"
#include "../Classes/xom1ea.x-poi.drawer.class.mq5"
#include "../Libraries/xom1ea.lib.mq5"
//
@@ -76,7 +76,7 @@ class XCXOM1SignallerBase
XOM1Inputs inputs; // Indicator Inputs ...
ENUM_TIMEFRAMES period; // Period ...
XOM1SignallerConfig config; // Configuration ...
XCPOIDrawer drawer; // POI Drawer ...
XCXOM1POIDrawer drawer; // POI Drawer ...
//
// Constructor ...
@@ -137,9 +137,6 @@ class XCXOM1SignallerBase
//
inputs.Clean();
//
mObjects.Clear();
//
SpecifiedClean(zones);
@@ -231,6 +228,10 @@ class XCXOM1SignallerBase
// Update Indicator Helper ...
mHelper.Update(barIndex);
//
// Process Exists Zone ...
ProcessZones(barIndex);
//
// Do All Processing Mechanism ...
@@ -319,7 +320,7 @@ class XCXOM1SignallerBase
iDir,
iReason,
iConditions.bars[pIdx].time, // From ...
iConditions.bars[cIdx].time // To
iConditions.bars[cIdx].time // To
);
if (has)
{
@@ -350,9 +351,6 @@ class XCXOM1SignallerBase
//
// Props ...
//
CArrayObj mObjects; // Drawn Objects ...
//
XCXOM1Helper *mHelper; // Indicator Helper ...
@@ -389,33 +387,39 @@ class XCXOM1SignallerBase
// zones[i].UpdateByBarIndex(barIndex);
//
// COnverts to Box ...
XBoxZone iBox;
has = zones[i].ToBox(iBox);
if (has)
{
//
XCBoxObject *iBoxObj;
has = drawer.DrawBox(
iBox,
iBoxObj,
true // Ignore At ...
);
if (has)
{
mObjects.Add(iBoxObj);
}
}
//
iBox.Clean();
drawer.DrawZone(zones[i], true, true);
}
}
//
// Check XOMZones Validations ...
}
/**
* Process Exists Zones ...
* Detect a Zone for trigger ...
*
* @param barIndex: int
*/
void ProcessZones(int barIndex = 0)
{
//
// Check Zones Exists ...
int count = ArraySize(zones);
bool has = IsValidSize(count);
if (!has)
{
return;
}
//
// Loop Through Zones ...
for (int i = 0; i < count; i++)
{
//
}
}
};
//