TradingView
Has-no-Name
21 de Jun de 2021 19:39

I Ching Hexagrams Part 1 

EUR/USDOANDA

Descrição

IMPORTANT!
Get the other indicator I Ching Hexagrams Part 2 for the full set!


Here is the first half of the I Ching's hexagrams.
Each candle generates a hexagram at close, based on that candle and the previous 5.
A green candle is yang and a red candle is yin.
In this way, price action generates a hexagram.

Use this to generate a hexagram for the day or even to find interesting patterns to trade.
Have fun!

Comentários
qiusheng
哈哈,我很喜欢你的这个创意,不过我不能理解:为什么是选择前五根K线?《易》这个汉字,上面是太阳,下面是月亮,不过在易经中,太极并不是黑白两色。还有中间状态。所以在脚本的业务逻辑上,策略目标应该是预测下一个K线是什么。由于有中间状态,应该是预测出5种结果,分别是:快速上涨、慢涨、横盘震荡、慢跌、快速下跌。分别对应:金、木、水、火、土。
AtomOfScent
If you're running into limitations on how many plots that can be shown in one script you can combine the conditions in the plot line. A bit more messy, but I found it helps when trying to squeeze more into each script. ;)
//couldn't use the symbols in the comment due to english only so replaced with x/y
plotchar(Creative or Difficulty, char=Creative ? 'x' : 'y', location=location.abovebar, color=cYang)
Has-no-Name
@AtomOfScent, Ah, interesting! I didn't know you could do that. I'll try this out sometime and see if I can't consolidate.
Mais