This commit is contained in:
2024-10-26 19:48:36 +03:30
parent ce1db83914
commit 5f9a14bf7d
5 changed files with 1631 additions and 333 deletions
+36 -36
View File
@@ -2657,8 +2657,8 @@ class XCPOI : public XSCBaseAlert
int rejectionBarLoopBackBarIndex = RejectionBarLoopBack() + 1;
XOHCL iRBar;
bool isIRBarInited = iRBar.Init(
Symbol(),
Period(),
mSymbol,
mPeriod,
rejectionBarLoopBackBarIndex //
);
if (isIRBarInited)
@@ -2808,7 +2808,7 @@ class XCPOI : public XSCBaseAlert
datetime endTime = cBar.time;
XOHCL cSupplyBar;
bool isSupplyBarInited = cSupplyBar.Init(
Symbol(),
mSymbol,
SupplyZonePeriod(),
0 //
);
@@ -2816,14 +2816,14 @@ class XCPOI : public XSCBaseAlert
{
//
datetime lastSupplyBarTime = cSupplyBar
.GetLastBarTimeOfPeriod(Period());
.GetLastBarTimeOfPeriod(mPeriod);
if (zBar.time == lastSupplyBarTime)
{
//
datetime startTime = cSupplyBar.time;
int cSupplyZonePeriodIndex = iBarShift(
Symbol(),
Period(),
mSymbol,
mPeriod,
cSupplyBar.time //
);
@@ -2835,8 +2835,8 @@ class XCPOI : public XSCBaseAlert
//
XOHCL iBar;
bool isIBarInited = iBar.Init(
Symbol(),
Period(),
mSymbol,
mPeriod,
i //
);
if (!isIBarInited)
@@ -2936,10 +2936,10 @@ class XCPOI : public XSCBaseAlert
if (allowDemandZones)
{
//
endTime = cBar.time;
datetime endTime = cBar.time;
XOHCL cDemandBar;
bool isDemandBarInited = cDemandBar.Init(
Symbol(),
mSymbol,
DemandZonePeriod(),
0 //
);
@@ -2947,14 +2947,14 @@ class XCPOI : public XSCBaseAlert
{
//
datetime lastDemandBarTime = cDemandBar
.GetLastBarTimeOfPeriod(Period());
.GetLastBarTimeOfPeriod(mPeriod);
if (zBar.time == lastDemandBarTime)
{
//
datetime startTime = cDemandBar.time;
int cDemandZonePeriodIndex = iBarShift(
Symbol(),
Period(),
mSymbol,
mPeriod,
cDemandBar.time //
);
@@ -2966,8 +2966,8 @@ class XCPOI : public XSCBaseAlert
//
XOHCL iBar;
bool isIBarInited = iBar.Init(
Symbol(),
Period(),
mSymbol,
mPeriod,
i //
);
if (!isIBarInited)
@@ -3281,7 +3281,7 @@ class XCPOI : public XSCBaseAlert
/**
* Set All POIs Detection States ...
*
* @param state: Argument 1
* @param state: Argument 1
*/
void ChangePOIsState(bool state)
{
@@ -3370,8 +3370,8 @@ class XCPOI : public XSCBaseAlert
state.Clean();
//
state.symbol = Symbol();
state.period = Period();
state.symbol = mSymbol;
state.period = mPeriod;
state.reportedAt = TimeCurrent();
//
@@ -3565,14 +3565,14 @@ class XCPOI : public XSCBaseAlert
SupplyZoneWidth(1);
SupplyZoneColor(clrDarkRed);
SupplyZoneStyle(STYLE_DASH);
SupplyZonePeriod(GetHindMostPeriod(Period()));
SupplyZonePeriod(GetHindMostPeriod(mPeriod));
//
// Demand Zones ...
DemandZoneWidth(1);
DemandZoneColor(clrDarkGreen);
DemandZoneStyle(STYLE_DASH);
DemandZonePeriod(GetHindMostPeriod(Period()));
DemandZonePeriod(GetHindMostPeriod(mPeriod));
//
// Order Blocks ...
@@ -4496,7 +4496,7 @@ class XCPOI : public XSCBaseAlert
//
datetime cSupplyZoneStartTime = iTime(
Symbol(),
mSymbol,
SupplyZonePeriod(),
supplyZonesCount + 1 //
);
@@ -4504,8 +4504,8 @@ class XCPOI : public XSCBaseAlert
//
int cSupplyZoneStartIndex = iBarShift(
Symbol(),
Period(),
mSymbol,
mPeriod,
cSupplyZoneStartTime //
);
@@ -4516,8 +4516,8 @@ class XCPOI : public XSCBaseAlert
//
XOHCL iBar;
bool isIBarInited = iBar.Init(
Symbol(),
Period(),
mSymbol,
mPeriod,
i //
);
if (!isIBarInited)
@@ -4596,7 +4596,7 @@ class XCPOI : public XSCBaseAlert
//
datetime cDemandZoneStartTime = iTime(
Symbol(),
mSymbol,
DemandZonePeriod(),
demandZonesCount + 1 //
);
@@ -4604,8 +4604,8 @@ class XCPOI : public XSCBaseAlert
//
int cDemandZoneStartIndex = iBarShift(
Symbol(),
Period(),
mSymbol,
mPeriod,
cDemandZoneStartTime //
);
@@ -4616,8 +4616,8 @@ class XCPOI : public XSCBaseAlert
//
XOHCL iBar;
bool isIBarInited = iBar.Init(
Symbol(),
Period(),
mSymbol,
mPeriod,
i //
);
if (!isIBarInited)
@@ -4666,7 +4666,7 @@ class XCPOI : public XSCBaseAlert
bool isInited = zone.Init(
selectedSwing.high,
selectedSwing.low,
ToString(X_POI_DEMAND_ZONE) + "_" + ToString(SupplyZonePeriod()),
ToString(X_POI_DEMAND_ZONE) + "_" + ToString(DemandZonePeriod()),
startTime,
endTime //
);
@@ -7773,7 +7773,7 @@ class XCPOI : public XSCBaseAlert
NormalizeTime(endTime);
//
datetime startTime = (datetime)((int)ob.time - (PeriodSeconds(Period()) * 2));
datetime startTime = (datetime)((int)ob.time - (PeriodSeconds(mPeriod) * 2));
//
result = zone.Init(
@@ -8641,8 +8641,8 @@ class XCPOI : public XSCBaseAlert
{
//
cBarTime = iTime(
Symbol(),
Period(),
mSymbol,
mPeriod,
bar.Index() - 10 //
);
}
@@ -8712,8 +8712,8 @@ class XCPOI : public XSCBaseAlert
{
//
cBarTime = iTime(
Symbol(),
Period(),
mSymbol,
mPeriod,
bar.Index() - 10 //
);
}