last ...
This commit is contained in:
@@ -860,17 +860,40 @@ bool DetectSignalZone(
|
||||
isMomentum &&
|
||||
IsBearish(iBDir);
|
||||
|
||||
//
|
||||
bool isTriggerBar = barAnalyser
|
||||
.IsValidForTrigger(
|
||||
conditions.bars[0],
|
||||
iBDir,
|
||||
true, // Allow Cond 1 ...
|
||||
true, // Allow Cond 2 ...
|
||||
true, // Allow Cond 3 ...
|
||||
true, // Allow Cond 4 ...
|
||||
true, // Allow Cond 5 ...
|
||||
true, // Allow Cond 6 ...
|
||||
true // Allow Cond 7 ...
|
||||
//
|
||||
);
|
||||
bool isBullishTriggerBar =
|
||||
isTriggerBar &&
|
||||
IsBullish(iBDir);
|
||||
bool isBearishTriggerBar =
|
||||
isTriggerBar &&
|
||||
IsBearish(iBDir);
|
||||
|
||||
//
|
||||
bool isBarBullishPressured =
|
||||
isBullishRejected ||
|
||||
isBullishEngulfed ||
|
||||
isBullishMomentum;
|
||||
isBullishMomentum ||
|
||||
isBullishTriggerBar;
|
||||
|
||||
//
|
||||
bool isBarBearishPressured =
|
||||
isBearishRejected ||
|
||||
isBearishEngulfed ||
|
||||
isBearishMomentum;
|
||||
isBearishMomentum ||
|
||||
isBearishTriggerBar;
|
||||
|
||||
//
|
||||
// Implement Signalling Conditions ...
|
||||
@@ -881,9 +904,12 @@ bool DetectSignalZone(
|
||||
// --------------
|
||||
// Descriptions:
|
||||
// - [] Detect Parabolic Sar Direction Change ...
|
||||
// - [] Check Some others Conditions based on Changed Direction ...
|
||||
// - [] Generate Direction Change Zone ...
|
||||
// - [] Use it to Fill Signal Zone ...
|
||||
// - [] KI is Directional ...
|
||||
// - [] Bar Has Pressured ...
|
||||
// - [] ATR is Directional Up/Down ...
|
||||
// - [] TREND is Directional ...
|
||||
// - [] TREND is Directional Change ...
|
||||
// - [] TREND is Directional Up/Down ...
|
||||
// ------------------------------------
|
||||
|
||||
//
|
||||
@@ -912,8 +938,9 @@ bool DetectSignalZone(
|
||||
conditions.isATRUp &&
|
||||
//
|
||||
// TREND ...
|
||||
conditions.isTrendUp // &&
|
||||
// conditions.isTrendBullish
|
||||
isTrendBullishStart &&
|
||||
conditions.isTrendUp &&
|
||||
conditions.isTrendBullish
|
||||
//
|
||||
;
|
||||
|
||||
@@ -938,8 +965,9 @@ bool DetectSignalZone(
|
||||
conditions.isATRDown &&
|
||||
//
|
||||
// TREND ...
|
||||
conditions.isTrendDown // &&
|
||||
// conditions.isTrendBearish
|
||||
isTrendBearishStart &&
|
||||
conditions.isTrendDown &&
|
||||
conditions.isTrendBearish
|
||||
//
|
||||
;
|
||||
}
|
||||
@@ -990,29 +1018,59 @@ bool DetectSignalZone(
|
||||
// - [] Generate Direction Change Zone ...
|
||||
// - [] Use it to Fill Signal Zone ...
|
||||
// ------------------------------------
|
||||
// Descriptions:
|
||||
// - []
|
||||
// ------------------------------------
|
||||
|
||||
//
|
||||
bool isCond2Bullish = false;
|
||||
bool isCond2Bearish = false;
|
||||
if (allowSignallingConditions2)
|
||||
{
|
||||
//
|
||||
isCond2Bullish =
|
||||
//
|
||||
// Start ...
|
||||
(isTrendBullishStart &&
|
||||
!isTrendBearishStart)
|
||||
//
|
||||
;
|
||||
// //
|
||||
// isCond2Bullish =
|
||||
// //
|
||||
// // Start ...
|
||||
// (isTrendBullishStart &&
|
||||
// !isTrendBearishStart)
|
||||
// //
|
||||
// ;
|
||||
|
||||
// //
|
||||
// isCond2Bearish =
|
||||
// //
|
||||
// // Start ...
|
||||
// (isTrendBearishStart &&
|
||||
// !isTrendBullishStart)
|
||||
// //
|
||||
// ;
|
||||
|
||||
//
|
||||
// Temp Cndition 2 ...
|
||||
|
||||
//
|
||||
// Bullish ...
|
||||
isCond2Bullish =
|
||||
isScoreBullish &&
|
||||
isBullishTriggerBar &&
|
||||
conditions.isKIBullish &&
|
||||
conditions.isSarSwitchedToBullish;
|
||||
// isScoreBullish &&
|
||||
// isBarBullishPressured &&
|
||||
// conditions.isKISwitchedToBullish &&
|
||||
// conditions.isSarSwitchedToBullish;
|
||||
|
||||
//
|
||||
// Bearish ...
|
||||
isCond2Bearish =
|
||||
//
|
||||
// Start ...
|
||||
(isTrendBearishStart &&
|
||||
!isTrendBullishStart)
|
||||
//
|
||||
;
|
||||
isScoreBearish &&
|
||||
isBearishTriggerBar &&
|
||||
conditions.isKIBearish &&
|
||||
conditions.isSarSwitchedToBearish;
|
||||
// isScoreBearish &&
|
||||
// isBarBearishPressured &&
|
||||
// conditions.isKISwitchedToBearish &&
|
||||
// conditions.isSarSwitchedToBearish;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -1021,6 +1079,10 @@ bool DetectSignalZone(
|
||||
isCond2Bearish;
|
||||
if (isCond2)
|
||||
{
|
||||
//
|
||||
// Retireve Conditions 2 ...
|
||||
Print("Condition 2 Happens ...");
|
||||
|
||||
//
|
||||
// Generate Direction Shift Zone ...
|
||||
has = GenerateTrendDirectionShiftBox(
|
||||
@@ -1443,8 +1505,6 @@ bool DetectSignalZone(
|
||||
}
|
||||
|
||||
//
|
||||
Print("Conditions ...");
|
||||
// signalZone.Clean();
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user