Topic: Questions About ambiguous Codes inside indicators '' Why & What
Sometimes i see some small parts inside codes and donot know why they are here and what they are doing i will post my Questions here and i hope answers will help
1st Question: In Balance of Power Indicator
// Calculation
int iFirstBar = iPeriod + 2;
var adBop = new double[Bars];
for (int iBar = 1; iBar < Bars; iBar++)
{
if (High[iBar] - Low[iBar] > Point)
adBop[iBar] = (Close[iBar] - Open[iBar])/(High[iBar] - Low[iBar]);
else
adBop[iBar] = 0;
}
adBop = MovingAverage(iPeriod, 0, maMethod, adBop);
Why if (High[iBar] - Low[iBar] > Point) exist and what is the function of it ?