andrewmurray86
New Member
- Joined
- Jun 18, 2020
- Messages
- 29
- Office Version
- 2016
- Platform
- Windows
Hello Everyone I'm hoping you might help me with a formula to identify peaks and troughs
I've got a formula that finds that maximum drawdown from the initial balance, But I need to find the value to get the maximum drawdown overall (At this time it is the maximum from the initial balance.
And I need to find the draw down between a new high then the low before a new high.
The graph should help
This graph is generated from the data I will use to get the formula. The information will sit off the side for easy reference, I have also included the data with peak and trough labeled on it, but I'm just after the values as described above, not every peak and trough, you can see there are many but essentially just the ones labelled in the graph
Thanks so much everyone!
I've got a formula that finds that maximum drawdown from the initial balance, But I need to find the value to get the maximum drawdown overall (At this time it is the maximum from the initial balance.
And I need to find the draw down between a new high then the low before a new high.
The graph should help
This graph is generated from the data I will use to get the formula. The information will sit off the side for easy reference, I have also included the data with peak and trough labeled on it, but I'm just after the values as described above, not every peak and trough, you can see there are many but essentially just the ones labelled in the graph
Thanks so much everyone!
Cell Formulas | ||
---|---|---|
Range | Formula | |
S2:S92 | S2 | =IF(AND((R2>R1),(R2>R3)),"peak","") |
R2 | R2 | =X1+N2 |
R3:R93 | R3 | =R2+N3 |
T2:T93 | T2 | =IF(AND((R2<R1),(R2<R3)),"trough","") |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A94:T200,O2:S92,A93:S93 | Cell | contains a blank value | text | NO |
A94:T200,O2:S92,A93:S93 | Cell | contains a blank value | text | NO |