SpreadEagle71

CCI with Volume Weighted EMA

Here is an attempt to improve on the CCI using a volume weighted ema which is then plugged into the CCI formula.
Use:
The CCI with VW EMA is an oscillator that gives readings between -100 and +100. The usual use is to 'go long' with values over +100 and short on values less than -100.
Another use of this oscillator is a countertrend indicator where one sells at crosses under +100 and buys on crosses over -100.
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
Title="CCI with Volume Weighted EMA"
//CCI with Volume Weighted EMA
//This indicator uses a Volume Weighted EMA which is then plugged into 
//the standard CCI(Commodity Channel Index) formula.
//By SpreadEagle71

study(title="CCI with Volume Weighted EMA ", overlay=false)
length = input(10, minval=1)
xMAVolPrice = ema(volume * close, length)
xMAVol = ema(volume, length)
src = xMAVolPrice / xMAVol

ma = sma(src, length)
cci = (src - ma) / (0.015 * dev(src, length))
plot(cci, color=black, linewidth=2)
band1 = hline(100, color=gray, linestyle=dashed)
band0 = hline(-100, color=gray, linestyle=dashed)
fill(band1, band0, color=olive)