last ...
This commit is contained in:
@@ -696,7 +696,7 @@ XPOIStyle mBearishLiquidityStyle;
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Range Breakes ...
|
// Range Breakes ...
|
||||||
bool mDrawRangeBreakes = true;
|
bool mDrawRangeBreakes = false;
|
||||||
bool mDetectRangeBreakes = true;
|
bool mDetectRangeBreakes = true;
|
||||||
XBoxZone mBullishRangeBreakes[];
|
XBoxZone mBullishRangeBreakes[];
|
||||||
XBoxZone mBearishRangeBreakes[];
|
XBoxZone mBearishRangeBreakes[];
|
||||||
@@ -5201,9 +5201,12 @@ void DoProcess(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Trigger Bar's Conditions ...
|
||||||
|
|
||||||
//
|
//
|
||||||
// Bullish ...
|
// Bullish ...
|
||||||
mIsBullish =
|
bool isTBBullish =
|
||||||
//
|
//
|
||||||
iBar.IsBullish() &&
|
iBar.IsBullish() &&
|
||||||
isTriggerBarBullish &&
|
isTriggerBarBullish &&
|
||||||
@@ -5213,7 +5216,7 @@ void DoProcess(
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Bearish ...
|
// Bearish ...
|
||||||
mIsBearish =
|
bool isTBBearish =
|
||||||
//
|
//
|
||||||
iBar.IsBearish() &&
|
iBar.IsBearish() &&
|
||||||
isTriggerBarBearish &&
|
isTriggerBarBearish &&
|
||||||
@@ -5221,6 +5224,60 @@ void DoProcess(
|
|||||||
//
|
//
|
||||||
;
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
// KI Breakes Validation Conditions ...
|
||||||
|
|
||||||
|
//
|
||||||
|
// Bullish ...
|
||||||
|
bool isKIBullishBreakes =
|
||||||
|
//
|
||||||
|
isKIBullish &&
|
||||||
|
iBar.IsBullish() &&
|
||||||
|
iPBar.IsBreaked(
|
||||||
|
kiBuffer[barIndex + 1],
|
||||||
|
X_DIRECTION_BULLISH,
|
||||||
|
X_FIBO_LEVEL_500, // Fibo Level ...
|
||||||
|
X_BOUNDARY_PRICE_HIGH_LOW // Boundary Type ...
|
||||||
|
)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Bearish ...
|
||||||
|
bool isKIBearishBreakes =
|
||||||
|
//
|
||||||
|
isKIBearish &&
|
||||||
|
iBar.IsBearish() &&
|
||||||
|
iPBar.IsBreaked(
|
||||||
|
kiBuffer[barIndex + 1],
|
||||||
|
X_DIRECTION_BEARISH,
|
||||||
|
X_FIBO_LEVEL_500, // Fibo Level ...
|
||||||
|
X_BOUNDARY_PRICE_HIGH_LOW // Boundary Type ...
|
||||||
|
)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Summarization Conditions ...
|
||||||
|
|
||||||
|
//
|
||||||
|
// Bullish ...
|
||||||
|
mIsBullish =
|
||||||
|
//
|
||||||
|
isTBBullish &&
|
||||||
|
isKIBullishBreakes
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Bearish ...
|
||||||
|
mIsBearish =
|
||||||
|
//
|
||||||
|
isTBBearish &&
|
||||||
|
isKIBearishBreakes
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Signal Summarize ...
|
// Signal Summarize ...
|
||||||
mHasSignal =
|
mHasSignal =
|
||||||
|
|||||||
@@ -1076,16 +1076,16 @@ struct XOHCL
|
|||||||
//
|
//
|
||||||
bool isBullish =
|
bool isBullish =
|
||||||
IsBullish() &&
|
IsBullish() &&
|
||||||
IsBullish(forDir) &&
|
low < price &&
|
||||||
close > price &&
|
high > price &&
|
||||||
open < price;
|
IsBullish(forDir);
|
||||||
|
|
||||||
//
|
//
|
||||||
bool isBearish =
|
bool isBearish =
|
||||||
IsBearish() &&
|
IsBearish() &&
|
||||||
IsBearish(forDir) &&
|
low < price &&
|
||||||
close < price &&
|
high > price &&
|
||||||
open > price;
|
IsBearish(forDir);
|
||||||
|
|
||||||
//
|
//
|
||||||
result = isBullish ||
|
result = isBullish ||
|
||||||
@@ -1102,7 +1102,7 @@ struct XOHCL
|
|||||||
//
|
//
|
||||||
// Apply Edge Range ...
|
// Apply Edge Range ...
|
||||||
double iReqRange =
|
double iReqRange =
|
||||||
(range / 100) * GetFiboLevelValue(fibLevel);
|
(range / 100) * (GetFiboLevelValue(fibLevel) * 100);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Calculate Boundary Price ...
|
// Calculate Boundary Price ...
|
||||||
@@ -1117,9 +1117,16 @@ struct XOHCL
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Detect Breaked Value ...
|
// Detect Breaked Value ...
|
||||||
// result =
|
|
||||||
// isBullish
|
//
|
||||||
// ?
|
double breakedPrice =
|
||||||
|
isBullish
|
||||||
|
? (high - price)
|
||||||
|
: (price - low);
|
||||||
|
|
||||||
|
//
|
||||||
|
result =
|
||||||
|
breakedPrice >= iReqRange;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user