I'm trying to understand a confusing situation despite I have some experience and this should be a really point to understand.
I have a code, pretty simple actually, that has a loop to calculate a simple average in the form:
for ( int d = 1; d <= length; d++ )
{
Do sum
}
Previous to this calculation, I have the following requirement:
if ( CurrentBar< BarsRequired )
{
return;
}
Ok, here's the deal:
When I do a backtest, I've always set a BarsRequired >= Length, in order to allow calculations, BUT the weird thing is that results could vary greatly depending on the number of BarsRequired, and it has not sense at all, cause if I submit the minimum necessary, all calculations and result should be the same; so, why is this happening ?
I've trying to change "Maximum Bars Look Back" but the results are the same; they only will change upon a change in the minimum BarsRequired

Comment