last ...
This commit is contained in:
@@ -569,7 +569,11 @@ class XCXFIMAStrategy2Signaller : public XCXFIMABaseSignaller
|
||||
{
|
||||
//
|
||||
// Configure Detector ...
|
||||
//
|
||||
analyserConfig.Default();
|
||||
analyserConfig.validMACrossDiffMultiplier = 4;
|
||||
|
||||
//
|
||||
analyserConfig.FullDetect();
|
||||
}
|
||||
|
||||
@@ -1165,94 +1169,101 @@ class XCXFIMAStrategy2Signaller : public XCXFIMABaseSignaller
|
||||
|
||||
//
|
||||
// Testing Bar Zones ...
|
||||
XBoxZone barZones[];
|
||||
int barCounts = fima2Signaller.fimaHelper.ExtractBarZones(
|
||||
barZones,
|
||||
1, // Bar Index ...
|
||||
50, // Number of Zones ...
|
||||
3, // Break Validation Length ...
|
||||
true, // Validate Fake Breakes ...
|
||||
5, // Shadow Multiplier ...
|
||||
1, // Strength ...
|
||||
14 // Validation Length ...
|
||||
);
|
||||
if (IsValidSize(barCounts))
|
||||
{
|
||||
//
|
||||
XCBoxObject *iObj;
|
||||
for (int i = 0; i < barCounts; i++)
|
||||
{
|
||||
//
|
||||
iObj = NULL;
|
||||
bool isCreated = fima2Signaller.poiDrawer.DrawBox(
|
||||
barZones[i],
|
||||
iObj,
|
||||
true, // Ignore At ...
|
||||
barZones[i].type // Name ...
|
||||
);
|
||||
// XBoxZone barZones[];
|
||||
// int barCounts = fima2Signaller.fimaHelper.ExtractBarZones(
|
||||
// barZones,
|
||||
// 1, // Bar Index ...
|
||||
// 50, // Number of Zones ...
|
||||
// 3, // Break Validation Length ...
|
||||
// true, // Validate Fake Breakes ...
|
||||
// 5, // Shadow Multiplier ...
|
||||
// 1, // Strength ...
|
||||
// 14 // Validation Length ...
|
||||
// );
|
||||
// if (IsValidSize(barCounts))
|
||||
// {
|
||||
// //
|
||||
// // XCBoxObject *iObj;
|
||||
// // for (int i = 0; i < barCounts; i++)
|
||||
// // {
|
||||
// // //
|
||||
// // iObj = NULL;
|
||||
// // bool isCreated = fima2Signaller.poiDrawer.DrawBox(
|
||||
// // barZones[i],
|
||||
// // iObj,
|
||||
// // true, // Ignore At ...
|
||||
// // barZones[i].type // Name ...
|
||||
// // );
|
||||
|
||||
//
|
||||
ZeroMemory(iObj);
|
||||
}
|
||||
// // //
|
||||
// // ZeroMemory(iObj);
|
||||
// // }
|
||||
|
||||
// //
|
||||
// Print("Bar Zones Detected ...");
|
||||
}
|
||||
// // //
|
||||
// // Print("Bar Zones Detected ...");
|
||||
// }
|
||||
|
||||
//
|
||||
// Testing HK Zones ...
|
||||
XBoxZone hkZones[];
|
||||
int hkCounts = fima2Signaller.fimaHelper.ExtractHKZones(
|
||||
hkZones,
|
||||
1, // Bar Index ...
|
||||
50, // Number of Zones ...
|
||||
5, // Shadow Multiplier ...
|
||||
1, // Strength ...
|
||||
14 // Validation Length ...
|
||||
);
|
||||
if (IsValidSize(hkCounts))
|
||||
{
|
||||
// //
|
||||
// XCBoxObject *iObj;
|
||||
// for (int i = 0; i < hkCounts; i++)
|
||||
// {
|
||||
// //
|
||||
// iObj = NULL;
|
||||
// bool isCreated = fima2Signaller.poiDrawer.DrawBox(
|
||||
// hkZones[i],
|
||||
// iObj,
|
||||
// true, // Ignore At ...
|
||||
// hkZones[i].type // Name ...
|
||||
// );
|
||||
// XBoxZone hkZones[];
|
||||
// int hkCounts = fima2Signaller.fimaHelper.ExtractHKZones(
|
||||
// hkZones,
|
||||
// 1, // Bar Index ...
|
||||
// 50, // Number of Zones ...
|
||||
// 5, // Shadow Multiplier ...
|
||||
// 1, // Strength ...
|
||||
// 14 // Validation Length ...
|
||||
// );
|
||||
// if (IsValidSize(hkCounts))
|
||||
// {
|
||||
// // //
|
||||
// // XCBoxObject *iObj;
|
||||
// // for (int i = 0; i < hkCounts; i++)
|
||||
// // {
|
||||
// // //
|
||||
// // iObj = NULL;
|
||||
// // bool isCreated = fima2Signaller.poiDrawer.DrawBox(
|
||||
// // hkZones[i],
|
||||
// // iObj,
|
||||
// // true, // Ignore At ...
|
||||
// // hkZones[i].type // Name ...
|
||||
// // );
|
||||
|
||||
// //
|
||||
// ZeroMemory(iObj);
|
||||
// }
|
||||
// // //
|
||||
// // ZeroMemory(iObj);
|
||||
// // }
|
||||
|
||||
// //
|
||||
// Print("HK Zones Detected ...");
|
||||
}
|
||||
// // //
|
||||
// // Print("HK Zones Detected ...");
|
||||
// }
|
||||
|
||||
//
|
||||
// Testing XFIMA MA Pivots ...
|
||||
XPivot maPivots[];
|
||||
int maPivotsCount = fimaHelper.ExtractMAPivots(
|
||||
maPivots,
|
||||
1, // Bar Index ...
|
||||
50, // Number of Pivots ...
|
||||
0 // Validation Length ...
|
||||
);
|
||||
if (IsValidSize(maPivotsCount))
|
||||
{
|
||||
//
|
||||
CArrayObj *iPivotsObj;
|
||||
maPivotsCount = poiDrawer.DrawPivots(
|
||||
maPivots,
|
||||
iPivotsObj //
|
||||
);
|
||||
// XPivot maPivots[];
|
||||
// int maPivotsCount = fimaHelper.ExtractMAPivots(
|
||||
// maPivots,
|
||||
// 1, // Bar Index ...
|
||||
// 50, // Number of Pivots ...
|
||||
// 1 // Validation Diff ...
|
||||
// );
|
||||
// if (IsValidSize(maPivotsCount))
|
||||
// {
|
||||
// //
|
||||
// // CArrayObj *iPivotsObj;
|
||||
// // maPivotsCount = poiDrawer.DrawPivots(
|
||||
// // maPivots,
|
||||
// // iPivotsObj //
|
||||
// // );
|
||||
|
||||
//
|
||||
Print("MA Pivots Detected ...");
|
||||
// //
|
||||
// // Print("MA Pivots Detected ...");
|
||||
// }
|
||||
|
||||
//
|
||||
bool hasMACross = HasDirection(structure.maCrossDir);
|
||||
if (hasMACross)
|
||||
{
|
||||
Print(ToXString(structure.maCrossDir), " MaCross Detected ...");
|
||||
}
|
||||
|
||||
//
|
||||
@@ -1357,16 +1368,17 @@ class XCXFIMAStrategy2Signaller : public XCXFIMABaseSignaller
|
||||
|
||||
//
|
||||
// Strategy 1 ...
|
||||
has = Strategy1HasSignal(
|
||||
bar,
|
||||
iZone,
|
||||
iName,
|
||||
supports,
|
||||
resistances,
|
||||
iDir,
|
||||
structure,
|
||||
fimaConditions //
|
||||
);
|
||||
has = false;
|
||||
// has = Strategy1HasSignal(
|
||||
// bar,
|
||||
// iZone,
|
||||
// iName,
|
||||
// supports,
|
||||
// resistances,
|
||||
// iDir,
|
||||
// structure,
|
||||
// fimaConditions //
|
||||
// );
|
||||
|
||||
//
|
||||
// Do all Draws Here ...
|
||||
|
||||
@@ -916,6 +916,28 @@ class XCXFIMAPOIDetector : public XCMarketPatternDetector
|
||||
resistance.Clean();
|
||||
}
|
||||
|
||||
//
|
||||
// Detecting MA Crosses ...
|
||||
if (config.detectMACrosses)
|
||||
{
|
||||
//
|
||||
idx = forBar.Index();
|
||||
has = fimaHelper.HasMACross(
|
||||
structure.maCrossDir,
|
||||
idx,
|
||||
config.validMACrossDiffMultiplier //
|
||||
);
|
||||
|
||||
//
|
||||
fimaHelper.ExtractMAPivots(
|
||||
structure.maCrosses,
|
||||
idx,
|
||||
config.recentlyPatternsMaxAllowedCollecting,
|
||||
config.validMACrossDiffMultiplier,
|
||||
config.recentlyPatternsMaxLookupLength //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Analysers ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user