Bug in NumUp/Dn

Posted By: Zheka

Bug in NumUp/Dn - 01/16/22 15:08

The code for NumUp/Dn assumes a data series in reverse order:
Code
int NumUp(var* Data,int Period,var vThreshold)
{
	checkLookBack(Period);
	int i,j=0;
	for(i=0; i<Period-1; i++)
		if(Data[i] < Data[i+1]-vThreshold) j++;
	return j;
}
Posted By: jcl

Re: Bug in NumUp/Dn - 01/17/22 12:23

A beautiful bug. Thanks for reporting, this will be fixed in the next update.
© 2024 lite-C Forums