last ...
This commit is contained in:
@@ -3995,7 +3995,6 @@ bool ToBox(
|
||||
iLower = bar.FindLowest(idx, mLength, valePriceType);
|
||||
iUpper = bar.FindHighest(idx, mLength, peakPriceType);
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -4019,7 +4018,7 @@ bool ToBox(
|
||||
}
|
||||
|
||||
//
|
||||
iUpper = valePrice;
|
||||
iUpper = peakPrice;
|
||||
iLower = valePrice;
|
||||
}
|
||||
break;
|
||||
@@ -4044,14 +4043,8 @@ bool ToBox(
|
||||
}
|
||||
|
||||
//
|
||||
iUpper =
|
||||
isBullish
|
||||
? peakPrice
|
||||
: valePrice;
|
||||
iLower =
|
||||
isBullish
|
||||
? peakPrice
|
||||
: valePrice;
|
||||
iUpper = peakPrice;
|
||||
iLower = valePrice;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -4075,14 +4068,10 @@ bool ToBox(
|
||||
}
|
||||
|
||||
//
|
||||
iUpper =
|
||||
isBullish
|
||||
? peakPrice
|
||||
: valePrice;
|
||||
iLower =
|
||||
isBullish
|
||||
? peakPrice
|
||||
: valePrice;
|
||||
int idx = -1;
|
||||
int mLength = 3;
|
||||
iUpper = bar.FindHighest(idx, mLength, peakPriceType);
|
||||
iLower = bar.FindLowest(idx, mLength, valePriceType);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -4106,14 +4095,13 @@ bool ToBox(
|
||||
}
|
||||
|
||||
//
|
||||
iUpper =
|
||||
isBullish
|
||||
? peakPrice
|
||||
: valePrice;
|
||||
iLower =
|
||||
isBullish
|
||||
? peakPrice
|
||||
: valePrice;
|
||||
has = bar.GetPreviousBar(tmpBar);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
iUpper = MathMax(peakPrice, tmpBar.GetPrice(peakPriceType));
|
||||
iLower = MathMin(valePrice, tmpBar.GetPrice(valePriceType));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user