OPEN-SOURCE SCRIPT

Bilson Gann Count

已更新
Gann counting is a method for identifying swing points,trends, and overall market structure. It simplifies price action by drawing short trend lines that summarize moves.

There's essentially 4 types of bar/candle.

Up bar - Higher high and higher low than previous bar
Down bar - Lower high and lower low than previous bar
Inside bar - Lower high and higher low than previous bar
Outside bar - Higher high and lower low than previous bar

We use these determinations to decide how the trendline moves through the candles.

Up bars we join to the high, down bars we join to the low, inside bars are ignored.

There are other indicators that already exist which do this, the difference here is how we handle outside bars.

Other gann counting methods skip outside bars, this method determines how to handle the outside bar after the outside bar is broken.

examples
UP -> OUTSIDE -> UP = Outside bar treated as swing low
UP -> OUTSIDE -> DOWN = Outside bar treated as swing high
DOWN -> OUTSIDE -> UP = Outside bar treated as swing low
DOWN -> OUTSIDE -> DOWN = Outside bar treated as swing high
版本注释
Updates to inside bars. Can now set max number of inside bars considered a hoagie
版本注释
Minor tweak to UP/DOWN bar classifications - thanks to MattB
版本注释
Handle cases with multiple OUTSIDE bars in a row - thanks TraderKingz
Chart patternsPivot PointsPivot points and levels

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明