This commit is contained in:
2025-10-08 00:44:29 +03:30
parent 69e155e050
commit 96972931a7
3 changed files with 22 additions and 30 deletions
+11 -19
View File
@@ -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;