My idea is quite simple, the algorithm buys whenever price falls (in small steps), and sells if all of those individual positions make a set % (not sure how to do the math to optimize that, must be above trading fees obv). There is no duplicate positions, and the size is big enough to cover a veery big pricerange.
Can this work? As long as there is volatility there would be gains. Only a drop to zero is a rip (normal holding gets rekt by that obv. Aswell)