fix xpv and add support for providing fractals based Supports and Resistances ...

This commit is contained in:
2025-03-13 05:47:12 +03:30
parent 935c8405fa
commit fe7df78f5d
7 changed files with 799 additions and 35 deletions
+38 -1
View File
@@ -765,6 +765,42 @@ struct X121SMCStrategyXWZWorkingZone
return result;
}
bool DetectTreand(
ENUM_X_DIRECTION &dir //
)
{
//
bool result = false;
//
dir = X_DIRECTION_NONE;
//
// Overal ...
ENUM_X_DIRECTION overal;
bool hasOveral = DetectOveralDirection(overal);
//
// Waiting Boxes ...
ENUM_X_DIRECTION boxDir = X_DIRECTION_NONE;
XBoxZone tmpBoxes[];
Copy(
waitingBoxes,
tmpBoxes //
);
int count = ArraySize(tmpBoxes);
bool has = IsValidSize(count);
if (has)
{
//
}
//
//
return result;
}
/**
* Update all Collections Members To Time ...
*
@@ -1021,7 +1057,8 @@ struct X121SMCStrategyXWZWorkingZone
{
//
ENUM_X_DIRECTION overalTrend;
bool hasTrend = DetectOveralTrend(overalTrend);
bool hasTrend = DetectOveralDirection(overalTrend);
if (hasTrend)
{
//
@@ -795,6 +795,8 @@ class XCX121SMCStrategy : public XCX121SMCBaseStrategy
x121Inputs.xpvInputs.showSar = showAll || true;
x121Inputs.xpvInputs.showPeaks = showAll || true;
x121Inputs.xpvInputs.showVales = showAll || true;
x121Inputs.xpvInputs.showSupports = showAll || true;
x121Inputs.xpvInputs.showResistances = showAll || true;
x121Inputs.xpvInputs.showGoldenZones = showAll || true;
//