last ...
This commit is contained in:
@@ -611,8 +611,9 @@ class XCXCAEAPOIDetector : public XCBase
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Pivot Verifications and Max Allowed Holding Items ...
|
// Pivot Verifications and Max Allowed Holding Items ...
|
||||||
int pivotVerifications; // Pivots Verifications ...
|
int maxAllowedPivots; // Max Allowed Holding Pibots ...
|
||||||
int maxAllowedPivots; // Max Allowed Holding Pibots ...
|
int pivotVerifications; // Pivots Verifications ...
|
||||||
|
int pivotDetectionLoopbac; // Pivots Detection Loopback ...
|
||||||
|
|
||||||
//
|
//
|
||||||
// RSI Peak Pivot ...
|
// RSI Peak Pivot ...
|
||||||
@@ -748,6 +749,7 @@ class XCXCAEAPOIDetector : public XCBase
|
|||||||
//
|
//
|
||||||
maxAllowedPivots = 50;
|
maxAllowedPivots = 50;
|
||||||
pivotVerifications = 5;
|
pivotVerifications = 5;
|
||||||
|
pivotDetectionLoopbac = 100;
|
||||||
|
|
||||||
//
|
//
|
||||||
detectRSIPeakPivots = true;
|
detectRSIPeakPivots = true;
|
||||||
@@ -766,8 +768,7 @@ class XCXCAEAPOIDetector : public XCBase
|
|||||||
|
|
||||||
//
|
//
|
||||||
void Update(
|
void Update(
|
||||||
int barIndex = 0,
|
int barIndex = 0 //
|
||||||
int loopback = 400 //
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@@ -777,7 +778,8 @@ class XCXCAEAPOIDetector : public XCBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
loopback = NormalizeInt(loopback, 400);
|
int loopback = pivotDetectionLoopbac;
|
||||||
|
loopback = NormalizeInt(loopback, 50);
|
||||||
|
|
||||||
//
|
//
|
||||||
int idx = -1;
|
int idx = -1;
|
||||||
@@ -1019,7 +1021,14 @@ class XCXCAEAPOIDetector : public XCBase
|
|||||||
if (detectRSIPeakPivots)
|
if (detectRSIPeakPivots)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
if (isRSIPeak && isCBarHasBearishPower && conditions.isRSICrossedUnderOB)
|
bool checkingCondition =
|
||||||
|
isRSIPeak &&
|
||||||
|
isCBarHasBearishPower // &&
|
||||||
|
// conditions.isRSICrossedUnderOB
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
if (checkingCondition)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
XCAPivot iPivot;
|
XCAPivot iPivot;
|
||||||
@@ -1089,7 +1098,14 @@ class XCXCAEAPOIDetector : public XCBase
|
|||||||
if (detectRSIValePivots)
|
if (detectRSIValePivots)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
if (isRSIVale && isCBarHasBullishPower && conditions.isRSICrossedOverOS)
|
bool checkingCondition =
|
||||||
|
isRSIVale &&
|
||||||
|
isCBarHasBullishPower // &&
|
||||||
|
// conditions.isRSICrossedOverOS
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
if (checkingCondition)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
XCAPivot iPivot;
|
XCAPivot iPivot;
|
||||||
@@ -1159,7 +1175,14 @@ class XCXCAEAPOIDetector : public XCBase
|
|||||||
if (detectCCIPeakPivots)
|
if (detectCCIPeakPivots)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
if (isCCIPeak && isCBarHasBearishPower && conditions.isCCICrossedUnderOB)
|
bool checkingCondition =
|
||||||
|
isCCIPeak &&
|
||||||
|
isCBarHasBearishPower // &&
|
||||||
|
// conditions.isCCICrossedUnderOB
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
if (checkingCondition)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
XCAPivot iPivot;
|
XCAPivot iPivot;
|
||||||
@@ -1229,7 +1252,14 @@ class XCXCAEAPOIDetector : public XCBase
|
|||||||
if (detectCCIValePivots)
|
if (detectCCIValePivots)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
if (isCCIVale && isCBarHasBullishPower && conditions.isCCICrossedOverOS)
|
bool checkingCondition =
|
||||||
|
isCCIVale &&
|
||||||
|
isCBarHasBullishPower // &&
|
||||||
|
// conditions.isCCICrossedOverOS
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
if (checkingCondition)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
XCAPivot iPivot;
|
XCAPivot iPivot;
|
||||||
|
|||||||
@@ -727,6 +727,11 @@ class XCXCAEASignaller : XCBase
|
|||||||
// Initialize and Configure Detector ...
|
// Initialize and Configure Detector ...
|
||||||
detector = new XCXCAEAPOIDetector(helper);
|
detector = new XCXCAEAPOIDetector(helper);
|
||||||
|
|
||||||
|
//
|
||||||
|
detector.maxAllowedPivots = 50;
|
||||||
|
detector.pivotVerifications = 5;
|
||||||
|
detector.pivotDetectionLoopbac = 100;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Configure Detector ...
|
// Configure Detector ...
|
||||||
detector.detectRSIPeakPivots = true;
|
detector.detectRSIPeakPivots = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user