Script Timelytrading
Script Timelytrading
Script Timelytrading
instrument {
name = 'TIEMLYTRADING',
short_name = 'super',
overlay = true
}
input_group {
"Venda",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
buyCondition = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1] and not
(buffer1 < buffer2 and buffer1[1] > buffer2[1]))
buyCondition = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1])
sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] and not
(buffer1 > buffer2 and buffer1[1] < buffer2[1]))
sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] )
plot_shape(
(buyCondition),
"GO",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"COMPRA ",
"green"
)
plot_shape(
(sellCondition),
"GO",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"VENDE ",
"red"
)
instrument {
name = 'TIEMLYTRADING',
short_name = 'super',
overlay = true
}
input_group {
"Compra",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Venda",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
buyCondition = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1] and not
(buffer1 < buffer2 and buffer1[1] > buffer2[1]))
buyCondition = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1])
sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] and not
(buffer1 > buffer2 and buffer1[1] < buffer2[1]))
sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] )
plot_shape(
(buyCondition),
"GO",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"COMPRA ",
"green"
)
plot_shape(
(sellCondition),
"GO",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"VENDE ",
"red"
)
input_group {
"Color",
color = input {default = "white", type = input.color},
width = input {default = 1, type = input.line_width}
}
hline(highest(high[bar_look], period1), "HH10", color, width)
hline(lowest(low[bar_look], period1), "LL10", color, width)
instrument{name="Sup/Res
",icon='https://ih1.redbubble.net/image.2665274966.4332/mp,504x516,gloss,f8f8f8,t-
pad,600x600,f8f8f8.jpg',overlay=true}
if not get_value(c)then
return b end;
local d=high<=c and high[1]<=c and high[3]<=c and high[4]<=c;
b:set(iff(d,c,b[1]))return b end;
local function e()local b=make_series()local c=low[2]if not get_value(c)then return
b end;
local d=low>=c and low[1]>=c and low[3]>=c and low[4]>=c;
b:set(iff(d,c,b[1]))return b end;
input_group{"Color",color=input{default="white",type=input.color},width=input{defau
lt=1,type=input.line_width}}h=a()l=e()hline(h,"High",color,high_width)
hline(l,"Low",color,width)hline(highest(10)[1],"HH10",color,1)hline(lowest(10)
[1],"LL10",color,1)hline(highest(30)[1],"HH30",color,1)
hline(lowest(30)[1],"LL30",color,1)
hline(highest(60)[1],"HH60",color,1)hline(lowest(60)
[1],"LL60",color,1)hline(highest(100)[1],"HH100",color,1)
hline(lowest(100)[1],"LL100",color,1)hline(highest(150)[1],"HH150",color,1)
hline(lowest(150)[1],"LL150",color,1)hline(highest(200)
[1],"HH200",color,1)hline(lowest(200)[1],"LL200",color,1)