Professional Documents
Culture Documents
VWAP OVERSOLD", Type Input - Float) RSI - VWAP Rsi (Vwap (Close), RSI - VWAP - Length)
VWAP OVERSOLD", Type Input - Float) RSI - VWAP Rsi (Vwap (Close), RSI - VWAP - Length)
= color.
bR
priceHH
title="
? bearColor : noneColor)
)
plotshape(
bearCond ? osc[lbR] : na,
offset=-lbR,
title="Regular Bearish Label",
text=" Bear ",
style=shape.labeldown,
location=location.absolute,
color=bearColor,
textcolor=textColor
)
//------------------------------------------------------------------------------
// Hidden Bearish
// Osc: Higher High
.price, size=size.small) :
, rsiRSI[1]-1, "BULL", color=color.green, textcolor=color.white, style=label.style_labelup,
yloc=yloc.price, size=size.small) :
divbullRSI := true
divbullRSI := true
pivothRSI ?
pivotlRSI ?
if (minRSI[1] < minRSI[2]) and (rsiRSI[1] > min_rsiRSI) and (rsiRSI >= rsiRSI[1])
Percentrank Bug
https://www.tradingview.com/script/GibJ8AAn-RESEARCH-Percentrank-
Bug/
// Plotting, overlay=false
r=plot(RSI_VWAP, color = RSI_VWAP > RSI_VWAP_overBought ? color.red : RSI_VWAP <
RSI_VWAP_overSold ? color.lime : color.blue, title="rsi", linewidth=2, style=plot.style_line)
rsiRSI = RSI_VWAP
// DIVS code
hbRSI = abs(highestbars(rsiRSI, xbarsRSI)) // Finds bar with highest value in last X bars
lbRSI = abs(lowestbars(rsiRSI, xbarsRSI)) // Finds bar with lowest value in last X bars
maxRSI = float(na)
max_rsiRSI = float(na)
minRSI = float(na)
min_rsiRSI = float(na)
pivothRSI = bool(na)
pivotlRSI = bool(na)
divbearRSI = bool(na)
divbullRSI = bool(na)
// Compare high of current bar being examined with previous bar's high
// If curr bar high is higher than the max bar high in the lookback window range
maxRSI := close // change variable "max" to use current bar's high value
max_rsiRSI := rsiRSI // change variable "max_rsi" to use current bar's RSI value
minRSI := close // change variable "min" to use current bar's low value
min_rsiRSI := rsiRSI // change variable "min_rsi" to use current bar's RSI value
// Finds pivot point with at least 2 right candles with lower value
>= rsiRSI[1])
divbullRSI := true
// Alerts