| dashover 229 posts
 msg #161941
 - Ignore dashover
 | 8/15/2025 1:41:54 PM 
 How would you code
 
 both raw number and %
 
 Thanks!
 
 
 | 
| dwiggains 448 posts
 msg #161942
 - Ignore dwiggains
 | 8/16/2025 9:37:04 AM 
 
 
 
 maybe get you started
 see ya
 david
 
 
 | 
| nibor100 1,099 posts
 msg #161943
 - Ignore nibor100
 | 8/17/2025 11:52:56 AM 
 @dashover,
 
 Since it is a 10 day period, simply divide the Up column number by 10 to get the % of days that were Up out of the last 10.  i.e. Up =3 then 30% etc.
 
 Ed S.
 
 
 | 
| xarlor 619 posts
 msg #161944
 - Ignore xarlor
 | 8/18/2025 12:11:16 PM 
 dwiggains is defining "positive" as today's close higher than yesterday's close.
 
 If instead you are defining positive as the traditional today's close is higher than today's open, see below.
 
 Note: I cheated and multiplied by 10 to get the percentage as nibor intimated.  The percentage only works for a 10-day look-back and will break if using a different length.  It can be written to scale with other lengths, but would require a few more set statements.
 
 
 
 
 
 |