I am designing a excel spreadsheet to generate daily signals related to the prices of wheat.
Rows represent the days and columns represent the commodity price recorded every 10 minutes.
For a Range D10:W10, for a particular day, I need to have 2 formulas written in AA10 and AB10 which would calculate:
1) After the commodity price hit the most recent Low, calculate the maximum number of points the price of the commodity rises from that last Low, without dropping any point until it starts to drop again (the "price run after the Low"); and
2) From there, calculate the maximum number of points the commodity price drops before starting to rise again (the "price rejection from the recovery").
Lets say we have the following daily data:
D E F G H I J K L M N O P
25 27 28 26 23 24 23 25 25 27 29 26 27
The first formula should return 6 (from the last Low of 23 in J10 the price rises without dropping to 29); and the second formula should return 3 ( after hitting 29 it then drops to 26 before climbing again to 27).
I can identify the last Low through the array formula
=MAX(IF(D10:W10=MIN(D10:W10),COLUMN(D10:W10),0)), but from there I could not come up with a formula which would measure the subsequent "price run" and "rejection".
Thanks for any help
Mark
Rows represent the days and columns represent the commodity price recorded every 10 minutes.
For a Range D10:W10, for a particular day, I need to have 2 formulas written in AA10 and AB10 which would calculate:
1) After the commodity price hit the most recent Low, calculate the maximum number of points the price of the commodity rises from that last Low, without dropping any point until it starts to drop again (the "price run after the Low"); and
2) From there, calculate the maximum number of points the commodity price drops before starting to rise again (the "price rejection from the recovery").
Lets say we have the following daily data:
D E F G H I J K L M N O P
25 27 28 26 23 24 23 25 25 27 29 26 27
The first formula should return 6 (from the last Low of 23 in J10 the price rises without dropping to 29); and the second formula should return 3 ( after hitting 29 it then drops to 26 before climbing again to 27).
I can identify the last Low through the array formula
=MAX(IF(D10:W10=MIN(D10:W10),COLUMN(D10:W10),0)), but from there I could not come up with a formula which would measure the subsequent "price run" and "rejection".
Thanks for any help
Mark