last ...
This commit is contained in:
@@ -973,7 +973,6 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
int score = 0;
|
|
||||||
int scoreBullish = 0;
|
int scoreBullish = 0;
|
||||||
int scoreBearish = 0;
|
int scoreBearish = 0;
|
||||||
bool isBullish = false;
|
bool isBullish = false;
|
||||||
@@ -1152,9 +1151,7 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
|
|||||||
// #endregion
|
// #endregion
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
//
|
// #region Summarize Directional Conditions ...
|
||||||
// Summarize Directional Conditions ...
|
|
||||||
|
|
||||||
//
|
//
|
||||||
isBullish =
|
isBullish =
|
||||||
isATRUp &&
|
isATRUp &&
|
||||||
@@ -1174,6 +1171,7 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
|
|||||||
isKIWaveBearish ||
|
isKIWaveBearish ||
|
||||||
isLowerTFBearish ||
|
isLowerTFBearish ||
|
||||||
isCandlestickBearish);
|
isCandlestickBearish);
|
||||||
|
// #endregion
|
||||||
|
|
||||||
//
|
//
|
||||||
// Validate Conditions ...
|
// Validate Conditions ...
|
||||||
@@ -1238,7 +1236,43 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
|
|||||||
zone.IsValid();
|
zone.IsValid();
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
|
//
|
||||||
|
// Refine Zone ...
|
||||||
poiDetector.RefineZone(zone);
|
poiDetector.RefineZone(zone);
|
||||||
|
|
||||||
|
//
|
||||||
|
// SL Refactoring ...
|
||||||
|
|
||||||
|
//
|
||||||
|
XOHCL toBar;
|
||||||
|
if (zone.ToBar(toBar))
|
||||||
|
{
|
||||||
|
//
|
||||||
|
int to = zone.ToIndex();
|
||||||
|
int from = zone.FromIndex();
|
||||||
|
int length = from - to;
|
||||||
|
double iValue =
|
||||||
|
isBullish
|
||||||
|
? toBar.FindLowest(length, MODE_LOW)
|
||||||
|
: isBearish
|
||||||
|
? toBar.FindHighest(length, MODE_HIGH)
|
||||||
|
: EMPTY_VALUE;
|
||||||
|
if (NotEmptyZero(iValue))
|
||||||
|
{
|
||||||
|
//
|
||||||
|
if (isBullish)
|
||||||
|
{
|
||||||
|
zone.lower = MathMin(zone.lower, iValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
if (isBearish)
|
||||||
|
{
|
||||||
|
zone.upper = MathMax(zone.upper, iValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
toBar.Clean();
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -2247,6 +2247,7 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
|
|||||||
iConfig.FullPattern();
|
iConfig.FullPattern();
|
||||||
|
|
||||||
//
|
//
|
||||||
|
// Looping Back ...
|
||||||
for (int i = barIndex; i < barIndex + loopback; i++)
|
for (int i = barIndex; i < barIndex + loopback; i++)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@@ -2338,6 +2339,7 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
// Cleanup Resource ...
|
||||||
iBar.Clean();
|
iBar.Clean();
|
||||||
iAnalysis.Clean();
|
iAnalysis.Clean();
|
||||||
XClean(iBullishZones);
|
XClean(iBullishZones);
|
||||||
@@ -2345,9 +2347,7 @@ class XCX121XKIPOIDetector : public XCMarketPatternDetector
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Next
|
// Cleanup Resources ...
|
||||||
|
|
||||||
//
|
|
||||||
iBar.Clean();
|
iBar.Clean();
|
||||||
iConfig.Clean();
|
iConfig.Clean();
|
||||||
iAnalysis.Clean();
|
iAnalysis.Clean();
|
||||||
|
|||||||
Reference in New Issue
Block a user