Gamestudio Links
Zorro Links
Newest Posts
Links dont work
by HamzaAhmed. 05/19/22 08:07
Unable to make new structures
by vinitrinh. 05/19/22 06:04
C++ scripts
by AndrewAMD. 05/18/22 16:43
Help with sorting data array
by degenerate_762. 05/18/22 12:24
How to use dataFromCSV
by AndrewAMD. 05/16/22 16:43
MT4, handling requote issues
by Grant. 05/15/22 00:04
Lapsa's very own thread
by Lapsa. 05/14/22 22:59
AUM Magazine
Latest Screens
DEAD TASTE
Tactics of World War I
Hecknex World
Scheherazade's Journey
Who's Online Now
6 registered members (Quad, Grant, degenerate_762, 3run, HamzaAhmed, vinitrinh), 287 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Abdou, quandr, SGB1962, QuadraQuant, IcairDap
18781 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Bug in NumUp/Dn #485084
01/16/22 15:08
01/16/22 15:08
Joined: Jul 2017
Posts: 749
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 749
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;
}

Re: Bug in NumUp/Dn [Re: Zheka] #485088
01/17/22 12:23
01/17/22 12:23
Joined: Jul 2000
Posts: 27,777
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,777
Frankfurt
A beautiful bug. Thanks for reporting, this will be fixed in the next update.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1