Is there any algorithm to calculate highest possible return on stock market?
You can statistically estimate the maximal loss/gain over a period of time T by the highest loss/gain during any of the same length time intervals in during the life of the stock. Using logarithmic prices to be more accurate.
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Is there any algorithm to calculate highest possible return on stock market?

### Response:
You can statistically estimate the maximal loss/gain over a period of time T by the highest loss/gain during any of the same length time intervals in during the life of the stock. Using logarithmic prices to be more accurate.