refactor all requirements for draw and detect pois and also add Fima Helper, Parser Class Implementations for Separation of Concerns ...
This commit is contained in:
@@ -702,79 +702,6 @@ class XCXFIMAPOIDrawer : public XCPOIDrawer
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Draw Specified Market Structure Based on Given Configs ...
|
||||
*
|
||||
* @param structure: XFIMAMarketStructure, reference to Provide Specifid Market Structure ...
|
||||
* @param config: XFIMAMarketStructureDrawerConfig, reference to Provide Drawing Configurations ...
|
||||
*/
|
||||
void DrawMarketStructure(
|
||||
XFIMAMarketStructure &structure,
|
||||
XFIMAMarketStructureDrawerConfig &config //
|
||||
)
|
||||
{
|
||||
//
|
||||
// Validate ...
|
||||
bool has = structure.IsValid();
|
||||
if (!has)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// PV Analysis ...
|
||||
if (config.drawPVAnalysis)
|
||||
{
|
||||
//
|
||||
has = structure.pvAnalysis.IsValid();
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
DrawPivotAnalysis(
|
||||
structure.pvAnalysis,
|
||||
config.pivotAnalysisDrawConfig //
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// ZG Analysis ...
|
||||
if (config.drawZGAnalysis)
|
||||
{
|
||||
//
|
||||
has = structure.zgAnalysis.IsValid();
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
DrawPivotAnalysis(
|
||||
structure.zgAnalysis,
|
||||
config.pivotAnalysisDrawConfig //
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Bars Analysis ...
|
||||
if (config.drawBarsAnalysis)
|
||||
{
|
||||
//
|
||||
int count = ArraySize(structure.barsAnalysis);
|
||||
has = IsValidSize(count);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
//
|
||||
DrawPatternAnalysis(
|
||||
structure.barsAnalysis[i],
|
||||
config.barAnalysisDrawConfig //
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user