Fix Spread Passing for Signalling and Conditions Processing ...
This commit is contained in:
@@ -527,8 +527,8 @@ struct X121Conditions
|
||||
bool isSarBearish;
|
||||
|
||||
//
|
||||
bool isSarSwitchedBullish;
|
||||
bool isSarSwitchedBearish;
|
||||
bool isSarSwitchedToBullish;
|
||||
bool isSarSwitchedToBearish;
|
||||
|
||||
//
|
||||
// XPV ...
|
||||
@@ -735,8 +735,8 @@ struct X121Conditions
|
||||
isSarBearish = false;
|
||||
|
||||
//
|
||||
isSarSwitchedBullish = false;
|
||||
isSarSwitchedBearish = false;
|
||||
isSarSwitchedToBullish = false;
|
||||
isSarSwitchedToBearish = false;
|
||||
|
||||
//
|
||||
// XPV ...
|
||||
@@ -904,8 +904,8 @@ struct X121Conditions
|
||||
// XSAR ...
|
||||
ToString("isSarBullish", isSarBullish, ignoreFalseConditions, separator) +
|
||||
ToString("isSarBearish", isSarBearish, ignoreFalseConditions, separator) +
|
||||
ToString("isSarSwitchedBullish", isSarSwitchedBullish, ignoreFalseConditions, separator) +
|
||||
ToString("isSarSwitchedBearish", isSarSwitchedBearish, ignoreFalseConditions, separator) +
|
||||
ToString("isSarSwitchedToBullish", isSarSwitchedToBullish, ignoreFalseConditions, separator) +
|
||||
ToString("isSarSwitchedToBearish", isSarSwitchedToBearish, ignoreFalseConditions, separator) +
|
||||
//
|
||||
// XPV ...
|
||||
ToString("isNewPeak", isNewPeak, ignoreFalseConditions, separator) +
|
||||
@@ -3543,10 +3543,10 @@ class XCX121Helper : public XCBaseHelper
|
||||
bool isSarBearishPrev = conditions.sarBuffer[pIndex] > pBar.high;
|
||||
|
||||
//
|
||||
bool isSarSwitchedBullish = isSarBullish &&
|
||||
!isSarBullishPrev;
|
||||
bool isSarSwitchedBearish = isSarBearish &&
|
||||
!isSarBearishPrev;
|
||||
bool isSarSwitchedToBullish = isSarBullish &&
|
||||
!isSarBullishPrev;
|
||||
bool isSarSwitchedToBearish = isSarBearish &&
|
||||
!isSarBearishPrev;
|
||||
|
||||
//
|
||||
// XPV ...
|
||||
@@ -3710,8 +3710,8 @@ class XCX121Helper : public XCBaseHelper
|
||||
// Set ...
|
||||
conditions.isSarBullish = isSarBullish;
|
||||
conditions.isSarBearish = isSarBearish;
|
||||
conditions.isSarSwitchedBullish = isSarSwitchedBullish;
|
||||
conditions.isSarSwitchedBearish = isSarSwitchedBearish;
|
||||
conditions.isSarSwitchedToBullish = isSarSwitchedToBullish;
|
||||
conditions.isSarSwitchedToBearish = isSarSwitchedToBearish;
|
||||
conditions.isNewPeak = isNewPeak;
|
||||
conditions.isNewPeakOverLast = isNewPeakOverLast;
|
||||
conditions.isNewPeakUnderLast = isNewPeakUnderLast;
|
||||
|
||||
Reference in New Issue
Block a user