yeah, I already know that, I use it a lot in my discretionary (paper) trading. Just looking for the easiest programmable way to express with code, with a smallest possible delay.
if you have a platform that can chart range bars, it solved all my problems. you will never find a solution until you eliminate time from the math in my experiences.