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;
provider = X121SMC_XWZ_PROVIDER_ACTIVATED_ZONE;
//
int idx = FindIndex(
activatedZone,
workingZone.waitingZones //
);
bool has = IsValidIndex(idx);
if (has)
{
//
ArrayRemove(
workingZone.waitingZones,
idx,
1 //
);
// //
// int idx = FindIndex(
// activatedZone,
// workingZone.waitingZones //
// );
// bool has = IsValidIndex(idx);
// if (has)
// {
// //
// ArrayRemove(
// workingZone.waitingZones,
// idx,
// 1 //
// );
//
AddRef(
activatedZone,
workingZone.unavailableZones //
);
}
// //
// AddRef(
// activatedZone,
// workingZone.unavailableZones //
// );
// }
}
}
@@ -914,7 +914,8 @@ class XCX121SMCXWZSignalDetector : public XCBase
//
// Summarize Results ...
result = hasPriority &&
result = false &&
hasPriority &&
hasSignalBox &&
hasRewardAmount;
@@ -961,6 +962,11 @@ class XCX121SMCXWZSignalDetector : public XCBase
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 ...
if (!result)
{
//
result = hasNewFairValueGap &&
(hasNewSupply ||
hasNewDemand);
if (result)
{
//
// Converts Supply or Demand Zone to OrderBlock ...
XOHCL bar;
ob = new XCOrderBlock();
if (hasNewSupply)
{
//
has = supply.FillBar(bar);
if (has)
{
//
has = ob.Init(
bar,
X_DIRECTION_BEARISH //
);
if (has)
{
//
ob.Upper(supply.Upper());
ob.Lower(supply.Lower());
}
}
}
else if (hasNewDemand)
{
//
has = demand.FillBar(bar);
if (has)
{
//
has = ob.Init(
bar,
X_DIRECTION_BULLISH //
);
if (has)
{
//
ob.Upper(demand.Upper());
ob.Lower(demand.Lower());
}
}
}
// if (!result)
// {
// //
// result = hasNewFairValueGap &&
// (hasNewSupply ||
// hasNewDemand);
// if (result)
// {
// //
// // Converts Supply or Demand Zone to OrderBlock ...
// XOHCL bar;
// ob = new XCOrderBlock();
// if (hasNewSupply)
// {
// //
// has = supply.FillBar(bar);
// if (has)
// {
// //
// has = ob.Init(
// bar,
// X_DIRECTION_BEARISH //
// );
// if (has)
// {
// //
// ob.Upper(supply.Upper());
// ob.Lower(supply.Lower());
// }
// }
// }
// else if (hasNewDemand)
// {
// //
// has = demand.FillBar(bar);
// if (has)
// {
// //
// has = ob.Init(
// bar,
// X_DIRECTION_BULLISH //
// );
// if (has)
// {
// //
// ob.Upper(demand.Upper());
// ob.Lower(demand.Lower());
// }
// }
// }
//
obFVG.ob = ob;
obFVG.AddFVG(fvg);
// //
// obFVG.ob = ob;
// obFVG.AddFVG(fvg);
//
has = obFVG.IsValid();
if (has)
{
//
// Check Item Is not Exists ...
idx = FindIndex(
obFVG,
waitingZones //
);
has = !IsValidIndex(idx);
if (has)
{
//
// New Waiting Zone ...
AddRef(
obFVG,
waitingZones //
);
}
else
{
//
// Update Exists Waiting Zone ...
waitingZones[idx].AddFVG(fvg);
}
}
// //
// has = obFVG.IsValid();
// if (has)
// {
// //
// // Check Item Is not Exists ...
// idx = FindIndex(
// obFVG,
// waitingZones //
// );
// has = !IsValidIndex(idx);
// if (has)
// {
// //
// // New Waiting Zone ...
// AddRef(
// obFVG,
// waitingZones //
// );
// }
// else
// {
// //
// // Update Exists Waiting Zone ...
// waitingZones[idx].AddFVG(fvg);
// }
// }
//
bar.Clean();
}
}
// //
// bar.Clean();
// }
// }
//
result = HasWaitingZones();
@@ -752,8 +752,8 @@ struct X121SMCStrategyXWZWorkingZone
zone,
waitingZones //
);
result = !IsValidIndex(idx);
if (!result)
result = IsValidIndex(idx);
if (result)
{
return result;
}
@@ -764,8 +764,8 @@ struct X121SMCStrategyXWZWorkingZone
zone,
unavailableZones //
);
result = !IsValidIndex(idx);
if (!result)
result = IsValidIndex(idx);
if (result)
{
return result;
}