You are on page 1of 2

instrument{name="VALUE CHART NIVEIS 12 E 10 COM SETAS @ Efraim Traders",

short_name="ValueChartNivel-12-10 @ Efraim traders ",


icon="https://efraimtraders.com/wp-content/uploads/2022/03/Touro.png", overlay=
false}

Exibir= input(1,"Sempre observar atentamente nas confluencia lembrar das 3 ultimas


entradas, se estiver respeitando e um otimo sinal para operar. OBS: Evitar sempre a
abertura e o fechamento do mercado equipe!")
Exibir= input(1,"EfraimTraders! SE FOR USAR DA OS CREDITOS E GRATUITO")

function prev(s,i)
y=abs(round(i))
return s[y]
end

length = input(5, "Numero de Velas")


extTop = input(13, "Extreme Level Top")
extBot = input(-13, "Extreme Level Bottom")
sigTop = input(10, "Significant Level Top")
sigBot = input(-10, "Significant Level Bottom")
fairTop = input(10, "Fair Value Top")
fairBot = input(-10, "Fair Value Bottom")

varp = round(length/5)
h_f = length > 7

vara= h_f and highest(high,varp)-lowest(low,varp) or 0


varr1 = h_f and iff(vara==0 and varp==1,abs(close-prev(close,-varp)),vara) or 0
varb=h_f and prev(highest(high,varp),-varp+1)-prev(lowest(low,varp),-varp) or 0
varr2 = h_f and iff(varb==0 and varp==1,abs( prev(close,-varp)-prev(close,-
varp*2) ),varb) or 0
varc=h_f and prev(highest(high,varp),-varp*2)-prev(lowest(low,varp),-varp*2) or 0
varr3 = h_f and iff(varc == 0 and varp==1,abs(prev(close,-varp*2)-prev(close,-
varp*3)),varc) or 0
vard = h_f and prev(highest(high,varp),-varp*3)-prev(lowest(low,varp),-varp*3) or 0
varr4 = h_f and iff(vard == 0 and varp==1,abs(prev(close,-varp*3)-prev(close,-
varp*4)),vard) or 0
vare = h_f and prev(highest(high,varp),-varp*4)-prev(lowest(low,varp),-varp*4) or 0
varr5 = h_f and iff(vare == 0 and varp==1,abs(prev(close,-varp*4)-prev(close,-
varp*5)),vare) or 0
cdelta = abs(close - prev(close,-1))
var0 = (not h_f) and iff((cdelta > (high-low)) or (high==low),cdelta,(high-low)) or
0
lrange=h_f and ((varr1+varr2+varr3+varr4+varr5)/5)*.2 or sma(var0,5)*.2

mba = sma( (high+low)/2,length)


vopen = (open- mba)/lrange
vhigh = (high-mba)/lrange
vlow = (low-mba)/lrange
vclose = (close-mba)/lrange

colorr = open > close and "red" or "white"

plot_candle {
open = vopen,
high = vhigh,
low = vlow,
close = vclose,
candle_color = colorr
}

hline(extTop,"","red")
hline(extBot,"","white")
hline(sigTop,"","red")
hline(sigBot,"","white")
hline(fairTop,"","red")
hline(fairBot,"","white")

input_group { "ENG - UP COLOR", call_color = input { default="WHITE", type =


input.color } }
input_group { "ENG - DOWN COLOR", put_color = input { default="WHITE", type =
input.color } }

if ((close[1] < open[1]) and (close > open) and (close > high[1]) and close[1] >=
open) then

plot_shape(1,
'Bull_Engulfing',
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"CALL",
call_color )
else
if ((close[1] > open[1]) and (close < open) and (close < low[1]) and close[1]
<= open) then

plot_shape(1,
'Bear_Engulfing',
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"PUT",
put_color)
end
end

You might also like