What some parts mean : http://i.imgur.com/nZu9rbe.png
Hope this helps someone, I use it myself as signals for confirmations. Tips are cool, but saying thanks is plenty as well :)
So for green candles, your fraction up will be the full price range, and your fraction down, the wicks.
The complete price_path will be then 2*wicks + body, and for green candles:
fractionup = (high - low) / price_path
fractiondown = ((open - low) + (high - close)) / price_path
For bear candles, just swap the values.