This commit is contained in:
2024-12-16 19:48:01 +03:30
parent e45fee2729
commit 2a3138402d
5 changed files with 1123 additions and 275 deletions
@@ -812,6 +812,28 @@ class XC121SMCCycleHelper : public XCBase
return result;
}
/**
* Retrieve Last Sar Changes ...
*
* @param change: XValueChange instance ...
*
* @return ( bool )
*/
bool GetLastSarChange(XValueChange &change)
{
//
bool result = false;
//
result = GetLastItem(
change,
mSarChanges //
);
//
return result;
}
/**
* Count Saved Peaks Changes ...
*
@@ -849,6 +871,28 @@ class XC121SMCCycleHelper : public XCBase
return result;
}
/**
* Retrieve Last Peak Changes ...
*
* @param change: XValueChange instance ...
*
* @return ( bool )
*/
bool GetLastPeakChange(XValueChange &change)
{
//
bool result = false;
//
result = GetLastItem(
change,
mPeaksChanges //
);
//
return result;
}
/**
* Count Saved Vales Changes ...
*
@@ -886,6 +930,28 @@ class XC121SMCCycleHelper : public XCBase
return result;
}
/**
* Retrieve Last Vale Changes ...
*
* @param change: XValueChange instance ...
*
* @return ( bool )
*/
bool GetLastValeChange(XValueChange &change)
{
//
bool result = false;
//
result = GetLastItem(
change,
mValesChanges //
);
//
return result;
}
/**
* Count Saved VWap Order Changes ...
*
@@ -923,6 +989,28 @@ class XC121SMCCycleHelper : public XCBase
return result;
}
/**
* Retrieve Last VWap Order Changes ...
*
* @param change: XValueChange instance ...
*
* @return ( bool )
*/
bool GetLastVWapOrderChange(XValueChange &change)
{
//
bool result = false;
//
result = GetLastItem(
change,
mVWapOrderChanges //
);
//
return result;
}
/**
* Count Saved VWap State Changes ...
*
@@ -960,6 +1048,28 @@ class XC121SMCCycleHelper : public XCBase
return result;
}
/**
* Retrieve Last VWap State Changes ...
*
* @param change: XValueChange instance ...
*
* @return ( bool )
*/
bool GetLastVWapStateChange(XValueChange &change)
{
//
bool result = false;
//
result = GetLastItem(
change,
mVWapStateChanges //
);
//
return result;
}
/**
* Count Founded Consolidation Zones ...
*
@@ -997,6 +1107,28 @@ class XC121SMCCycleHelper : public XCBase
return result;
}
/**
* Retrieve Last Consolidation Breaks ...
*
* @param change: XValueChange instance ...
*
* @return ( bool )
*/
bool GetLastConsolidationZone(XConsolidationZone &zone)
{
//
bool result = false;
//
result = GetLastItem(
zone,
mConsolidationZones //
);
//
return result;
}
/**
* Count Pivot Points Change ...
*
@@ -1145,7 +1277,7 @@ class XC121SMCCycleHelper : public XCBase
virtual void Default()
{
//
ConsolidationLoopback(15);
ConsolidationLoopback(10);
MaxAllowedSavedChanges(50);
}
@@ -1549,41 +1681,29 @@ class XC121SMCCycleHelper : public XCBase
mActioveConsolidationZone.IsValid())
{
//
// Check Consolidation Breaks ...
// Update Zone ...
// Add it ...
bool isBOSTop = changeBar.high > mActioveConsolidationZone.upper;
bool isBOSBottom = changeBar.low < mActioveConsolidationZone.lower;
mActioveConsolidationZone.Update();
bool isBreaked = mActioveConsolidationZone.IsBreaked();
//
// Calculate Break Direction ...
ENUM_X_DIRECTION bosDir = isBOSTop
? X_DIRECTION_BULLISH
: isBOSBottom
? X_DIRECTION_BEARISH
: X_DIRECTION_NONE;
if (isBreaked)
{
//
// Add Active to List ...
AddRef(
mActioveConsolidationZone,
mConsolidationZones //
);
//
// Update Actiove Zone ...
mActioveConsolidationZone.breakerBar = changeBar;
mActioveConsolidationZone.breakDirection = bosDir;
//
// Clean Active Zone ...
mActioveConsolidationZone.Clean();
//
// Add Active to List ...
AddRef(
mActioveConsolidationZone,
mConsolidationZones //
);
//
// Clean Active Zone ...
mActioveConsolidationZone.Clean();
//
Add(
CONSOLIDATION_BREAKED_DETECTED,
events //
);
//
Add(
CONSOLIDATION_BREAKED_DETECTED,
events //
);
}
}
}