OPEN-SOURCE SCRIPT

Trigrams based on Candle Pattern

Updated
This script matches a Trigram for the current candle from its pattern Bullish/Bearish: Marubozu, Hammer, Inverted Hammer, Spinning Top.

The source for Trigram to candlestick pattern can be found online. I'm missing the reputation to add the link here.

Heaven = Bearish Marubozu
Earth = Bullish Marubozu
Thunder = Bearish Spinning Top
Water = Bullish Inverted Hammer
Mountain = Bullish Hammer
Wind = Bullish Spinning Top
Flame = Bearish Hammer
Lake = Bearish Inverted Hammer

The idea is simple. It takes the current candles pattern to match the Trigram.


Inspired by the Trigram Script from ByzantineSC
Anyways, not sure what use it is yet, but if there is anyone else out there interested in I Ching, Yin/Yang theory and trading, this is for you.
Release Notes
- Added source for the pattern to the code.
Release Notes
Update to V5.
Candlestick Analysisichingtrigram

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer