TradingView
Has-no-Name
18 Th06 2021 17:19

Trigram (I Ching) 

GBP/USDOANDA

Mô tả

This script generates a Trigram for the current candle at its close.

The idea is simple. It takes the current candle close and the two previous to generate the lines of the Trigram.
In traditional I Ching practices, these are built bottom up. So in this case, the Candle in 2 bars back is the base, 1 bar back is the central line and the current close is the top.
Up candles are yang lines, down candles yin.

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.
Bình luận
AtomOfScent
Cool concept.
Has-no-Name
@AtomOfScent, Thank you. I have plans to do bigrams, geomantic tetragrams and maybe someday the full 64 hexagrams.
AtomOfScent
@ByzantineSC, it could be fun to have an I Ching indicator that creates a random hexagram for the start of each day. week, month etc. with a description.
Has-no-Name
@AtomOfScent, Very cool! If I figure out how to do random stuff, I'll try it out!
AtomOfScent
@ByzantineSC, hmm.. I just checked and it looks like there's a built in random function. :)
random(min, max, seed)
Viva4Feva
The script thumbnail shows color characters above bar.. however on script page and adding to my chart .. the scripts does not output color characters..
Has-no-Name
@Viva4Feva, Very odd. I'm pretty new to Pine Script so I'll try to figure it out for you, but I'm not sure I see the reason for the error just yet. Thank You!
Viva4Feva
@ByzantineSC, well it's working great on my laptop but the same chart on my Samsung tablets on multiple browsers it fails to render the colors
LBDZJZLQX_QiMenCrypto
There's github user name kentang2017 have the code in Python, not sure if you can translate in pine. Personal I've uses Liuyao and QiMenDunJia myself all the time.
Thêm nữa