News for hackers. Stuff that matters.
Re:Offline Algorithms in Low-Frequency Trading by hntrader on Saturday January 30, 2021 @07:57PM (#25974640)
You can do it in a single pass fairly easily. Loop over the rows of data. Store the current high to low, as well as the largest high to low since inception. If the current exceeds the largest since inception, simply replace it. Should be about 30 lines of code.

There are no comments on this comment yet.