It seems like a variant of [optimal stopping][1]. First you have to decide when to make the first purchase. Then you have a new problem of when to make the next purchase. So it's a sequence of optimal stopping problems.


  [1]: https://en.wikipedia.org/wiki/Optimal_stopping