Mmmmm, I'm thinking now you are having the problem communicating, not me.That is what I have been getting at from my first post in this topic, yes.
What mathematically are you trying to do?

Let me ask again, you want to know the formulas I'm using?
Mmmmm, I'm thinking now you are having the problem communicating, not me.That is what I have been getting at from my first post in this topic, yes.
What mathematically are you trying to do?

I'll mull over that suggestion, thanks.First go vertically instead of horizontal. Use another column each for just trough and just peak. Calculate how you like. Finding the first and second value becomes easy.
No. I suppose it is proprietary but I've got my own.Mmmmm, I'm thinking now you are having the problem communicating, not me.
Let me ask again, you want to know the formulas I'm using?
No it's not proprietary, no big deal, I thought I was answering your queries, maybe someone else on ET could enlighten me what more info Suntrader requires. If formulas, please stop mincing words and just say so.No. I suppose it is proprietary but I've got my own.
I was just trying to help with excel formula writing if only ...
Have a good one, shutting down for the night.

Same here for the day, gotta have breakfast and also got chores to do next few hours.shutting down for the night.
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.