This commit is contained in:
2025-10-08 18:47:29 +03:30
parent 96972931a7
commit d963ce8acf
10 changed files with 6108 additions and 3372 deletions
+14 -26
View File
@@ -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;