Bill Williams Zone and Squat Bars. See New Trading Dimensions by Bill Williams, PhD.
Bars are green (green zone) when the Awesome Oscillator and Accelerator/Decelerator are both positive.
Bars are red (red zone) when the Awesome Oscillator and Accelerator/Decelerator are both negative.
Bars are blue when a squat bar is formed, these indicate a battle between bulls and bears and often happen near trend continuation or trend changes.
Caution: Assumes chart is a bar chart - not a candle chart.
Caution: Squat bars are accurate only with official exchange volume data - BATS data will give false squat bars.
オープンソーススクリプト

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

免責事項

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

チャートでこのスクリプトを利用したいですか?
//Bill Williams Zone and Squat Bars.  See New Trading Dimensions by Bill Williams, PhD.
//Bars are green (green zone) when the Awesome Oscillator and Accelerater/Decelerator are both positive.
//Bars are red (red zone) when the Awesome Oscillator and Accelerater/Decelerator are both negative.
//Bars are blue when a squat bar is formed, these indicate a battle between bulls and bears and often happen near trend continuation or trend changes.
//Caution: Assumes chart is a bar chart - not a candle chart.
//Caution: Squat bars are accurate only with official exchange volume data - BATS data will give false squat bars.
study(title="ZoneBars", overlay = true)
ao = sma(hl2,5) - sma(hl2,34)
ac = ao - sma( ao, 5 )
isGreen() => ao > ao[1] and ac > ac[1]
isRed() => ao < ao[1] and ac < ac[1]
mfi = (high-low)/volume
rm = roc(mfi,1)
rv = roc(volume,1)
isSquat() => rm < rm[1] and rv > rv[1] 
barcolor(isSquat() ? blue : isGreen() ? green : isRed() ? red : black)