Yes if you could update a little this good indictator that will be good.
I try to update by myself, but it's à little compicated.
If you can add other pattern (eg: 5-0, 121, shark, ...)
If it s possible, if you could put Ratio as parameter (maybe an array with the ratio list for each pattern)
I think the time is not respected actually. Maybe as you have already do with 'Correction' variable, could you put an other 'Correction' variable for pattern respect the time with +/- x%
Thk a lot because it's a long work