last ...
This commit is contained in:
@@ -3260,6 +3260,61 @@ class XCPOIDrawer : public XCBase
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create Specific Box on Chart ...
|
||||
*
|
||||
* @param box: XBoxZone instance Reference ...
|
||||
* @param clr: Color ...
|
||||
* @param width: Integer ...
|
||||
* @param fill: Boolean ...
|
||||
* @param style: ENUM_LINE_STYLE member ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
bool DrawBox(
|
||||
XBoxZone &box,
|
||||
XCBoxObject *&object //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
object = NULL;
|
||||
|
||||
//
|
||||
result = box.IsValid();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
int width = 1;
|
||||
bool fill = false;
|
||||
color clr =
|
||||
box.IsBullish()
|
||||
? BullishFVGColor()
|
||||
: BearishFVGColor();
|
||||
ENUM_LINE_STYLE style = STYLE_DASHDOTDOT;
|
||||
|
||||
//
|
||||
result = CreateBox(
|
||||
object,
|
||||
box.upper,
|
||||
box.lower,
|
||||
box.from,
|
||||
box.to,
|
||||
clr,
|
||||
width,
|
||||
fill,
|
||||
style //
|
||||
);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create Specific Box on Chart ...
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user