last ...
This commit is contained in:
@@ -926,7 +926,13 @@ bool DetectPriceInsideBox(
|
||||
//
|
||||
if (hasPriceInsideOB)
|
||||
{
|
||||
//
|
||||
orderBlock = priceInsideOB;
|
||||
boxDir = priceInsideOB.IsBullish()
|
||||
? X_DIRECTION_BULLISH
|
||||
: priceInsideOB.IsBearish()
|
||||
? X_DIRECTION_BEARISH
|
||||
: X_DIRECTION_NONE;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -972,6 +978,7 @@ bool DetectPriceInsideBox(
|
||||
{
|
||||
//
|
||||
// Use Price Inside OB as Box ...
|
||||
box.dir = boxDir;
|
||||
box.to = priceInsideOB.To();
|
||||
box.from = priceInsideOB.From();
|
||||
box.upper = priceInsideOB.Upper();
|
||||
@@ -994,7 +1001,7 @@ bool DetectPriceInsideBox(
|
||||
{
|
||||
//
|
||||
double price = xConditions.valesBuffer[1];
|
||||
ENUM_X_DIRECTION dir = X_DIRECTION_BULLISH;
|
||||
dir = X_DIRECTION_BULLISH;
|
||||
|
||||
//
|
||||
// Bullish FVG ...
|
||||
@@ -1144,7 +1151,7 @@ bool DetectPriceInsideBox(
|
||||
{
|
||||
//
|
||||
double price = xConditions.peaksBuffer[1];
|
||||
ENUM_X_DIRECTION dir = X_DIRECTION_BEARISH;
|
||||
dir = X_DIRECTION_BEARISH;
|
||||
|
||||
//
|
||||
// Bearish FVG ...
|
||||
@@ -1303,6 +1310,13 @@ bool DetectPriceInsideBox(
|
||||
//
|
||||
XBoxZone iBox = boxes[i];
|
||||
|
||||
//
|
||||
// Direction ...
|
||||
if (!HasDirection(box.dir) || box.dir != iBox.dir)
|
||||
{
|
||||
box.dir = iBox.dir;
|
||||
}
|
||||
|
||||
//
|
||||
// Upper ...
|
||||
if (box.upper == 0 || box.upper < iBox.upper)
|
||||
@@ -1336,6 +1350,7 @@ bool DetectPriceInsideBox(
|
||||
{
|
||||
//
|
||||
// Use Price Inside OB as Box ...
|
||||
box.dir = boxDir;
|
||||
box.to = priceInsideOB.To();
|
||||
box.from = priceInsideOB.From();
|
||||
box.upper = priceInsideOB.Upper();
|
||||
|
||||
Reference in New Issue
Block a user