Ok, will try my best at explaining.
Basic info, price moves in waves which are random in interval and height & depth.
View attachment 297404
I'm attempting to measure these waves on a spreadsheet on multiple stocks, so on a spreadsheet you'll gets peaks and troughs, once identified dotted all over the spreadsheet, they are all waving and cresting at different intervals.
Old data is on LHS of spreadsheet, new data travelling toward the RHS.
So far this morning, in the wee small hours, I have identified the Peaks and values, I've got thus far.
View attachment 297405
This is how my trial spreadsheet last panel (just working on Peaks atm) is looking so far until last close.
As you will note, it's a large spreadsheet for 16 stocks I'm dummy trialling, I've arrived at column ~148 rows of data to achieve so fars results.
I've checked the data and I'm getting accurate results on Peak dates and Peak heights.
I'll just concentrate on Peaks atm, to attempt to simplify the process, the Troughs will be a straight forward inverse copy of formulas, so I'll leave that aside in the meantime.
The next hurdle to overcome is create a table whereby Peaks are tabulated in a tidy little box showing just the stock codes and Peak values so that I can ascertain whether Peaks are rising or falling.
Row #1 is Transaction dates
Row #2 is column numbers, not part of the formulas.
The "*" are obviously formulas where there is no Peak identified.