This commit is contained in:
2025-02-28 14:24:22 +03:30
parent a266ed533b
commit c3bc38befb
7 changed files with 2138 additions and 97 deletions
+55
View File
@@ -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 ...
*