Petros

Williams Squat Bars

Squat bars are a battle of the bulls and the bears, with lots of buying and selling but little price movement.
A squat bar will be one of the top three OR bottom three bars 85% of the time at the end of a trend.
While all trends end with a squat, all squats are NOT the end of a trend.
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

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.

Vous voulez utiliser ce script sur un graphique ?
//This is a volume based indicator. Make shure to use proper volume input.

//Squat bars are a battle of the bulls and the bears, with lots of buying and selling but little price movement.
//A squat bar will be one of the top three OR bottom three bars 85% of the time at the end of a trend.
//While all trends end with a squat, all squats are NOT the end of a trend.

study("Williams Squat Bars", shorttitle="Squat Bars", overlay=true)
r_hl=roc((high-low)/volume,1)
r_v=roc(volume,1)
squat_f=(r_hl < 0) and (r_v > 0)
barcolor(squat_f ? blue : na)