This commit is contained in:
2025-03-05 14:40:12 +03:30
parent 8f9ad96b90
commit 94341f9ad5
3 changed files with 118 additions and 112 deletions
@@ -484,27 +484,27 @@ class XCX121SMCXWZSignalDetector : public XCBase
signalBoxDir = signalBox.dir; signalBoxDir = signalBox.dir;
provider = X121SMC_XWZ_PROVIDER_ACTIVATED_ZONE; provider = X121SMC_XWZ_PROVIDER_ACTIVATED_ZONE;
// // //
int idx = FindIndex( // int idx = FindIndex(
activatedZone, // activatedZone,
workingZone.waitingZones // // workingZone.waitingZones //
); // );
bool has = IsValidIndex(idx); // bool has = IsValidIndex(idx);
if (has) // if (has)
{ // {
// // //
ArrayRemove( // ArrayRemove(
workingZone.waitingZones, // workingZone.waitingZones,
idx, // idx,
1 // // 1 //
); // );
// // //
AddRef( // AddRef(
activatedZone, // activatedZone,
workingZone.unavailableZones // // workingZone.unavailableZones //
); // );
} // }
} }
} }
@@ -914,7 +914,8 @@ class XCX121SMCXWZSignalDetector : public XCBase
// //
// Summarize Results ... // Summarize Results ...
result = hasPriority && result = false &&
hasPriority &&
hasSignalBox && hasSignalBox &&
hasRewardAmount; hasRewardAmount;
@@ -961,6 +962,11 @@ class XCX121SMCXWZSignalDetector : public XCBase
true // Draw Waiting Zones Box Area ... true // Draw Waiting Zones Box Area ...
// //
); );
//
if (hasSignalBox) {
Print("Has Signal Box ...");
}
} }
// //
+88 -88
View File
@@ -494,93 +494,93 @@ struct X121SMCStrategyXWZWorkingZone
// //
// Detect SupDem FVG ... // Detect SupDem FVG ...
if (!result) // if (!result)
{ // {
// // //
result = hasNewFairValueGap && // result = hasNewFairValueGap &&
(hasNewSupply || // (hasNewSupply ||
hasNewDemand); // hasNewDemand);
if (result) // if (result)
{ // {
// // //
// Converts Supply or Demand Zone to OrderBlock ... // // Converts Supply or Demand Zone to OrderBlock ...
XOHCL bar; // XOHCL bar;
ob = new XCOrderBlock(); // ob = new XCOrderBlock();
if (hasNewSupply) // if (hasNewSupply)
{ // {
// // //
has = supply.FillBar(bar); // has = supply.FillBar(bar);
if (has) // if (has)
{ // {
// // //
has = ob.Init( // has = ob.Init(
bar, // bar,
X_DIRECTION_BEARISH // // X_DIRECTION_BEARISH //
); // );
if (has) // if (has)
{ // {
// // //
ob.Upper(supply.Upper()); // ob.Upper(supply.Upper());
ob.Lower(supply.Lower()); // ob.Lower(supply.Lower());
} // }
} // }
} // }
else if (hasNewDemand) // else if (hasNewDemand)
{ // {
// // //
has = demand.FillBar(bar); // has = demand.FillBar(bar);
if (has) // if (has)
{ // {
// // //
has = ob.Init( // has = ob.Init(
bar, // bar,
X_DIRECTION_BULLISH // // X_DIRECTION_BULLISH //
); // );
if (has) // if (has)
{ // {
// // //
ob.Upper(demand.Upper()); // ob.Upper(demand.Upper());
ob.Lower(demand.Lower()); // ob.Lower(demand.Lower());
} // }
} // }
} // }
// // //
obFVG.ob = ob; // obFVG.ob = ob;
obFVG.AddFVG(fvg); // obFVG.AddFVG(fvg);
// // //
has = obFVG.IsValid(); // has = obFVG.IsValid();
if (has) // if (has)
{ // {
// // //
// Check Item Is not Exists ... // // Check Item Is not Exists ...
idx = FindIndex( // idx = FindIndex(
obFVG, // obFVG,
waitingZones // // waitingZones //
); // );
has = !IsValidIndex(idx); // has = !IsValidIndex(idx);
if (has) // if (has)
{ // {
// // //
// New Waiting Zone ... // // New Waiting Zone ...
AddRef( // AddRef(
obFVG, // obFVG,
waitingZones // // waitingZones //
); // );
} // }
else // else
{ // {
// // //
// Update Exists Waiting Zone ... // // Update Exists Waiting Zone ...
waitingZones[idx].AddFVG(fvg); // waitingZones[idx].AddFVG(fvg);
} // }
} // }
// // //
bar.Clean(); // bar.Clean();
} // }
} // }
// //
result = HasWaitingZones(); result = HasWaitingZones();
@@ -752,8 +752,8 @@ struct X121SMCStrategyXWZWorkingZone
zone, zone,
waitingZones // waitingZones //
); );
result = !IsValidIndex(idx); result = IsValidIndex(idx);
if (!result) if (result)
{ {
return result; return result;
} }
@@ -764,8 +764,8 @@ struct X121SMCStrategyXWZWorkingZone
zone, zone,
unavailableZones // unavailableZones //
); );
result = !IsValidIndex(idx); result = IsValidIndex(idx);
if (!result) if (result)
{ {
return result; return result;
} }
@@ -811,9 +811,9 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
// //
// X3MA ... // X3MA ...
x121Inputs.x3maInputs.showX3MaFast = showAll || false; x121Inputs.x3maInputs.showX3MaFast = showAll || true;
x121Inputs.x3maInputs.showX3MaMid = showAll || false; x121Inputs.x3maInputs.showX3MaMid = showAll || true;
x121Inputs.x3maInputs.showX3MaSlow = showAll || false; x121Inputs.x3maInputs.showX3MaSlow = showAll || true;
// //
// Initialize Cycle Helpers ... // Initialize Cycle Helpers ...