well tested truge detecting ...
This commit is contained in:
@@ -147,8 +147,9 @@ XCXFIMAStrategy1Signaller *fima1Signaller; // XFIMA1 Signaller ...
|
||||
XCXFIMAStrategy2Signaller *fima2Signaller; // XFIMA2 Signaller ...
|
||||
|
||||
//
|
||||
XFIMAMarketStructure marketStructure; // POI Analysis Result ...
|
||||
XFIMAPatternDetectorConfig detectorConfig; // POI Detector Config ...
|
||||
XFIMAMarketStructure marketStructure; // POI Analysis Result ...
|
||||
XFIMAPatternDetectorConfig detectorConfig; // POI Detector Config ...
|
||||
XFIMAMarketStructureDrawerConfig marketStructureDrawerConfig; // POI Drawer Config ...
|
||||
|
||||
//
|
||||
// Drawer and eaDraws ...
|
||||
@@ -383,8 +384,10 @@ int OnInit()
|
||||
}
|
||||
|
||||
//
|
||||
// Configure XFIMA POI Detector ...
|
||||
detectorConfig.Default();
|
||||
// Configure XFIMA POI Detector / Drawer ...
|
||||
detectorConfig.Clean();
|
||||
detectorConfig.detectTrueGaped = true;
|
||||
marketStructureDrawerConfig.FullDraw();
|
||||
|
||||
//
|
||||
Print(ShortName, ": Initialized Successfully ...");
|
||||
@@ -469,6 +472,24 @@ void OnTick()
|
||||
marketStructure,
|
||||
detectorConfig //
|
||||
);
|
||||
CArrayObj *iObjects;
|
||||
int drawnsCount = fima2Signaller.poiDrawer.DrawMarketStructure(
|
||||
marketStructure,
|
||||
marketStructureDrawerConfig,
|
||||
iObjects //
|
||||
);
|
||||
if (IsValidSize(drawnsCount))
|
||||
{
|
||||
//
|
||||
AddObjects(
|
||||
iObjects,
|
||||
eaDraws //
|
||||
);
|
||||
}
|
||||
if (HasDirection(marketStructure.trueGapedDir))
|
||||
{
|
||||
Print("true gap detected ...");
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user