refactor classes constructor and deconstructors ...
This commit is contained in:
@@ -989,6 +989,8 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
|
||||
}
|
||||
|
||||
//
|
||||
XBoxZone swingLow;
|
||||
XBoxZone swingHigh;
|
||||
ENUM_X_DIRECTION patternsDir[];
|
||||
ENUM_X_BAR_PATTERN patterns[];
|
||||
poiDetector.FillStrategy1Patterns(
|
||||
@@ -997,34 +999,7 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
|
||||
);
|
||||
|
||||
//
|
||||
isBullish = poiDetector.HasRecentPatternRejected(
|
||||
zone,
|
||||
patterns,
|
||||
patternsDir,
|
||||
barIndex,
|
||||
3, // Loopback ..
|
||||
iBar.period,
|
||||
X_DIRECTION_BULLISH //
|
||||
);
|
||||
if (!isBullish)
|
||||
{
|
||||
//
|
||||
isBearish = poiDetector.HasRecentPatternRejected(
|
||||
zone,
|
||||
patterns,
|
||||
patternsDir,
|
||||
barIndex,
|
||||
3, // Loopback ..
|
||||
iBar.period,
|
||||
X_DIRECTION_BEARISH //
|
||||
);
|
||||
}
|
||||
|
||||
// #region Swings/OrderFlow ...
|
||||
//
|
||||
// Swings ...
|
||||
XBoxZone swingLow;
|
||||
XBoxZone swingHigh;
|
||||
// Reading Swings ...
|
||||
poiDetector.DetectRecentSwings(
|
||||
swingHigh,
|
||||
swingLow,
|
||||
@@ -1032,16 +1007,64 @@ class XCX121XKIStrategy1Signaller : public XCX121XKIBaseSignaller
|
||||
);
|
||||
|
||||
//
|
||||
// Order Flow ...
|
||||
// Reading Order Flow ...
|
||||
|
||||
//
|
||||
// Bullish Order Flow ...
|
||||
XBoxZone bullishOrderFlow[];
|
||||
int bullishOrderFlowRejectdIDX = -1;
|
||||
poiDetector.HasOrderFlow(bullishOrderFlow, barIndex, 4, X_DIRECTION_BULLISH, 15);
|
||||
|
||||
//
|
||||
// Bearish Order Flow ...
|
||||
XBoxZone bearishOrderFlow[];
|
||||
int bearishOrderFlowRejectdIDX = -1;
|
||||
poiDetector.HasOrderFlow(bearishOrderFlow, barIndex, 4, X_DIRECTION_BEARISH, 15);
|
||||
// #endregion
|
||||
|
||||
//
|
||||
// Base Conditions ...
|
||||
|
||||
//
|
||||
isBullish =
|
||||
IsTFBullishPattern(barIndex, PERIOD_M1) &&
|
||||
IsTFBullishPattern(barIndex, PERIOD_M5) &&
|
||||
IsTFBullishPattern(barIndex, iBar.period) &&
|
||||
HasRejected(
|
||||
bullishOrderFlowRejectdIDX,
|
||||
iBar,
|
||||
bullishOrderFlow //
|
||||
) &&
|
||||
poiDetector.HasRecentPatternRejected(
|
||||
zone,
|
||||
patterns,
|
||||
patternsDir,
|
||||
barIndex,
|
||||
3, // Loopback ..
|
||||
iBar.period,
|
||||
X_DIRECTION_BULLISH //
|
||||
);
|
||||
if (!isBullish)
|
||||
{
|
||||
//
|
||||
isBearish =
|
||||
IsTFBearishPattern(barIndex, PERIOD_M1) &&
|
||||
IsTFBearishPattern(barIndex, PERIOD_M5) &&
|
||||
IsTFBearishPattern(barIndex, iBar.period) &&
|
||||
HasRejected(
|
||||
bearishOrderFlowRejectdIDX,
|
||||
iBar,
|
||||
bearishOrderFlow //
|
||||
) &&
|
||||
poiDetector.HasRecentPatternRejected(
|
||||
zone,
|
||||
patterns,
|
||||
patternsDir,
|
||||
barIndex,
|
||||
3, // Loopback ..
|
||||
iBar.period,
|
||||
X_DIRECTION_BEARISH //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Validate Conditions ...
|
||||
|
||||
Reference in New Issue
Block a user