last ...
This commit is contained in:
@@ -1430,6 +1430,36 @@ class XCPOIDrawer : public XCBase
|
|||||||
ZeroMemory(iObj);
|
ZeroMemory(iObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Draw Specified Zones ...
|
||||||
|
*
|
||||||
|
* @param _zone: XBozxZone, reference to Collection Specified Zone ...
|
||||||
|
* @param config: XPOIDrawConfig, Darwing Configuration ...
|
||||||
|
*/
|
||||||
|
void DrawZones(
|
||||||
|
XBoxZone &_zones[],
|
||||||
|
XPOIDrawConfig &config //
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Validate ...
|
||||||
|
bool has = HasChild(_zones);
|
||||||
|
if (!has)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
for (int i = 0; i < ArraySize(_zones); i++)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
DrawZone(
|
||||||
|
_zones[i],
|
||||||
|
config //
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draw Specified Pattern info ...
|
* Draw Specified Pattern info ...
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -0,0 +1,97 @@
|
|||||||
|
|
||||||
|
// //
|
||||||
|
// isBullish =
|
||||||
|
// //
|
||||||
|
// // Vales Same ...
|
||||||
|
// sameVales >= 7 &&
|
||||||
|
// //
|
||||||
|
// // PBar Patterns ...
|
||||||
|
// isBarPatternsPassed &&
|
||||||
|
// isPBarCloseOverFast &&
|
||||||
|
// //
|
||||||
|
// // Validate PullBack based on HK Bond ...
|
||||||
|
// isPullbackBullish &&
|
||||||
|
// pBar.close > pHKBondLower;
|
||||||
|
|
||||||
|
//
|
||||||
|
// poiDrawer.DrawPatternAnalysis(
|
||||||
|
// pBarAnalysis,
|
||||||
|
// structureDrawConfig.barAnalysisDrawConfig //
|
||||||
|
// );
|
||||||
|
|
||||||
|
// //
|
||||||
|
// if (IsValidSize(zonesCount))
|
||||||
|
// {
|
||||||
|
// //
|
||||||
|
// poiDrawer.DrawZones(
|
||||||
|
// zones,
|
||||||
|
// structureDrawConfig.drawConfig //
|
||||||
|
// );
|
||||||
|
// }
|
||||||
|
|
||||||
|
// //
|
||||||
|
// if (IsValidSize(affectedZonesCount))
|
||||||
|
// {
|
||||||
|
// //
|
||||||
|
// poiDrawer.DrawZones(
|
||||||
|
// affectedZones,
|
||||||
|
// structureDrawConfig.drawConfig //
|
||||||
|
// );
|
||||||
|
// }
|
||||||
|
|
||||||
|
//
|
||||||
|
// poiDrawer.DrawZones(
|
||||||
|
// affectedZonesBullish,
|
||||||
|
// structureDrawConfig.drawConfig //
|
||||||
|
// );
|
||||||
|
|
||||||
|
// //
|
||||||
|
// poiDrawer.DrawZones(
|
||||||
|
// affectedZonesBearish,
|
||||||
|
// structureDrawConfig.drawConfig //
|
||||||
|
// );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// //
|
||||||
|
// // Update POI Zones ...
|
||||||
|
// ENUM_X_DETECTOR_ZONE_ACTION zoneActions[];
|
||||||
|
// poiDetector.UpdateZones(
|
||||||
|
// iBar,
|
||||||
|
// zoneActions //
|
||||||
|
// // Validation Length ...
|
||||||
|
// // Required Zones ...
|
||||||
|
// // Loopback ...
|
||||||
|
// );
|
||||||
|
|
||||||
|
//
|
||||||
|
// Retrieve Conditions ...
|
||||||
|
// conditions.Clean();
|
||||||
|
// has = fimaHelper.GetConditions(
|
||||||
|
// conditions,
|
||||||
|
// barIndex,
|
||||||
|
// 10 // Loopback ...
|
||||||
|
// );
|
||||||
|
// if (!has)
|
||||||
|
// {
|
||||||
|
// //
|
||||||
|
// iBar.Clean();
|
||||||
|
// conditions.Clean();
|
||||||
|
|
||||||
|
// //
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
//
|
||||||
|
// structure.Clean();
|
||||||
|
// poiDetector.AnalyseMarket(
|
||||||
|
// structure,
|
||||||
|
// structureConfig,
|
||||||
|
// barIndex //
|
||||||
|
// );
|
||||||
|
// poiDrawer.drawnObjects.Clear();
|
||||||
|
// poiDrawer.DrawMarketStructure(
|
||||||
|
// structure,
|
||||||
|
// structureDrawConfig //
|
||||||
|
// );
|
||||||
File diff suppressed because it is too large
Load Diff
+907
-241
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -39,12 +39,6 @@ class XCXFIMAPOIDetector : public XCMarketPatternDetector
|
|||||||
XCBarAnalyser *barAnalyser; // Bar Analyser ...
|
XCBarAnalyser *barAnalyser; // Bar Analyser ...
|
||||||
XCXFIMAHelper *fimaHelper; // XFIMA Helper ...
|
XCXFIMAHelper *fimaHelper; // XFIMA Helper ...
|
||||||
|
|
||||||
//
|
|
||||||
XBoxZone obs[];
|
|
||||||
XBoxZone fvgs[];
|
|
||||||
XBoxZone supports[];
|
|
||||||
XBoxZone resistances[];
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Constructor ...
|
// Constructor ...
|
||||||
XCXFIMAPOIDetector(
|
XCXFIMAPOIDetector(
|
||||||
@@ -344,12 +338,6 @@ class XCXFIMAPOIDetector : public XCMarketPatternDetector
|
|||||||
*/
|
*/
|
||||||
void Destroy()
|
void Destroy()
|
||||||
{
|
{
|
||||||
//
|
|
||||||
SpecifiedClean(obs);
|
|
||||||
SpecifiedClean(fvgs);
|
|
||||||
SpecifiedClean(supports);
|
|
||||||
SpecifiedClean(resistances);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
delete barAnalyser;
|
delete barAnalyser;
|
||||||
ZeroMemory(barAnalyser);
|
ZeroMemory(barAnalyser);
|
||||||
|
|||||||
Reference in New Issue
Block a user