Hi there,
I have a series of numbers, some positive and some negative.
-400
400
500
600
-300
-500
400
500
600
0
400
-600
700
-800
-300
500
600
0
300
A series of consecutive positive numbers is an uptrend, and a series of consecutive negative numbers is a down trend. A "0" continues the established trend. The trend is cumulative.
I need to compare the current trend to the previous trend.
If the current trend is greater than the previous trend the result is a "+", and if it is less, then it is a "-". The correct result would be...
-400
400
600 +
500 +
-500
-300
400
600 +
500 +
0 +
400 +
-600
700 +
-800 -
-300 -
500
600
0
300 +
The trend lengths will not be consistent, so I am having trouble comparing one trend against another to determine the "+" or "-" result I am after. Is there a way to compare trends of numbers?
I have a series of numbers, some positive and some negative.
-400
400
500
600
-300
-500
400
500
600
0
400
-600
700
-800
-300
500
600
0
300
A series of consecutive positive numbers is an uptrend, and a series of consecutive negative numbers is a down trend. A "0" continues the established trend. The trend is cumulative.
I need to compare the current trend to the previous trend.
If the current trend is greater than the previous trend the result is a "+", and if it is less, then it is a "-". The correct result would be...
-400
400
600 +
500 +
-500
-300
400
600 +
500 +
0 +
400 +
-600
700 +
-800 -
-300 -
500
600
0
300 +
The trend lengths will not be consistent, so I am having trouble comparing one trend against another to determine the "+" or "-" result I am after. Is there a way to compare trends of numbers?