Yes for (4). In the case (1) I would not use more than 20 inputs. I had the idea to pass the prices from candles with increasing time periods, f.i. from 1, 2, 3, 5, 10, 15, 30, 60, and 120 minutes ago. But that was just an idea, I have not tested it yet.