Complete Rejection Bars ...
This commit is contained in:
@@ -1278,7 +1278,8 @@ class XCPOIDrawer : public XCBase
|
||||
/**
|
||||
* Create Swing High Object ...
|
||||
*
|
||||
* @param swing: XOHCL instance ...
|
||||
* @param swing: XCSwing instance ...
|
||||
* @param object: XCSwingHighObject pointer ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
@@ -1303,6 +1304,7 @@ class XCPOIDrawer : public XCBase
|
||||
}
|
||||
|
||||
//
|
||||
string prefix = Prefix();
|
||||
long chartID = ChartIdentification();
|
||||
int window = SubWindowIdentification();
|
||||
|
||||
@@ -1317,7 +1319,8 @@ class XCPOIDrawer : public XCBase
|
||||
chartID,
|
||||
window,
|
||||
arrow,
|
||||
swing //
|
||||
swing,
|
||||
prefix //
|
||||
);
|
||||
|
||||
//
|
||||
@@ -1338,7 +1341,8 @@ class XCPOIDrawer : public XCBase
|
||||
/**
|
||||
* Create Swing Low Object ...
|
||||
*
|
||||
* @param swing: XOHCL instance ...
|
||||
* @param swing: XCSwing instance ...
|
||||
* @param object: XCSwingLowObject pointer ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
@@ -1363,6 +1367,7 @@ class XCPOIDrawer : public XCBase
|
||||
}
|
||||
|
||||
//
|
||||
string prefix = Prefix();
|
||||
long chartID = ChartIdentification();
|
||||
int window = SubWindowIdentification();
|
||||
|
||||
@@ -1377,7 +1382,8 @@ class XCPOIDrawer : public XCBase
|
||||
chartID,
|
||||
window,
|
||||
arrow,
|
||||
swing //
|
||||
swing,
|
||||
prefix //
|
||||
);
|
||||
|
||||
//
|
||||
@@ -1395,6 +1401,264 @@ class XCPOIDrawer : public XCBase
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Momentum Bars ...
|
||||
|
||||
/**
|
||||
* Create Bullish Momentum Bar Object ...
|
||||
*
|
||||
* @param momentumBar: XCMomentumBar instance ...
|
||||
* @param object: XCBullishMomentumObject pointer ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
bool CreateBullishMomentumBar(
|
||||
XCMomentumBar &momentumBar,
|
||||
XCBullishMomentumObject *&object //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
object = NULL;
|
||||
|
||||
//
|
||||
result =
|
||||
momentumBar.IsValid() &&
|
||||
momentumBar.IsBullish();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
string prefix = Prefix();
|
||||
long chartID = ChartIdentification();
|
||||
int window = SubWindowIdentification();
|
||||
|
||||
//
|
||||
int arrow = BullishMomentumBarArrow();
|
||||
int width = BullishMomentumBarWidth();
|
||||
color crl = BullishMomentumBarColor();
|
||||
|
||||
//
|
||||
object = new XCBullishMomentumObject();
|
||||
result = object.Create(
|
||||
chartID,
|
||||
window,
|
||||
arrow,
|
||||
momentumBar,
|
||||
prefix //
|
||||
);
|
||||
|
||||
//
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
object.ArrowColor(crl);
|
||||
object.ArrowWidth(width);
|
||||
object.ArrowAnchor(ANCHOR_TOP);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create Bearish Momentum Bar Object ...
|
||||
*
|
||||
* @param momentumBar: XCMomentumBar instance ...
|
||||
* @param object: XCBearishMomentumObject pointer ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
bool CreateBearishMomentumBar(
|
||||
XCMomentumBar &momentumBar,
|
||||
XCBearishMomentumObject *&object //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
object = NULL;
|
||||
|
||||
//
|
||||
result =
|
||||
momentumBar.IsValid() &&
|
||||
momentumBar.IsBearish();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
string prefix = Prefix();
|
||||
long chartID = ChartIdentification();
|
||||
int window = SubWindowIdentification();
|
||||
|
||||
//
|
||||
int arrow = BearishMomentumBarArrow();
|
||||
int width = BearishMomentumBarWidth();
|
||||
color crl = BearishMomentumBarColor();
|
||||
|
||||
//
|
||||
object = new XCBearishMomentumObject();
|
||||
result = object.Create(
|
||||
chartID,
|
||||
window,
|
||||
arrow,
|
||||
momentumBar,
|
||||
prefix //
|
||||
);
|
||||
|
||||
//
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
object.ArrowColor(crl);
|
||||
object.ArrowWidth(width);
|
||||
object.ArrowAnchor(ANCHOR_BOTTOM);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Rejection Bars ...
|
||||
|
||||
/**
|
||||
* Create Bullish Rejection Bar Object ...
|
||||
*
|
||||
* @param momentumBar: XCRejectionBar instance ...
|
||||
* @param object: XCBullishRejectionObject pointer ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
bool CreateBullishRejectionBar(
|
||||
XCRejectionBar &rejectionBar,
|
||||
XCBullishRejectionObject *&object //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
object = NULL;
|
||||
|
||||
//
|
||||
result =
|
||||
rejectionBar.IsValid() &&
|
||||
rejectionBar.IsBullish();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
string prefix = Prefix();
|
||||
long chartID = ChartIdentification();
|
||||
int window = SubWindowIdentification();
|
||||
|
||||
//
|
||||
int arrow = BullishRejectionBarArrow();
|
||||
int width = BullishRejectionBarWidth();
|
||||
color crl = BullishRejectionBarColor();
|
||||
|
||||
//
|
||||
object = new XCBullishRejectionObject();
|
||||
result = object.Create(
|
||||
chartID,
|
||||
window,
|
||||
arrow,
|
||||
rejectionBar,
|
||||
prefix //
|
||||
);
|
||||
|
||||
//
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
object.ArrowColor(crl);
|
||||
object.ArrowWidth(width);
|
||||
object.ArrowAnchor(ANCHOR_TOP);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create Bearish Rejection Bar Object ...
|
||||
*
|
||||
* @param rejectionBar: XCRejectionBar instance ...
|
||||
* @param object: XCBearishRejectionObject pointer ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
bool CreateBearishRejectionBar(
|
||||
XCRejectionBar &rejectionBar,
|
||||
XCBearishRejectionObject *&object //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
object = NULL;
|
||||
|
||||
//
|
||||
result =
|
||||
rejectionBar.IsValid() &&
|
||||
rejectionBar.IsBearish();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
string prefix = Prefix();
|
||||
long chartID = ChartIdentification();
|
||||
int window = SubWindowIdentification();
|
||||
|
||||
//
|
||||
int arrow = BearishRejectionBarArrow();
|
||||
int width = BearishRejectionBarWidth();
|
||||
color crl = BearishRejectionBarColor();
|
||||
|
||||
//
|
||||
object = new XCBearishRejectionObject();
|
||||
result = object.Create(
|
||||
chartID,
|
||||
window,
|
||||
arrow,
|
||||
rejectionBar,
|
||||
prefix //
|
||||
);
|
||||
|
||||
//
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
object.ArrowColor(crl);
|
||||
object.ArrowWidth(width);
|
||||
object.ArrowAnchor(ANCHOR_BOTTOM);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
protected:
|
||||
//
|
||||
@@ -1411,34 +1675,34 @@ class XCPOIDrawer : public XCBase
|
||||
SubWindowIdentification(0);
|
||||
|
||||
//
|
||||
SwingLowWidth(2);
|
||||
SwingLowWidth(3);
|
||||
SwingLowArrow(108);
|
||||
SwingLowColor(clrAqua);
|
||||
|
||||
//
|
||||
SwingHighWidth(2);
|
||||
SwingHighWidth(3);
|
||||
SwingHighArrow(108);
|
||||
SwingHighColor(clrMagenta);
|
||||
|
||||
//
|
||||
BullishMomentumBarWidth(1);
|
||||
BullishMomentumBarWidth(3);
|
||||
BullishMomentumBarArrow(225);
|
||||
BullishMomentumBarColor(clrLime);
|
||||
BullishMomentumBarColor(clrAqua);
|
||||
|
||||
//
|
||||
BearishMomentumBarWidth(1);
|
||||
BearishMomentumBarWidth(3);
|
||||
BearishMomentumBarArrow(226);
|
||||
BearishMomentumBarColor(clrRed);
|
||||
BearishMomentumBarColor(clrMagenta);
|
||||
|
||||
//
|
||||
BullishRejectionBarWidth(1);
|
||||
BullishRejectionBarWidth(3);
|
||||
BullishRejectionBarArrow(217);
|
||||
BullishRejectionBarColor(clrLime);
|
||||
BullishRejectionBarColor(clrAqua);
|
||||
|
||||
//
|
||||
BearishRejectionBarWidth(1);
|
||||
BearishRejectionBarWidth(3);
|
||||
BearishRejectionBarArrow(218);
|
||||
BearishRejectionBarColor(clrRed);
|
||||
BearishRejectionBarColor(clrMagenta);
|
||||
|
||||
//
|
||||
SupportZoneFill(true);
|
||||
|
||||
Reference in New Issue
Block a user