Good idea, but you are basing your numbers on a timeframe where there has been barely any volatility. Look at how tight of a range there has been for the high and low in the past week or so, there hasn't been much movement. You should test your algorithm when things start rapidly moving.
Well BTC is pretty constant lately if you ignore a few crashes/bubbles