This generates a Hexagram from the I Ching every candle close.
It looks back 5 periods to get the Yin/Yang values for the current close.

Might be useful for casting a daily hexagram.
No idea how you can make money with it.

Enjoy!
Candlestick Analysis

Disclaimer