Complete Rejection Bars ...
This commit is contained in:
@@ -75,18 +75,20 @@ enum ENUM_XPOI_EVENTS
|
||||
{
|
||||
//
|
||||
// Trading Days ...
|
||||
X_TRADE_DAY_FIRST_BAR, // Trading Day Start ...
|
||||
X_TRADE_DAY_LAST_BAR, // Trading Day End ...
|
||||
X_TRADE_DAY_FIRST_BAR, // Trading Day First Bar ...
|
||||
X_TRADE_DAY_LAST_BAR, // Trading Day Last Bar ...
|
||||
//
|
||||
// Session ...
|
||||
X_SESSION_FIRST_BAR, // Session First Bar ...
|
||||
X_SESSION_LAST_BAR, // Session Last Bar ...
|
||||
//
|
||||
// Momentum Bar ...
|
||||
X_MOMENTUM_BAR_DETECTED, // Momentum Bar ...
|
||||
X_BULLISH_MOMENTUM_BAR_DETECTED,
|
||||
X_BEARISH_MOMENTUM_BAR_DETECTED,
|
||||
//
|
||||
// Rejection Bar ...
|
||||
X_REJECTION_BAR_DETECTED, // Rejection Bar ...
|
||||
X_BULLISH_REJECTION_BAR_DETECTED,
|
||||
X_BEARISH_REJECTION_BAR_DETECTED,
|
||||
//
|
||||
// Swings ...
|
||||
X_SWING_HIGH_DETECTED,
|
||||
@@ -643,6 +645,35 @@ class XCBarZone : public XCZone
|
||||
//
|
||||
// Getter(s) / Setter(s) ...
|
||||
|
||||
/**
|
||||
* Fill Bar as XOHCL struct ...
|
||||
*
|
||||
* @param bar: XOHCL instance ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
bool FillBar(
|
||||
XOHCL &bar //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
result = IsValid();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
bar = mBar;
|
||||
result = mBar.IsValid();
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Overrides ...
|
||||
|
||||
@@ -1045,7 +1076,7 @@ class XCSwing : public XCBasePOI
|
||||
// Getter(s) / Setter(s) ...
|
||||
|
||||
/**
|
||||
* Fill Swing Bar as XOHCLstruct ...
|
||||
* Fill Bar as XOHCL struct ...
|
||||
*
|
||||
* @param bar: XOHCL instance ...
|
||||
*
|
||||
@@ -1872,7 +1903,7 @@ class XCRejectionBar : public XCBarZone
|
||||
|
||||
//
|
||||
// Momentum Bar ...
|
||||
class XMomentumBar : public XCBarZone
|
||||
class XCMomentumBar : public XCBarZone
|
||||
{
|
||||
//
|
||||
public:
|
||||
@@ -1880,13 +1911,13 @@ class XMomentumBar : public XCBarZone
|
||||
|
||||
//
|
||||
// Constructor ...
|
||||
void XMomentumBar()
|
||||
void XCMomentumBar()
|
||||
{
|
||||
}
|
||||
|
||||
//
|
||||
// Deconstructor ...
|
||||
void ~XMomentumBar()
|
||||
void ~XCMomentumBar()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -2491,13 +2522,23 @@ string ToString(ENUM_XPOI_EVENTS value)
|
||||
break;
|
||||
|
||||
//
|
||||
case X_MOMENTUM_BAR_DETECTED:
|
||||
result = "Momentum Bar Detected";
|
||||
case X_BULLISH_MOMENTUM_BAR_DETECTED:
|
||||
result = "Bullish Momentum Bar Detected";
|
||||
break;
|
||||
|
||||
//
|
||||
case X_REJECTION_BAR_DETECTED:
|
||||
result = "Rejection Bar Detected";
|
||||
case X_BEARISH_MOMENTUM_BAR_DETECTED:
|
||||
result = "Bearish Momentum Bar Detected";
|
||||
break;
|
||||
|
||||
//
|
||||
case X_BULLISH_REJECTION_BAR_DETECTED:
|
||||
result = "Bullish Rejection Bar Detected";
|
||||
break;
|
||||
|
||||
//
|
||||
case X_BEARISH_REJECTION_BAR_DETECTED:
|
||||
result = "Bearish Rejection Bar Detected";
|
||||
break;
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user