Add Support for Drawing, Styling also Refactor POI Drawer and etc ...
This commit is contained in:
@@ -361,6 +361,48 @@ struct XPivot
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Pivot Time Bar ...
|
||||
*
|
||||
* @param bar: XOHCL, reference to hold result ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
bool GetBar(XOHCL &bar)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
// Prepare ...
|
||||
bar.Clean();
|
||||
|
||||
//
|
||||
// Validate ...
|
||||
result = IsValid();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Initial Bar ...
|
||||
result = bar.Init(
|
||||
symbol,
|
||||
period,
|
||||
time //
|
||||
);
|
||||
|
||||
//
|
||||
if (!result)
|
||||
{
|
||||
bar.Clean();
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check to model Has Same Symbol ...
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user