TALKWEB INFORMATIO

阿隆区域:区分多空和横盘

249
**阿隆区域**
AROON(阿隆)虽好,但是有时信号上的噪声显得过于繁杂,不容易判断。在这个改进版中,我使用彩色条形来分类做多、做空和横盘,这样可以更好地了解当前市场的状况。由于中国人用红色代表牛,绿色代表熊,而其他国家用绿色代表牛,红色代表熊,我尽量避免使用红色或绿色,这可能会造成混淆。 我将我的颜色风格用于牛市和熊市:
黄色 --> 做多
紫红色 --> 做空
灰色 --> 横盘震荡


**阿隆区域算法**

阿隆区域算法开源发布在TradingView社区,感兴趣朋友可以到​如下链接获取:

[blackcat] L3 Aroon Zone


```pine
// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
// © blackcat1402
//version=4

study("[blackcat] L3 Aroon Zone","[blackcat] L3 Aroon Zone", overlay=false, max_bars_back=5000, max_labels_count =500)

length=input(14)
aroon_dn = (length-highestbars(high,length+1))/length*100 - 100
aroon_up = (length-lowestbars(low,length+1))/length*100 - 100

bull = iff(aroon_up>70 and aroon_dn<70,100,0)
bear = iff(aroon_dn>70 and aroon_up<70 ,-100,0)

plot(bull, color=color.yellow, linewidth=1)
plot(bear, color=color.fuchsia, linewidth=1)
plot(bull, color=color.new(color.yellow,50), linewidth=3, style=plot.style_columns)
plot(bear, color=color.new(color.fuchsia,50), linewidth=3, style=plot.style_columns)

choppiness = (bull==0 and bear==0)
plotcandle(50,-50,50,-50, color = choppiness ? color.new(color.gray,50): na, wickcolor= choppiness ? color.new(color.gray,50) : na,bordercolor= choppiness ? color.new(color.gray,0) : na)

```

下面用两张图说明下,是不是感觉更加清晰了呢?

snapshot
冰糖橙行情来自TradingView

snapshot
拓维信息1H行情来自TradingView

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.