How to test and find the highest price reached after a buy triggered?