How to find the local maximum
I write a VBA CODE to find local maximum in certain scenario Plot of data with “negative effect” and it works perfectly. However in a bit changed scenario it gave me the maximum value,(not the one in circle )Plot of data with no “negative effect” and i can’t figure out how to change the CODE to gave me the value i need(the one in circle)?