Professional Documents
Culture Documents
amck-cpr
amck-cpr
amck-cpr
0 at
https://mozilla.org/MPL/2.0/
//study("mr BANKER", shorttitle="🕆 ,overlay=true)
//.......-:+==*=*=*:--:---.........-@@@@@
//......+==@##@@@@#@@#=#=*=*:......-@@@@@
//....+###=@@@@#@#@@@@@@@@@####+-..-@@@@@
//..-#@@#==#=#@@==##@@WW@@WW@#@@@*::@#@@@
//.-#@@@@=#@@@##=*=##@@WWWWWWW@WW@#@@@W@#
//.:#@@@WW@@##@@#######@@@W@WWWWWW##=@@@@
//.+@@WWWWW@@##@@@@####@@@@@@@WWWWW@@@@@W
//.-#@#W@@WW@@@@###===####@@@@@WWWWWWWW#@
//.-####:*@@##*===*========##@@WWWWWWW@@+
//..=@W*:***==**==*******=====##@WWWW@#@@
//..=WW=++++*++**++***++***====#@WWW@--=W
//..-@@#+++++++++++++:--:+++*===#WWW#:--@
//:--*@@+::+++++++++++:++++++**=#@W##+-+W
//=--*=#+*==##=********=#@@@@@@#=@@##@#=W
//@---*#+=###@@@@@#*=##@@@@@#@@#=#@#@WWWW
//@*--**-+=====####===@@###=###===#@WWWWW
//W#=@@=--+*=======***#=========*==@WWWWW
//W@@@++:--:**=***+---+====*===*==@@@@###
//W@@##=****====*--..--+:======###@@@@@@@
//W@@====###@@#====**==####@@###=@@@@@@@@
//#=====#####@@#=====#=###@@####@WWWWWW@@
//#==###@W@####===##@#@#######@@@WWWWWWWW
//#=####WWWW@##======#######@@@@WWWWWWWWW
//##@###@WWWW##========####@@@@WWWWWWWWWW
//@#@#@#@WWWW@#@#=======##@@@@WWWWWWWWWWW
//@@@@@@@WWWWW@@##@@@#@@@@@@WWWWWWWWWWWWW
//@@@@@@@WWWWWWW@@@@@@@@@WWWWWWWWWWWWWWW@
//@@@@@@@WWWWWWWWWW@@@WWWWWWWWWWWWWWW@W@@
//@version=4
study("TeamTaurus Master",shorttitle="ॐ" ,overlay = true, max_bars_back = 5000)
mode =input(title = "HTF Method", defval = 'User Defined', options=['Auto', 'User
Defined'], tooltip = "Choose Of the method to Select the Timeframe")
HTFm = input('D', title = "Time Frame (if HTF Method=User Defined)",
type=input.resolution, tooltip = "Manual Timeframe Selection")
showlast = input(title = "Show Only Last Period", defval = true, group = "Settings
ॐ", tooltip = "Shows only Today levels bar by bar")
showlabels = input(title = "Show Labels", defval = true, group = "Settings ॐ",
tooltip = "Shows labels on plotted pivots")
lstyle = input(title = "CAM Style", options = ['Solid', 'Circles', 'Cross'], defval
='Solid', group = "Style", tooltip = "Change Line Style for Camarilla")
lstyle2 = input(title = "CPR Style", options = ['Solid', 'Circles', 'Cross'],
defval ='Solid', group = "Style", tooltip = "Change Line Style for CPR")
flstyle = input(title = "Fib Style", options = ['Solid', 'Circles', 'Cross'],
defval ='Solid', group = "Style", tooltip = "Change Line Style for Fibonacci
Pivots")
cturnon = input(title = "Turn On Camarilla", defval = true, group = "Settings ॐ",
tooltip = "Turn Camarilla ON")
cprturnon = input(title = "Turn On CPR", defval = true, group = "Settings ॐ",
tooltip = "Turn CPR on")
JP = input(title = "Just Pivot", defval = false, group = "Settings ॐ", tooltip =
"Show Only Pivot of the day")
fibon = input(title = "Turn On Fib Pivot", defval= false, group = "Settings ॐ",
tooltip = "Turn Fib Pivots On")
sal = input(title="Show Additional Levels?", defval = false, group = "Settings ॐ",
tooltip = "Show additional levels of Fib Pivots")
PDHL = input(title = "Show Previous Hi-Lo", defval=true, group = "Settings ॐ",
tooltip = "Show Previous Days Hi and Low")
rsicol = input(false, title="Show RSI colors?", group = "Settings ॐ", tooltip =
"Show RSI Levels On Bars")
vwaplot = input (false, title="VWAP Strategy", group = "Settings ॐ", tooltip =
"Turn on Vwap")
emaplot = input (false, title="Show EMA on chart", group = "Settings ॐ", tooltip =
"Turns On 3 Ema's On Chart, Levels can be Edited")
smaplot = input (false, title="Show MA on chart", group = "Settings ॐ", tooltip =
" Turns On 2 MA's")
vwmaplot = input (false, title="VWMA on", group = "Settings ॐ", tooltip = "Turn on
Volume Weighted Moving Average")
vsr = input(false, title="Show Volume Based S&R", group = "Settings ॐ", tooltip =
"Shows Volume Based Support and Resistance on Stocks and Futures")
prd = input(defval = 30, title="Pivot Point Period", minval = 5, maxval = 100,
group ="Swing Length")
swing = input(defval = true, title="Swing High Low", group = "Settings ॐ", tooltip
="Turn On Swing Hi/Lo")
// Line Style
linestyle = lstyle == 'Solid' ? plot.style_line :
lstyle == 'Circle' ? plot.style_circles : plot.style_cross
H4 = chtf + rng * 1.1/2
H3 = chtf + rng * 1.1/4
H2 = chtf + rng * 1.1/6
H1 = chtf + rng * 1.1/12
L1 = chtf - rng * 1.1/12
L2 = chtf - rng * 1.1/6
L3 = chtf - rng * 1.1/4
L4 = chtf - rng * 1.1/2
L5 = L4 - 1.168 * (L3 - L4) //L5 = chtf - (H5 - chtf)
H5 = H4 + 1.168 * (H4 - H3) //H5 = (hhtf / lhtf) * chtf
H6 = (hhtf/lhtf) * chtf //H6 = H5 + 1.168 * (H5 - H4)
L6 = chtf - (H6 - chtf) //L6 = chtf - (H6 - chtf)
M0 = chtf + rng * 1.1/250
Round_it(valu)=>
a = 0
num = syminfo.mintick
s = valu
if na(s)
s := syminfo.mintick
if num < 1
for i = 1 to 20
num := num * 10
if num > 1
break
a := a +1
for x = 1 to a
s := s * 10
s := round(s)
for x = 1 to a
s := s / 10
s := s < syminfo.mintick ? syminfo.mintick : s
s
// Labels
if showlabels and cturnon
var label s3label = na, var label s4label = na, var label s5label = na, var
label s6label = na,var label s0label = na
var label r3label = na, var label r4label = na, var label r5label = na, var
label r6label = na
//////Central Pivot
Pivot = (hhtf + lhtf + chtf)/3
BC = (hhtf + lhtf)/2
TC = (Pivot - BC) + Pivot
//LineStyle CPR
linestylee = lstyle2 == 'Solid' ? plot.style_line :
lstyle2 == 'Circle' ? plot.style_circles : plot.style_cross
label.delete(jplabel)
jplabel := label.new(x = time + mndr * 20, y = Pivot, text = "Pivot " +
tostring(Round_it(Pivot)), textcolor=color.black, style=label.style_none, xloc =
xloc.bar_time, yloc=yloc.price)
chtf
plot(islast and PDHL ? PDM : na, title = "Day Mid", color = color.black, linewidth
= 1, style = linestylee, transp = 0)
label.delete(pdhlabel)
label.delete(pdllabel)
label.delete(pdmlabel)
pdhlabel := label.new(x = time + mndr * 20, y = hhtf, text = "
PDH " + tostring(Round_it(hhtf)), textcolor=color.black, style=label.style_none,
xloc = xloc.bar_time, yloc=yloc.price)
pdllabel := label.new(x = time + mndr * 20, y = lhtf, text = "
PDL "+ tostring(Round_it(lhtf)), textcolor=color.black, style=label.style_none,
xloc = xloc.bar_time, yloc=yloc.price)
pdmlabel := label.new(x = time + mndr * 20, y = PDM, text = "
PDM "+ tostring(Round_it(lhtf)), textcolor=color.black, style=label.style_none,
xloc = xloc.bar_time, yloc=yloc.price)
//////Fibo Pivot
// fib Line Style
flinestyle = flstyle == 'Solid' ? plot.style_line :
flstyle == 'Circle' ? plot.style_cross : plot.style_circles
plot(fibon and sal and islast ? R7 : na, title = "R7", color = color.red, linewidth
= 1, style = flinestyle, transp = 0)
plot(fibon and sal and islast ? R6 : na, title = "R6", color = color.red, linewidth
= 1, style = flinestyle, transp = 0)
plot(fibon and sal and islast ? R5 : na, title = "R5", color = color.red, linewidth
= 1, style = flinestyle, transp = 0)
plot(fibon and islast ? R4 : na, title = "R4", color = color.red, linewidth = 1,
style = flinestyle, transp = 0)
plot(fibon and islast ? R3 : na, title = "R3", color = color.red, linewidth = 1,
style = flinestyle, transp = 0)
plot(fibon and islast ? R2 : na, title = "R2", color = color.red, linewidth = 1,
style = flinestyle, transp = 0)
plot(fibon and islast ? R1 : na, title = "R1", color = color.red, linewidth = 1,
style = flinestyle, transp = 0)
plot(fibon and islast ? pivot : na, title = "pivot", color = color.silver,
linewidth = 1, style = flinestyle, transp = 0)
plot(fibon and islast ? S1 : na, title = "S1", color = color.lime, linewidth = 1,
style = flinestyle, transp = 0)
plot(fibon and islast ? S2 : na, title = "S2", color = color.lime, linewidth = 1,
style = flinestyle, transp = 0)
plot(fibon and islast ? S3 : na, title = "S3", color = color.lime, linewidth = 1,
style = flinestyle, transp = 0)
plot(fibon and islast ? S4 : na, title = "S4", color = color.lime, linewidth = 1,
style = flinestyle, transp = 0)
plot(fibon and sal and islast ? S5 : na, title = "S5", color = color.lime,
linewidth = 1, style = flinestyle, transp = 0)
plot(fibon and sal and islast ? S6 : na, title = "S6", color = color.lime,
linewidth = 1, style = flinestyle, transp = 0)
plot(fibon and sal and islast ? S7 : na, title = "S7", color = color.lime,
linewidth = 1, style = flinestyle, transp = 0)
//Dark Cloud
//barcolor(open[1] < close[1] ? open > high[1] ? close < close[1] - ((close[1] -
open[1]) / 2) ? close > open[1] ? #dbff01 :na :na :na :na, title='Dark Cloud
Cover')
//Bearish Engulfing
//barcolor(close < open[1] ? low < low[1] ? high > high[1] ? open >= open[1] ?
#FF7000 : na: na: na: na, title="Bearish engulfing")
//alertcondition(close < open[1] and low < low[1] and high > high[1] and open >=
open[1], title='Alert on bearish engulf', message='Bearish engulfing')
//Bullish Engulfing
//barcolor(low < low[1] ? high > high[1] ? open <= open[1] ? close > open[1] ?
#00FF00 : na: na: na: na, title="Bullish engulfing")
//alertcondition(low < low[1] and high > high[1] and open <= open[1] and close >
open[1], title='bullish engulf', message='Bullish engulfing')
//////SMA
////////////////RSI
srcRSI = close, lenRSI = input(14, minval=1, title="RSI Length", group = "RSI
Settings")
up = rma(max(change(srcRSI), 0), lenRSI)
down = rma(-min(change(srcRSI), 0), lenRSI)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
//coloring method below
srcRSI1 = close, lenRSI1 = input(60, minval=1, title="Over Bought", group = "RSI
Settings")
srcRSI2 = close, lenRSI2 = input(40, minval=1, title="Over Sold", group = "RSI
Settings")
isup() => rsi > lenRSI1
isdown() => rsi < lenRSI2
barcolor(rsicol and isup() ? color.green : rsicol and isdown() ? color.red : na )
//plot(UpperTreshold, color=black)
p1=plot(vsr and leveluphi ? leveluphi : na,
title="LevelHi",style=vstylee,color=color.blue)
p2=plot(vsr and leveluplo ? leveluplo :
na,title="Levello",style=vstylee,color=color.blue)
fill(p1,p2,color.black,50,"Fill")
/////////////////////Label
//---------------------------------
show_label = input(true, title="Show Label", group = "labels")
//----------------------------------------
fwd_offset = input(75,options=[0,10,20,30,40,75,-75,-40,-30,-20,-
10],title="Offset")
bar_index_duration = time - time[1]
label_fwd_offset = fwd_offset * bar_index_duration
//------------------------------------------------
isbullish = close >= open
label_y_location = close
label_color_transparency = isbullish ? color.new(color.lime, 20) :
color.new(color.red, 20)
label_text_color = isbullish ? color.new(color.lime, 0) :
color.new(color.red, 0)
//label_style = isbullish ? label.style_none : label.style_none
label_size = size.large
label_text_align = text.align_center
//-----------Plot lable----------------------
if show_label
lbl = label.new(
x = time + label_fwd_offset,
y = close,
text = "
👈🦊 IS THERE A SETUP !?? 😂👉 SOH",
xloc = xloc.bar_time,
yloc = yloc.price,
color = label_color_transparency,
style = label.style_none,
textcolor = label_text_color,
size = label_size,
textalign = label_text_align
)
label.delete(lbl[1])
//------------------------------------
Ecandle = input(false, "Indecisive-Candle", group="Settings ॐ", tooltip="Shows
Candle")
cand = high-low
bodyr = open-close
candle = (bodyr*100/cand)
//hsrc = UseClose?close:high
//lsrc = UseClose?close:low
//PH1 = pivothigh(hsrc,LP,RP)
//PH = valuewhen(PH1,PH1,0)
//plotshape(Pivot?PH1:na,style=shape.circle, color=#FF4500, text = "H",
textcolor=#000000,location=location.abovebar, offset=-RP, transp = 0, title="Pivot
High")
//BR1=plot(Pivot?PH:na,style=plot.style_circles, linewidth=2,color=high<=PH?
#FF4500:na,title="Pivot High", offset = 0)
//PL1 = pivotlow(lsrc,LP,RP)
//PL = valuewhen(PL1,PL1,0)
//plotshape(Pivot?PL1:na,style=shape.circle, color=#6B8E23, text = "L",
textcolor=#000000,location=location.belowbar, offset=-RP, transp = 0,title="Pivot
Low")
//BR2=plot(Pivot?PL:na,style=plot.style_circles, linewidth=2, color=low>=PL?
#008000:na,title="Pivot Low", offset = 0)
//
═══════════════════════════════════════════════════════════════════════════════════
═══════════════ //
//
// Volume / Volatility AddOns
//
═══════════════════════════════════════════════════════════════════════════════════
═══════════════ //
//
-----------------------------------------------------------------------------------
----------- //
// -Inputs
-----------------------------------------------------------------------------------
--- //
//
-----------------------------------------------------------------------------------
----------- //
// High Volatility
------------------------------------------------------------------------------ //
i_hATRLb =
input(true , "⚡"
, inline = "ATR" ,
group = group_vol_vol, tooltip = tooltip_high_volatility)
i_weightedATR =
atr(input(13 , "ATR : Length"
, inline = "ATR" ,
group = group_vol_vol)) *
input(2.718 , "Mult", minval = .1, step = .1
, inline = "ATR" , group = group_vol_vol)
//
-----------------------------------------------------------------------------------
----------- //
// Volume Moving Average : Base
----------------------------------------------------------------- //
//
-----------------------------------------------------------------------------------
----------- //
// Volume Spike - Sign of Exhaustion
------------------------------------------------------------ //
//
-----------------------------------------------------------------------------------
----------- //
// Volume Weighted Colored Bars
----------------------------------------------------------------- //
//
-----------------------------------------------------------------------------------
----------- //
// -Calculations and Plotting
------------------------------------------------------------------- //
nzVolume = nz(volume)
bullCandle = close > open
bearCandle = close < open
range = abs(high - low)
//
-----------------------------------------------------------------------------------
----------- //
// Volume Spike - Sign of Exhaustion
------------------------------------------------------------ //
//
-----------------------------------------------------------------------------------
----------- //
// High Volatility
------------------------------------------------------------------------------ //
//
-----------------------------------------------------------------------------------
----------- //
// Volume Weighted Colored Bars by Kıvanç Özbilgiç
---------------------------------------------- //