OPEN-SOURCE SCRIPT

BTC Supply Rejection (Very Simple)

50
//version=5
indicator("BTC Supply Rejection (Very Simple)", overlay=true)

pivotLeft = input.int(5, "Pivot Left Bars", minval=1)
pivotRight = input.int(5, "Pivot Right Bars", minval=1)

// basic swing high approximation
supply = ta.pivothigh(high, pivotLeft, pivotRight)

// plot supply
plot(supply, title="Supply", color=color.red)

// basic rejection: current high above supply and close below
rejection = not na(supply) and high >= supply and close < supply

// color rejecting bars
barcolor(rejection ? color.red : na)

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.