last ...
This commit is contained in:
@@ -3930,11 +3930,11 @@ bool ToBox(
|
||||
iUpper =
|
||||
isBullish
|
||||
? valePrice
|
||||
: peakPrice;
|
||||
: tmpBar.GetPrice(valePriceType);
|
||||
iLower =
|
||||
isBullish
|
||||
? tmpBar.GetPrice(peakPriceType)
|
||||
: tmpBar.GetPrice(valePriceType);
|
||||
: peakPrice;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -3986,18 +3986,16 @@ bool ToBox(
|
||||
);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
iFrom = tmpBar.time;
|
||||
|
||||
//
|
||||
int idx = -1;
|
||||
int mLength = tmpBar.Index() - bar.Index();
|
||||
iLower = bar.FindLowest(idx, mLength, valePriceType);
|
||||
iUpper = bar.FindHighest(idx, mLength, peakPriceType);
|
||||
}
|
||||
|
||||
//
|
||||
iUpper =
|
||||
isBullish
|
||||
? peakPrice
|
||||
: valePrice;
|
||||
iLower =
|
||||
isBullish
|
||||
? peakPrice
|
||||
: valePrice;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -4021,14 +4019,8 @@ bool ToBox(
|
||||
}
|
||||
|
||||
//
|
||||
iUpper =
|
||||
isBullish
|
||||
? peakPrice
|
||||
: valePrice;
|
||||
iLower =
|
||||
isBullish
|
||||
? peakPrice
|
||||
: valePrice;
|
||||
iUpper = valePrice;
|
||||
iLower = valePrice;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user