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!
Every period close generates a bigram based on the current close and the most recent past candle. We have Old Yang, Old Yin, Young Yang and Young Yin here. Not sure what utility it may have, but it may provide interesting philosophical outlooks based on recent price action.