You are on page 1of 6

?

bearColor :
down,

label.new (

label.new (bar_index-2, max_rsiRSI+1, "PIVOT", color=color.blue, textcolor=color.white,


style=label.style_labeldown, yloc=yloc.price, size=size.small) :

pivotlRSI ?

if (minRSI[1] < minRSI[2]) and (rsiRSI[1] > min_rsiRSI) and (rsiRSI >= rsiRSI[1])

 If opening first five minute Candle Above R1 or Below S1


 Rate of Change 
 https://www.tradingview.com/script/PvzZIeoo-RESEARCH-Rate-of-
Change/


 Mean Absolute Deviation 
 https://www.tradingview.com/script/qXc06HaE-RESEARCH-Mean-
Absolute-Deviation/


 Custom Median vs Built-in Median 
 https://www.tradingview.com/script/yjQx0BVg-RESEARCH-Custom-
Median-vs-Built-in-Median/


 Quasi White Noise 
 https://www.tradingview.com/script/UWKXaj5O-RESEARCH-Quasi-
White-Noise/

 Rate of Change 
 https://www.tradingview.com/script/PvzZIeoo-RESEARCH-Rate-of-
Change/


 Mean Absolute Deviation 
 https://www.tradingview.com/script/qXc06HaE-RESEARCH-Mean-
Absolute-Deviation/


 Custom Median vs Built-in Median 
 https://www.tradingview.com/script/yjQx0BVg-RESEARCH-Custom-
Median-vs-Built-in-Median/


 Quasi White Noise 
 https://www.tradingview.com/script/UWKXaj5O-RESEARCH-Quasi-
White-Noise/


 Rate of Change 
 https://www.tradingview.com/script/PvzZIeoo-RESEARCH-Rate-of-
Change/


 Mean Absolute Deviation 
 https://www.tradingview.com/script/qXc06HaE-RESEARCH-Mean-
Absolute-Deviation/


 Custom Median vs Built-in Median 
 https://www.tradingview.com/script/yjQx0BVg-RESEARCH-Custom-
Median-vs-Built-in-Median/


 Quasi White Noise 
 https://www.tradingview.com/script/UWKXaj5O-RESEARCH-Quasi-
White-Noise/


Rate of Change 
https://www.tradingview.com/script/PvzZIeoo-RESEARCH-Rate-of-Change/

Mean Absolute Deviation 


https://www.tradingview.com/script/qXc06HaE-RESEARCH-Mean-Absolute-
Deviation/

Custom Median vs Built-in Median 


https://www.tradingview.com/script/yjQx0BVg-RESEARCH-Custom-Median-vs-
Built-in-Median/

Quasi White Noise 


https://www.tradingview.com/script/UWKXaj5O-RESEARCH-Quasi-White-
Noise/

SMA Crossover Prediction 


https://www.tradingview.com/script/aERsVfMF-RESEARCH-SMA-Crossover-
Prediction/
Rate of Change 
https://www.tradingview.com/script/PvzZIeoo-RESEARCH-Rate-of-
Change/

Mean Absolute Deviation 


https://www.tradingview.com/script/qXc06HaE-RESEARCH-Mean-
Absolute-Deviation/
Custom Median vs Built-in Median 
https://www.tradingview.com/script/yjQx0BVg-RESEARCH-Custom-
Median-vs-Built-in-Median/

Quasi White Noise 


https://www.tradingview.com/script/UWKXaj5O-RESEARCH-Quasi-
White-Noise/

SMA Crossover Prediction 


https://www.tradingview.com/script/aERsVfMF-RESEARCH-SMA-
Crossover-Prediction/

Percentrank Bug 
https://www.tradingview.com/script/GibJ8AAn-RESEARCH-Percentrank-
Bug/

Kendall Rank Correlation CoefficieIt Will Be a “TRENDING DAY”

 OPEN Between CPR- R1 OR CPR-S1


 If opening first five minute Candle are between CPR- R1 or CPR- S1
It Will Be a “RANGE BOUND DAY”. Until R1/S1 or Previous Day High/Low
Breaks

OPEN Exactly RSI_VWAP_length = input(17, "RSI-VWAP LENGTH")

RSI_VWAP_overSold = input(20, "RSI-VWAP OVERSOLD", type=input.float)

RSI_VWAP_overBought = input(80, "RSI-VWAP OVERBOUGHT", type=input.float)

// RSI with VWAP as source

RSI_VWAP = rsi(vwap(close), RSI_VWAP_length)


// 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)

h1=plot(RSI_VWAP_overBought, color = color.gray, style=plot.style_stepline)

h2=plot(RSI_VWAP_overSold, color = color.gray, style=plot.style_stepline)

fill(r,h1, color = RSI_VWAP > RSI_VWAP_overBought ? color.red : na, transp = 60)

fill(r,h2, color = RSI_VWAP < RSI_VWAP_overSold ? color.lime : na, transp = 60)

rsiRSI = RSI_VWAP

// DIVS code

pivRSI = input(false,"Hide pivots?")

shrt = input(false,"Shorter labels?")

hidel = input(false, "Hide labels and color background")

xbarsRSI = input(defval=90, title="Div lookback period (bars)?", type=input.integer, minval=1)

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

// Defining variable values, mandatory in Pine 3

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)

// If bar with lowest / highest is current bar, use it's value

maxRSI := hbRSI == 0 ? close : na(maxRSI[1]) ? close : maxRSI[1]

max_rsiRSI := hbRSI == 0 ? rsiRSI : na(max_rsiRSI[1]) ? rsiRSI : max_rsiRSI[1]


minRSI := lbRSI == 0 ? close : na(minRSI[1]) ? close : minRSI[1]

min_rsiRSI := lbRSI == 0 ? rsiRSI : na(min_rsiRSI[1]) ? rsiRSI : min_rsiRSI[1]

// 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

if close > maxRSI // we have a new high

maxRSI := close // change variable "max" to use current bar's high value

if rsiRSI > max_rsiRSI // we have a new high

max_rsiRSI := rsiRSI // change variable "max_rsi" to use current bar's RSI value

if close < minRSI // we have a new low

minRSI := close // change variable "min" to use current bar's low value

if rsiRSI < min_rsiRSI // we have a new low

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

You might also like