instrument {
name = 'Grid Line V2',
icon = 'https://www.vdk.be/sites/default/files/styles/teaser_image_xs/public/2019-09/
icon-profit.png?itok=0RrQq3c7',
overlay = true
}
setFix = input(5, "Set Point", input.double, 0.000001)
sec = security (current_ticker_id, "1H")
--print(current_ticker_id) -- 84 79 85 6 3 4 101 106 949 1024 // XAUUSD 74
local getID = {84, 79, 85, 6, 3, 4, 101, 106, 949, 1024}
local len_getID = #getID
--print(len_getID)
if current_ticker_id == 74 then
roundSet = 1
calSetfix = 0.01
else --JPY
for i = 1, len_getID, 1 do
if current_ticker_id == getID[i] then
roundSet = 10
calSetfix = 0.001
break
else
roundSet = 1000
calSetfix = 0.00001
end
end
end
if sec then
getPrice = sec.open[0]
intPrice = round(roundSet * getPrice )
pricePivot = intPrice /roundSet
for i = -15, 15, 1 do
priceLevel = pricePivot + (i * setFix * calSetfix)
if i == 0 then
color = "white"
wd =3
elseif i < 0 then
color = "red"
wd =1
elseif i > 0 then
color = "#00FF2A"
wd =1
end
plot(priceLevel, i, color,wd, 0, style.levels)
end
end
instrument{name="MechasSenalesDago",icon='indicators:ADX',overlay=true}
local function a()
local b=make_series()
local c=high[2]
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="lime", type=input.color}},
{"Width", width=input{default=1, type=input.line_width}}
}
mechas_senalesdago_high = a()
mechas_senalesdago_low = e()
color_resistance_1 = "yellow"
color_resistance_3 = "red"
resistance_price_1 = low[1] + (0.85 * (high[1] - low[1]))
resistance_price_3 = high[1]
hline(resistance_price_1, "Resistance 1", color_resistance_1, width)
hline(resistance_price_3, "Resistance 3", color_resistance_3, width)
hline(mechas_senalesdago_high,"High", color, width)
hline(mechas_senalesdago_low,"Low", color, width)
instrument {
name = 'STRATEGY_RD 2022',
short_name = 'STRATEGY_RD 2022',
overlay = true
}
RSI_period = input(10,"RSI period",input.integer,1,1000,1)
RSI_average = input(1,"RSI average", input.string_selection,averages.titles)
RSI_title = input(1,"RSI title", input.string_selection,inputs.titles)
RSI_OVB1 = input(50,"RSI OVB1",input.double,0.01,100,1,false)
RSI_OVB2 = input(70,"RSI OVB2",input.double,0.01,100,1,false)
RSI_OVS1 = input(50,"RSI OVS1",input.double,0.01,100,1,false)
RSI_OVS2 = input(30,"RSI OVS2",input.double,0.01,100,1,false)
MaFast_period = input(5,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(1,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(10,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(20,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Ma Fast Line",
colorFast = input { default = "#ff56e8", type = input.color },
widthFast = input { default = 1, type = input.line_width},
visibleFast = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "#2d2af7", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Trend Line",
colorTrend = input { default = "#f74200", type = input.color },
widthTrend = input { default = 3, type = input.line_width},
visibleTrend = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy RSI X Out",
colorBuy = input { default = "lime", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell RSI X Out",
colorSell = input { default = "orangered", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy RSI X In",
colorBuy1 = input { default = "lime", type = input.color },
visibleBuy1 = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell RSI X In",
colorSell1 = input { default = "orangered", type = input.color },
visibleSell1 = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
local avgRSI = averages[RSI_average]
local titleRSI = inputs[RSI_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
delta = titleRSI - titleRSI[1]
up = avgRSI(max(delta,0), RSI_period)
down = avgRSI(max(-delta,0), RSI_period)
RS = up/down
RES = 100 - 100/(1+ RS)
if (sec ~= nil) and (sec.open_time == open_time) then
Mafast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
Mafast1 = Mafast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1] --Ma Slow bar 1
MaTrend0 = avgTrend(titleTrend,MaTrend_period) --Ma Trend 0
Matrend1 = MaTrend0[1] --Ma Trend 1
if(visibleBuy == true) then
plot_shape(RES[1] < RSI_OVB1 and RES > RSI_OVB1 and close > Mafast0 and
Mafast0 > MaSlow0 and MaSlow0 > MaTrend0,
"Call",
shape_style.arrowup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"ENTRADA BOA",
colorBuy
)
end
if(visibleSell == true) then
plot_shape(RES[1] > RSI_OVS1 and RES < RSI_OVS1 and close < Mafast0 and
Mafast0 < MaSlow0 and MaSlow0 < MaTrend0,
"Put",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"ENTRADA BOA",
colorSell
)
end
if(visibleBuy1 == true) then
plot_shape(RES[1] < RSI_OVS2 and RES > RSI_OVS2,
"Call1",
shape_style.arrowup,
shape_size.huge,
colorBuy1,
shape_location.belowbar,
0,
"COMPRE",
colorBuy1
)
end
if(visibleSell1 == true) then
plot_shape(RES[1] > RSI_OVB2 and RES < RSI_OVB2 ,
"Put1",
shape_style.arrowdown,
shape_size.huge,
colorSell1,
shape_location.abovebar,
0,
"VENDA",
colorSell1
)
end
end
instrument{name="Akalanata
Sup/Res",icon='https://lh3.googleusercontent.com/ogw/ADea4I65OapvF7ZOUMZc_3J4Y
x__qVmvJD_jgzr4p8MZNks=s32-c-mo',overlay=true}
local function a()local
b=make_series()local c=high[2]
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="lime",type=input.color},width=input{defaul
t=1,type=input.line_width}}h=a()l=e()hline(h,"High",color,high_width)hline(l,"Low",col
or,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)
instrument {
name = 'Rob Mega Win',
short_name = 'FrTr',
icon =
'https://i.pinimg.com/originals/bc/1e/4e/bc1e4e6ab2468125bc0780556b6c174b.jpg',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
input_group {
"Compra",
colorBuy = input { default = "yellow", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Venda",
colorSell = input { default = "blue", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"VAI SUBIR",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"VAI SUBIR",
"yellow"
)
plot_shape(
(sellCondition),
"VAI DESCER",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"VAI DESCER",
"blue"
)
instrument { name = "SCRIPT SURREAL 2022", icon="indicators:ADX", overlay = true }
method_id = input (1, "Type", input.string_selection, { "@FredsonTrader" })
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --IQ
OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
end
instrument{name="BANDAS BOLLING @ZEUS",
short_name="@SCRIPT",
icon = 'indicators:BB',
overlay=true}
Exibir_tracamento= input(1, "Deseja exibir o tracamento?", input.string_selection,
{"SIM", "NAO"})
input_group {"BANDA SUPERIOR", bbsup_color= input{ default= "silver", type=
input.color}}
input_group {"BANDA INFERIOR", bbinf_color= input{ default= "silver", type=
input.color}}
smaa= sma(close, '20')
upper_band= smaa + (stdev(close,20) * 2.5)
lower_band= smaa - (stdev(close,20) * 2.5)
emaa= ema(close, '100')
if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_band, "UPPER_BAND", bbsup_color)
plot(lower_band, "LOWER_BAND", bbinf_color)
end
instrument {
name = 'SCRIPT SURREAL 2022',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
input_group {
"COMPRA PERFEITA Proxima vela",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"VENDA PERFEITA Proxima vela",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"Compra PERFEITA",
"green"
)
plot_shape(
(sellCondition),
"ENTER",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"Venda PERFEITA",
"red"
)
instrument{name="ESTRATEGIA SR1
2022",icon='https://lh3.googleusercontent.com/ogw/ADea4I65OapvF7ZOUMZc_3J4Yx__
qVmvJD_jgzr4p8MZNks=s32-c-mo',overlay=true}
local function a()local
b=make_series()local c=high[2]
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{defa
ult=1,type=input.line_width}}h=a()l=e()hline(h,"High",color,high_width)hline(l,"Low",c
olor,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)
instrument { name = "@RICHARD DRIGUES", icon="indicators:ADX", overlay = true }
method_id = input (1, "Type", input.string_selection, { "@RICHARD DRIGUES" })
instrument {
name = 'ESTRATEGIA SR1 2022',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
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 }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"COMPRA!",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"COMPRA!",
"white"
)
plot_shape(
(sellCondition),
"VENDA!",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"VENDA!",
"white"
)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --IQ
OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
end
instrument {
name = 'TARGET SNIPER',
short_name = 'TARGET-SNIPER',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(3,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(4,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(50,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(4,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(100,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Ma Fast Line",
colorFast = input { default = "White", type = input.color },
widthFast = input { default = 1, type = input.line_width},
visibleFast = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "purple", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy Outside Bar",
colorBuy2 = input { default = "blue baby", type = input.color },
visibleBuy2 = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Outside Bar",
colorSell2 = input { default = "pink", type = input.color },
visibleSell2 = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
filter_source = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m",
"30m", "1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
filter_pa_index = input(8,"Candle check resolution",input.string_selection,filter_source)
filter_pa = security (current_ticker_id, filter_source[filter_pa_index])
--print(filter_source[filter_pa_index])
if (sec ~= nil) then
MaFast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
MaFast1 = MaFast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
MaTrend1 = MaTrend0[1]
if(visibleBuy == true) then
plot_shape((close > open and close[1] < open[1] and close > MaFast0 and
MaFast0 > MaSlow0 and MaSlow0 > MaTrend0 and close > open[1] and open <=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call",
shape_style.arrowup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"COMPRA AGORA",
colorBuy
)
end
if (visibleSell == true) then
plot_shape((close < open and close[1] > open[1] and close < MaFast0 and
MaFast0 < MaSlow0 and MaSlow0 < MaTrend0 and close < open[1] and open >=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"VENDA AGORA",
colorSell
)
end
if(visibleBuy1 == true) then
if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close > open and close[1] < open[1] and close > open[1] and open
<= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call1",
shape_style.arrowup,
shape_size.huge,
colorBuy1,
shape_location.belowbar,
0,
"COMPRA AGORA",
colorBuy1
)
end
end
if (visibleSell1 == true) then
if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close < open and close[1] > open[1] and close < open[1] and open
>= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put1",
shape_style.arrowdown,
shape_size.huge,
colorSell1,
shape_location.abovebar,
0,
"VENDA AGORA",
colorSell1
)
end
end
if(visibleBuy2 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] < close[3] and open[2] < close[2] and open[1] > close[1]
and close[1] > open[2] and open[1] > open[2] and open < close),
"SNIPER-CALL2",
shape_style.arrowup,
shape_size.huge,
colorBuy2,
shape_location.belowbar,
0,
"COMPRA SNIPER",
colorBuy2
)
--end
end
if (visibleSell2 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] > close[3] and open[2] > close[2] and open[1] < close[1]
and close[1] < open[2] and open[1] < open[2] and open > close),
"SNIPER-PUT2",
shape_style.arrowdown,
shape_size.huge,
colorSell2,
shape_location.abovebar,
0,
"VENDA SNIPER",
colorSell2
)
--end
end
if (visibleArea == true) then
fill(MaFast0,MaSlow0,"Area", MaFast0 > MaSlow0 and colorAreaUp or MaFast0 <
MaSlow0 and colorAreaDown )
end
end
MaFast_period = input(3,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(4,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(50,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(4,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(200,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Buy Arrow",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Arrow",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
if (sec ~= nil) and (sec.open_time == open_time) then
Mafast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
Mafast1 = Mafast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
Matrend1 = MaTrend0[1]
plot_shape((close > open and close[1] < open[1] and close > Mafast0 and close >
MaSlow0 and close > MaTrend0 and close > open[1] and open <= close[1] and
abs(close-open) > abs(close[1]-open[1])),
"CALL",
shape_style.arrowup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"COMPRA AGORA",
colorBuy
)
plot_shape((close < open and close[1] > open[1] and close < Mafast0 and close <
MaSlow0 and close < MaTrend0 and close < open[1] and open >= close[1] and
abs(close-open) > abs(close[1]-open[1])),
"PUT",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"VENDA AGORA",
colorSell
)
end
instrument {
name = "EFRAIM FLUXO 02"
}
input_group {
"MACD",
"Slow and fast EMA periods, used in MACD calculation",
fast = input (12, "front.platform.fast period", input.integer, 1, 250),
slow = input (26, "front.platform.fast period", input.integer, 1, 250)
}
input_group {
"front.platform.signal-line",
"Reference signal series period",
signal_period = input (9, "front.period", input.integer, 1, 250)
}
input_group {
"front.newind.emaperiod",
ema_period = input (13, "front.period", input.integer, 1, 250)
}
input_group {
"front.newind.barcolors",
positive = input { default = "#2CAC40", type = input.color },
neutral = input { default = "#C7CAD1", type = input.color },
negative = input { default = "#DB4931", type = input.color },
}
function prev(s,i)
y=abs(round(i))
return s[y]
end
length = input(5, "Numero de Velas")
extTop = input(12, "Extreme Level Top")
extBot = input(-12, "Extreme Level Bottom")
sigTop = input(8, "Significant Level Top")
sigBot = input(-8, "Significant Level Bottom")
fairTop = input(4, "Fair Value Top")
fairBot = input(-4, "Fair Value Bottom")
input_group { "CALL", call_color = input{ default="blue", type = input.color} }
input_group { "PUT", put_color = input{ default="orange", type = input.color} }
fastMA = ema(close, fast)
slowMA = ema(close, slow)
macd = fastMA - slowMA
signal = sma(macd, signal_period)
hist = macd - signal
ema13 = ema (close, ema_period)
local bar_color
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 "green"
plot_candle {
open = vopen,
high = vhigh,
low = vlow,
close = vclose,
candle_color = colorr
}
hline(extTop,"","red")
hline(extBot,"","green")
hline(sigTop,"","red")
hline(sigBot,"","green")
hline(fairTop,"","red")
hline(fairBot,"","green")
if ema13 > ema13 [1] and hist > hist [1] then
bar_color = positive
plot_shape((ema13 > ema13 [1]), "CALL", shape_style.triangleup,
shape_size.auto, call_color, shape_location.belowbar, 0)
elseif ema13 < ema13 [1] and hist < hist [1] then
bar_color = negative
plot_shape((ema13 < ema13 [1]), "PUT", shape_style.triangledown, shape_size.auto,
put_color, shape_location.abovebar, 0)
else
bar_color = neutral
end
plot_candle (open, high, low, close, "ES", bar_color)
instrument {
name = 'EFRAIM FLUXO 01',
short_name = 'SMA-ENG',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(3,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(4,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(7,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(100,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Area Up and Down",
colorAreaUp = input { default = "rgba(34, 140, 140, 0.3)", type = input.color },
colorAreaDown = input { default = "rgba(140, 34, 140, 0.3)", type = input.color },
visibleArea = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "white", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy Outside Bar",
colorBuy2 = input { default = "white", type = input.color },
visibleBuy2 = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Outside Bar",
colorSell2 = input { default = "yellow", type = input.color },
visibleSell2 = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
filter_source = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m",
"30m", "1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
filter_pa_index = input(8,"Candle check resolution",input.string_selection,filter_source)
filter_pa = security (current_ticker_id, filter_source[filter_pa_index])
--print(filter_source[filter_pa_index])
if (sec ~= nil) then
MaFast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
MaFast1 = MaFast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
MaTrend1 = MaTrend0[1]
if(visibleBuy == true) then
plot_shape((close > open and close[1] < open[1] and close > MaFast0 and
MaFast0 > MaSlow0 and MaSlow0 > MaTrend0 and close > open[1] and open <=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"FLUXO",
colorBuy
)
end
if (visibleSell == true) then
plot_shape((close < open and close[1] > open[1] and close < MaFast0 and
MaFast0 < MaSlow0 and MaSlow0 < MaTrend0 and close < open[1] and open >=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"FLUXO",
colorSell
)
end
if(visibleBuy1 == true) then
if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close > open and close[1] < open[1] and close > open[1] and open
<= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call1",
shape_style.triangleup,
shape_size.huge,
colorBuy1,
shape_location.belowbar,
0,
"FLUXO",
colorBuy1
)
end
end
if (visibleSell1 == true) then
if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close < open and close[1] > open[1] and close < open[1] and open
>= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put1",
shape_style.triangledown,
shape_size.huge,
colorSell1,
shape_location.abovebar,
0,
"FLUXO",
colorSell1
)
end
end
if(visibleBuy2 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] < close[3] and open[2] < close[2] and open[1] > close[1]
and close[1] > open[2] and open[1] > open[2] and open < close),
"SNIPER-CALL2",
shape_style.triangleup,
shape_size.huge,
colorBuy2,
shape_location.belowbar,
0,
"FLUXO",
colorBuy2
)
--end
end
if (visibleSell2 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] > close[3] and open[2] > close[2] and open[1] < close[1]
and close[1] < open[2] and open[1] < open[2] and open > close),
"SNIPER-PUT2",
shape_style.triangledown,
shape_size.huge,
colorSell2,
shape_location.abovebar,
0,
"FLUXO",
colorSell2
)
--end
end
if (visibleArea == true) then
fill(MaFast0,MaSlow0,"Area", MaFast0 > MaSlow0 and colorAreaUp or MaFast0 <
MaSlow0 and colorAreaDown )
end
end
MaFast_period = input(3,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(4,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(7,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(200,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Buy Arrow",
colorBuy = input { default = "white", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Arrow",
colorSell = input { default = "yellow", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
if (sec ~= nil) and (sec.open_time == open_time) then
Mafast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
Mafast1 = Mafast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
Matrend1 = MaTrend0[1]
plot_shape((close > open and close[1] < open[1] and close > Mafast0 and close >
MaSlow0 and close > MaTrend0 and close > open[1] and open <= close[1] and
abs(close-open) > abs(close[1]-open[1])),
"CALL",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"FLUXO",
colorBuy
)
plot_shape((close < open and close[1] > open[1] and close < Mafast0 and close <
MaSlow0 and close < MaTrend0 and close < open[1] and open >= close[1] and
abs(close-open) > abs(close[1]-open[1])),
"PUT",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"FLUXO",
colorSell
)
end
instrument {overlay = true,
name = 'TARGET LA MAGIA',
short_name = 'TARGET LA MAGIA',
icon="indicators:ADX"}
input_group { "OTC - UP COLOR", call_color = input { default="#17f702", type =
input.color } }
input_group { "OTC - DOWN COLOR", put_color = input { default="#fc0303", type =
input.color } }
if ((close > close[2]) and (close[2] > open[2]) and (close[4] > close[8])) then
plot_shape(1,
'Bull_OTC',
shape_style.triangleup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"ARRIBA",
"#fcfc03"
)
else
if ((close < close[2]) and (close[2] < open[2]) and (close[4] < close[8])) then
plot_shape(1,
'Bear_OTC',
shape_style.triangledown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"ABAJO",
"#fcfc03"
)
end
end
instrument { name = "TARGET LA MAGIA", overlay = true, icon="indicators:ATR" }
period = input (18, "front.period", input.integer, 1 )
multiplier = input (2, "front.newind.multiplier", input.double, 1 )
high_low = input (false, "HighLow", input.boolean)
input_group {
"front.newind.colors",
up = input { default = "#1cfc03", type = input.color },
down = input { default = "#fc0303", type = input.color },
width = input { default = 4, type = input.line_width }
}
atr = rma (tr, period) * multiplier
h = iff (high_low, high, close)
l = iff (high_low, low, close)
atr_ts = iff(close > nz(atr_ts[1], 0) and close[1] > nz(atr_ts[1], 0), max(nz(atr_ts[1]), h -
atr),
iff(close < nz(atr_ts[1], 0) and close[1] < nz(atr_ts[1], 0), min(nz(atr_ts[1]), l + atr),
iff(close > nz(atr_ts[1], 0), h - atr, l + atr)))
pos = iff(close[1] < nz(atr_ts[1], 0) and close > nz(atr_ts[1], 0), 1,
iff(close[1] > nz(atr_ts[1], 0) and close < nz(atr_ts[1], 0), -1, nz(pos[1], 0)))
plot (atr_ts, "", pos < 0 and down or up , width)
--[[
short = (pos[1] != pos[0]) and (pos[0] == -1) ? true : false
long = (pos[1] != pos[0]) and (pos[0] == 1) ? true : false
plotshape(long, style=shape.triangleup, location=location.belowbar, color=green,
size=size.tiny)
plotshape(short, style=shape.triangledown, location=location.abovebar, color=red,
size=size.tiny)
]]
instrument { name = "Supertrend", overlay = true }
period = input (7, "front.period", input.integer, 1)
multiplier = input (3, "front.newind.multiplier", input.double, 0.01, 100, 0.01)
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "#25E154", type = input.color },
down_color = input { default = "#FF6C58", type = input.color },
width = input { default = 1, type = input.line_width }
}
offset = rma (tr, period) * multiplier
up = hl2 - offset
down = hl2 + offset
trend_up = iff (not na(trend_up) and close [1] > trend_up [1], max (up, trend_up [1]),
up)
trend_down = iff (not na(trend_down) and close [1] < trend_down [1], min (down,
trend_down [1]), down)
trend = iff (close > trend_down [1], true, iff (close < trend_up [1], false, nz(trend [1],
true)))
tsl = iff (trend, trend_up, trend_down)
plot (tsl, "Supertrend", trend () and up_color or down_color, width)
-- Indicator using Keltner Channel and Stochastic for Built-in IQ Option Script
instrument { name = "KC Suman", overlay = true }
-- Input Parameters
period = input(20, "Keltner Channel Period", input.integer, 1)
shift = input(2.5, "Keltner Channel Shift", input.double, 0.01, 300, 0.01)
fn = input(averages.ema, "Smoothing Function", input.string_selection, averages.titles)
source = input(1, "Source Type", input.string_selection, inputs.titles)
-- Line Visibility and Style Settings
input_group {
"Keltner Channel - Lines",
upper_line_visible = input { default = true, type = input.plot_visibility },
upper_line_color = input { default = "#21B190", type = input.color },
upper_line_width = input { default = 1, type = input.line_width },
middle_line_visible = input { default = true, type = input.plot_visibility },
middle_line_color = input { default = rgba(33, 177, 144, 0.6), type = input.color },
middle_line_width = input { default = 1, type = input.line_width },
lower_line_visible = input { default = true, type = input.plot_visibility },
lower_line_color = input { default = "#21B190", type = input.color },
lower_line_width = input { default = 1, type = input.line_width }
}
input_group {
"Keltner Channel Fill",
fill_visible = input { default = true, type = input.plot_visibility },
fill_color = input { default = rgba(33, 177, 144, 0.08), type = input.color }
}
-- Stochastic Inputs
input_group {
"Stochastic %K",
k_period = input(5, "Period", input.integer, 1),
smooth = input(3, "Smoothing", input.integer, 1)
}
input_group {
"Stochastic %D",
d_period = input(3, "Period", input.integer, 1)
}
-- Keltner Channel Calculation
local averageFunction = averages[fn]
local sourceSeries = inputs[source]
local hlc3_avg = hlc3
middle = averageFunction(hlc3_avg, period)
offset = rma(tr, period) * shift
upper_band = middle + offset
lower_band = middle - offset
-- Stochastic Calculation
k = sma(stochastic(sourceSeries, k_period), smooth) * 100
d = sma(k, d_period)
-- Signal Logic
stochUpperValue = 90
stochLowerValue = 10
shortSignal = k >= stochUpperValue and d >= stochUpperValue and upper_band <=
close
longSignal = k <= stochLowerValue and d <= stochLowerValue and lower_band >=
close
-- Plot Signals
plot_shape(shortSignal, "Short Signal", shape_style.triangledown, shape_size.large,
"red", shape_location.abovebar)
plot_shape(longSignal, "Long Signal", shape_style.triangleup, shape_size.large, "green",
shape_location.belowbar)
-- Plot Keltner Channel
if fill_visible then
fill { first = upper_band, second = lower_band, color = fill_color }
end
if upper_line_visible then
plot(upper_band, "Upper Band", upper_line_color, upper_line_width)
end
if middle_line_visible then
plot(middle, "Middle Line", middle_line_color, middle_line_width)
end
if lower_line_visible then
plot(lower_band, "Lower Band", lower_line_color, lower_line_width)
end
instrument { name = "Vdubs Mr Mani", overlay = true, icon="indicators:ATR" }
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "#58FF44", type = input.color },
down_color = input { default = "#57A1D0", type = input.color },
width = input { default = 1, type = input.line_width }
}
fn = input (averages.ema, "front.newind.average", input.string_selection,
averages.titles)
local avg = averages [fn]
--ema signal 1
src0 = close
len0 = 13
ema0 = ema(src0, len0)
rising1 = ema0[0] > ema0[1] and ema0[1] > ema0[2]
falling1 = ema0[2] > ema0[1] and ema0[1] > ema0[0]
--
direction = iff(rising1, 1,iff(falling1, -1, 0 ))
plot_color = iff(direction > 0 , up_color,iff( direction < 0, down_color , na))
plot(ema0, 'EMA', plot_color , width, -1, style.solid_line, na_mode.continue)
--ema signal 2
src02 = close
len02 = 21
ema02 = ema(src02, len02)
rising2 = ema02[0] > ema02[1] and ema02[1] > ema02[2]
falling2 = ema02[2] > ema02[1] and ema02[1] > ema02[0]
direction2 = iff(rising2, 1,iff(falling2, -1, 0 ))
plot_color2 = iff(direction2 > 0 , up_color,iff( direction2 < 0, down_color , na))
plot(ema02, 'EMA Signal 2', plot_color2 , width, -1, style.solid_line, na_mode.continue)
--ema signal out
fast = 5
slow = 8
avg0 = (low + close)/2
avg1 = (high + close)/2
vh1 = ema(highest(avg0, fast), 5)
vl1 = ema(lowest(avg1, slow), 8)
--print(vl1)
e_ema1 = ema(close, 1)
e_ema2 = ema(e_ema1, 1)
e_ema3 = ema(e_ema2, 1)
tema = 1 * (e_ema1 - e_ema2) + e_ema3
--print(tema)
e_e1 = ema(close, 8)
e_e2 = ema(e_e1, 5)
dema = 2 * e_e1 - e_e2
--print(dema)
signal = iff(tema > dema , max (vh1, vl1) , min (vh1, vl1))
--print(signal)
is_call = tema > dema and signal > low and (signal-signal[1] > signal[1]-signal[2])
is_put = tema < dema and signal < high and (signal[1]-signal > signal[2]-signal[1])
period = 30
plot_shape(iff(is_call and direction > 0 , 1, na), "long", shape_style.triangleup,
shape_size.large, 'green', shape_location.belowbar,0,'BUY', 'green')
plot_shape(iff(is_put and direction < 0, 1, na) , "short", shape_style.triangledown,
shape_size.large, 'red', shape_location.abovebar,0,'SELL', 'red')
plot (hma (src0, period), "HMA", '#FF00FF', 2)
--
--vh1 = ema(highest(avg(low, close), fast), 5)
--vl1 = ema(lowest(avg(high, close), slow), 8)
instrument{name="PriceAction2023@EfraimTraders",
short_name="PriceAction2023@Efraim traders ",
icon="https://efraimtraders.com/wp-content/uploads/2022/03/Touro.png", overlay=
True}
Exibir= input ("EfraimTraders")
input_group {
"DOWNLOAD FREE",
Chave_de_Ativacao = input {default = "NAO VENDA ", type = input.string}
}
hline(lowest(60)[1],"LL60",color,1)
Exibir= input ("NAO VENDA")
MaFast_period = input(7,"Ma Fast period",input.integer,1,100,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(25,"Ma Slow period",input.integer,1,100,1)
Signal_period = input(5,"Signal period",input.integer,1,100,1)
input_group {
"Call",
colorBuy = input { default = "", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Put",
colorSell = input { default = "", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = ema(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = ema(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"Call",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"Call",
"white"
)
plot_shape(
(sellCondition),
"Put",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"Put",
"red"
)
instrument{name="PriceAction2023raimTraders",
short_name="PriceAction2023@Efraim traders ",
icon="https://efraimtraders.com/wp-content/uploads/2022/03/Touro.png", overlay=
True}
method_id = input (1, "", input.string_selection, { "" })
local function a()local
b=make_series()local c=high[2]
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="yellow",type=input.color},
width=input{default=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)
input_group {
"KEY CHAVE",
Chave_de_Ativacao = input {default = "@RichardDrigues", type = input.string}
}
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)
instrument { name = "TELEGRAM @COMUNIDADGRATIS", icon="jpg", overlay = true }
---- pagina web: https://t.me/COMUNIDADGRATIS -----
---- canal de TELEGRAM con seales GRATIS: https://t.me/COMUNIDADGRATIS -----
---(VERSAO GRATUITA, muito assertivo 2025 by:TELEGRAM @COMUNIDADGRATIS)---
---(VERSION GRATUITA, muy asertivo 2025 por: TELEGRAM @COMUNIDADGRATIS)---
---(FREE VERSION, very assertive 2024 by: TELEGRAM @COMUNIDADGRATIS)---
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
input_group {
"Compra",
comprar_color = input {default = "green", type = input.color}
}
input_group {
"Periodo Max/Min",
doch_time = input {default = "11", type = input.string}
}
input_group {
"Periodo da Micro Tendencia",
emaa_per = input {default = "11", type = input.string}
}
input_group {
"Periodo da Macro Tendencia",
emab_per = input {default = "100", type = input.string}
}
input_group {
"Media Rapida",
emac_per = input {default = "3", type = input.string}
}
input_group {
"Media Lenta",
emad_per = input {default = "13", type = input.string}
}
input_group {
"Venda",
vender_color = input {default = "#fcf805", type = input.color}
}
input_group {
"Candles",
positivo = input { default = "#0bd104",type = input.color },
neutro = input { default = "#2f3633", type = input.color },
negativo = input { default = "#f70202", type = input.color },
}
--PARAMETROS
EMAA = ema(close,emaa_per)
EMAB = ema(close,emab_per)
EMAC = ema(hlc3,emac_per)
EMAD = ema(hlc3,emad_per)
upper = highest (high, doch_time)
lower = lowest (low, doch_time)
--CALCULOS
TA = ((close > close[1]) and (close > EMAA) and (EMAA > EMAA[1]))
TB = ((close < close[1]) and (close < EMAA) and (EMAA < EMAA[1]))
ENC = ((EMAC[1] < EMAD[1]) and (EMAC > EMAD))
ENV = ((EMAC[1] > EMAD[1]) and (EMAC < EMAD))
sec = security (current_ticker_id, "1m")
if sec then
local bar_color
if (TA == true) then
bar_color = positivo
elseif (TB == true) then
bar_color = negativo
else
bar_color = neutro
end
plot_candle (open, high, low, close, "ES", bar_color)
plot (upper, "Resistencia", upline_color)
plot (lower, "Suporte",lowline_color)
end
input_group { "CALL - UP COLOR", call_color = input { default="#fcfc03", type =
input.color } }
input_group { "PUT - DOWN COLOR", put_color = input { default="#fcfc03", type =
input.color } }
if ((close[1] < open[1]) and (close > open) and (close > high[1]) and close[2] >= open)
then
plot_shape(1,
'Bull_Engulfing',
shape_style.circle,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"Alert",
"A"
)
else
if ((close[1] > open[1]) and (close < open) and (close < low[1]) and close[2] <=
open) then
plot_shape(1,
'Bear_Engulfing',
shape_style.circle,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"Alert",
"A"
)
end
end
input_group { "UP - UP COLOR", call_color = input { default="#0bd104", type =
input.color } }
input_group { "DOWN - DOWN COLOR", put_color = input { default="#f70202", type =
input.color } }
if ((close > close[1]) and (close[1] > open[2]) and (close[3] > close[2])) then
plot_shape(1,
'Bull_UP',
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"COMPRA",
"#fcfc03"
)
else
if ((close < close[1]) and (close[1] < open[2]) and (close[3] < close[2])) then
plot_shape(1,
'Bear_DOWN',
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"VENTA",
"#fcfc03"
)
end
end
method_id = input (2, "Type", input.string_selection, { "M5" })
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "#b59704", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "#b59704", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --IQ
OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$%&()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
end
percentage = input (3, "Percentage", input.double, 0.01, 100, 1.0) / 100
period = 3
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "#02f7aa", type = input.color },
down_color = input { default = "#f77902", type = input.color },
width = input { default = 1, type = input.line_width }
}
local reference = make_series ()
reference:set(nz(reference[1], high))
local is_direction_up = make_series ()
is_direction_up:set(nz(is_direction_up[1], true))
local htrack = make_series ()
local ltrack = make_series ()
local pivot = make_series ()
reverse_range = reference * percentage / 100
if get_value (is_direction_up) then
htrack:set (max(high, nz(htrack[1], high)))
if close < htrack[1] - reverse_range then
pivot:set (htrack)
is_direction_up:set (false)
reference:set(htrack)
end
else
ltrack:set (min(low, nz(ltrack[1], low)))
if close > ltrack[1] + reverse_range then
pivot:set (ltrack)
is_direction_up:set(true)
reference:set (ltrack)
end
end
color = is_direction_up() and up_color or down_color
plot(pivot, 'ZZ', color, width, -1, style.solid_line, na_mode.continue)
instrument { name = "CHATGPT TURBO", icon="", overlay = true }
method_id = input(1, "Type", input.string_selection, { "ProBinaryBot" })
MaFast_period = input(10, "Ma Fast period", input.integer, 1, 1000, 1)
MaSlow_period = input(34, "Ma Slow period", input.integer, 1, 1000, 1)
Signal_period = input(5, "Signal period", input.integer, 1, 1000, 1)
RSI_period = input(14, "RSI period", input.integer, 1, 100, 1)
MACD_fast = input(12, "MACD Fast period", input.integer, 1, 100, 1)
MACD_slow = input(26, "MACD Slow period", input.integer, 1, 100, 1)
MACD_signal = input(9, "MACD Signal period", input.integer, 1, 100, 1)
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 }
}
local titleValue = close
emaFast = ema(titleValue, MaFast_period)
emaSlow = ema(titleValue, MaSlow_period)
buffer1 = emaFast - emaSlow
buffer2 = wma(buffer1, Signal_period)
rsiValue = rsi(close, RSI_period)
macdLine = ema(close, MACD_fast) - ema(close, MACD_slow)
signalLine = ema(macdLine, MACD_signal)
macdHist = macdLine - signalLine
buyCondition = (buffer1 > buffer2 and buffer1[1] <= buffer2[1] and rsiValue > 30 and
macdHist > 0)
sellCondition = (buffer1 < buffer2 and buffer1[1] >= buffer2[1] and rsiValue < 70 and
macdHist < 0)
plot_shape(
buyCondition,
"Buy Next",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"Buy Next",
"white"
)
plot_shape(
sellCondition,
"Sell Next",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"Sell Next",
"white"
)
instrument { name = "CHAT GPT ", icon="", overlay = true }
method_id = input (1, "Type", input.string_selection, { "ProBinaryBot" })
instrument {
name = 'CHAT GPT',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
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 }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"B",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"B",
"white"
)
plot_shape(
(sellCondition),
"S",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"S",
"white"
)
instrument {overlay = true,
name = 'Script Bandera',
overlay= true }
input_group {
"Compra",
comprar_color = input {default = "green", type = input.color}
}
input_group {
"Periodo Max/Min",
doch_time = input {default = "30", type = input.string}
}
input_group {
"Periodo da Micro Tendencia",
emaa_per = input {default = "21", type = input.string}
}
input_group {
"Periodo da Macro Tendencia",
emab_per = input {default = "200", type = input.string}
}
input_group {
"Media Rapida",
emac_per = input {default = "7", type = input.string}
}
input_group {
"Media Lenta",
emad_per = input {default = "17", type = input.string}
}
input_group {
"Venda",
vender_color = input {default = "red", type = input.color}
}
input_group {
"Resistencia",
upline_color = input {default = "red", type = input.color}
}
input_group {
"Suporte",
lowline_color = input {default = "green", type = input.color}
}
input_group {
"Candles",
positivo = input { default = "green",type = input.color },
neutro = input { default = "white", type = input.color },
negativo = input { default = "red", type = input.color },
}
--PARAMETROS
EMAA = ema(close,emaa_per)
EMAB = ema(close,emab_per)
EMAC = ema(hlc3,emac_per)
EMAD = ema(hlc3,emad_per)
upper = highest (high, doch_time)
lower = lowest (low, doch_time)
--CALCULOS
TA = ((close > close[1]) and (close > EMAA) and (EMAA > EMAA[1]))
TB = ((close < close[1]) and (close < EMAA) and (EMAA < EMAA[1]))
ENC = ((EMAC[1] < EMAD[1]) and (EMAC > EMAD))
ENV = ((EMAC[1] > EMAD[1]) and (EMAC < EMAD))
sec = security (current_ticker_id, "1m")
if sec then
local bar_color
if (TA == true) then
bar_color = positivo
elseif (TB == true) then
bar_color = negativo
else
bar_color = neutro
end
plot_candle (open, high, low, close, "ES", bar_color)
plot (upper, "Resistencia", upline_color)
plot (lower, "Suporte",lowline_color)
--NEGOCIAO
plot_shape((ENV),
"VENDER",
shape_style.flag,
shape_size.huge,
vender_color,
shape_location.abovebar,
0,
"PUT",
vender_color)
plot_shape((ENC),
"COMPRAR",
shape_style.flag,
shape_size.huge,
comprar_color,
shape_location.belowbar,
0,
"CALL",
comprar_color)
end
instrument {overlay = true,
name = 'SuperTrend @EfraimTraders',
overlay= true }
input_group {
"Periodo Max/Min",
doch_time = input {default = "30", type = input.string}
}
input_group {
"Periodo da Micro Tendencia",
emaa_per = input {default = "21", type = input.string}
}
input_group {
"Periodo da Macro Tendencia",
emab_per = input {default = "200", type = input.string}
}
input_group {
"Media Rapida",
emac_per = input {default = "7", type = input.string}
}
input_group {
"Media Lenta",
emad_per = input {default = "17", type = input.string}
}
input_group {
"Candles",
positivo = input { default = "#1aed02",type = input.color },
neutro = input { default = "white", type = input.color },
negativo = input { default = "#fa0b02", type = input.color },
}
--PARAMETROS
EMAA = ema(close,emaa_per)
EMAB = ema(close,emab_per)
EMAC = ema(hlc3,emac_per)
EMAD = ema(hlc3,emad_per)
upper = highest (high, doch_time)
lower = lowest (low, doch_time)
--CALCULOS
TA = ((close > close[1]) and (close > EMAA) and (EMAA > EMAA[1]))
TB = ((close < close[1]) and (close < EMAA) and (EMAA < EMAA[1]))
ENC = ((EMAC[1] < EMAD[1]) and (EMAC > EMAD))
ENV = ((EMAC[1] > EMAD[1]) and (EMAC < EMAD))
sec = security (current_ticker_id, "1m")
if sec then
local bar_color
if (TA == true) then
bar_color = positivo
elseif (TB == true) then
bar_color = negativo
else
bar_color = neutro
end
plot_candle (open, high, low, close, "ES", bar_color)
plot (upper, "Resistencia", upline_color)
plot (lower, "Suporte",lowline_color)
end
instrument {
name = 'SuperTrend @EfraimTraders',
short_name = 'SuperTrend @EfraimTraders',
icon = 'indicators:ADX',
overlay = true
}
MaFast_period = input(20,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(2,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(8,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
Signal_period = input(6,"Signal period",input.integer,1,1000,1)
MaTrend_period = input(200,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Area Up and Down",
colorAreaUp = input { default = "rgba(220, 20, 60, 0.3)", type = input.color },
colorAreaDown = input { default = "rgba(34, 139, 34, 0.3)", type = input.color },
visibleArea = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Fast Line",
colorFast = input { default = "#00fcdf", type = input.color },
widthFast = input { default = 1, type = input.line_width},
visibleFast = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "#00fcdf", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = false, type = input.plot_visibility }
}
input_group {
"Buy Klen",
backgroundcolorbuy = input { default = "lime", type = input.color },
visibleBuy2 = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Klen",
backgroundcolorsell = input { default = "red", type = input.color },
visibleSell2 = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgSignal = averages[Signal_period]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
filter_source = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m",
"30m", "1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
filter_pa_index = input(8,"Candle check resolution",input.string_selection,filter_source)
filter_pa = security (current_ticker_id, filter_source[filter_pa_index])
--print(filter_source[filter_pa_index])
emaFast = avgFast(titleFast,MaFast_period)
emaSlow = avgSlow(titleSlow,MaSlow_period)
macd = emaFast - emaSlow
signal = avgSignal(macd,Signal_period)
--plot(macd,"macd", "Blue", 1)
--plot(signal,"signal", "Orange", 1)
histo = macd - signal
--rect {
--first = 0,
--second = histo,
--color = histo >= histo[1] and "LimeGreen" or "Orange",
--width = 0.5
--}
--hline(0,"Zero Macd", "rgba(255, 20, 147, 0.4)",1)
if (sec ~= nil) then
MaFast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
MaFast1 = MaFast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
MaTrend1 = MaTrend0[1]
if(visibleBuy2 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] < close[3] and open[2] < close[2] and open[1] > close[1]
and close[1] > open[2] and open[1] > open[2] and open < close),
"ACIMA",
shape_style.square,
shape_size.block,
backgroundcolorbuy,
shape_location.belowbar,
0,
"Compra Agora",
"#e9e9e7"
)
--end
end
if (visibleSell2 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] > close[3] and open[2] > close[2] and open[1] < close[1]
and close[1] < open[2] and open[1] < open[2] and open > close),
"ABAIXO",
shape_style.square,
shape_size.block,
backgroundcolorsell,
shape_location.abovebar,
0,
"Venda Agora",
"#e9e9e7"
)
--end
end
if (visibleArea == true) then
fill(MaFast0,MaSlow0,"Area", MaFast0 > MaSlow0 and colorAreaUp or MaFast0 <
MaSlow0 and colorAreaDown )
end
end
instrument { name = 'ImpuseSystem @efraimTraders',
overlay = true
}
percentage = input (1, "Percentage", input.double, 1, 100, 3) / 100
period = 5
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "", type = input.color },
width = input { default = 1, type = input.line_width },
visiblepercentage = input { default = false, type = input.plot_visibility }
}
input_group {
"front.ind.dpo.generalline",
down_color = input { default = "", type = input.color },
width = input { default = 1, type = input.line_width },
visiblepercentage = input { default = false, type = input.plot_visibility }
}
input_group {"CALL", call_color= input{ default= "rgba(0, 250, 154, 0.80)", type=
input.color}}
input_group {"PUT", put_color= input{ default= "rgba(220, 20, 60, 0.8)", type=
input.color}}
local reference = make_series ()
reference:set(nz(reference[1], high))
local is_direction_up = make_series ()
is_direction_up:set(nz(is_direction_up[1], true))
local htrack = make_series ()
local ltrack = make_series ()
local pivot = make_series ()
reverse_range = reference * percentage / 100
if get_value (is_direction_up) then
htrack:set (max(high, nz(htrack[1], high)))
if close < htrack[1] - reverse_range then
pivot:set (htrack)
is_direction_up:set (false)
reference:set(htrack)
end
else
ltrack:set (min(low, nz(ltrack[1], low)))
if close > ltrack[1] + reverse_range then
pivot:set (ltrack)
is_direction_up:set(true)
reference:set (ltrack)
end
end
color = is_direction_up() and up_color or down_color
plot(pivot, 'ZZ', color, width, -1, style.solid_line, na_mode.continue)
smaa= sma(close, '1')
upper_high= smaa + (stdev(close,10) *1 )
lower_high= smaa - (stdev(close,10) *1 )
emaa= ema(close, '')
if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_high, "UPPER_HIGH", sup_color)
plot(lower_high, "LOWER_HIGH", inf_color)
end
plot_shape((high >= upper_high and emaa > upper_high),
"PUT",
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"CRUZE",
put_color)
plot_shape((low <= lower_high and emaa < lower_high),
"CALL",
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"CRUZE",
call_color)
instrument { name = 'ImpuseSystem 2022 @efraimTraders',icon =
'https://cdn.pixabay.com/photo/2015/10/01/17/17/car-967387__340.png', overlay = true
}
exibir_tracamento = input ( 1, "Desea exibir?", input.string_selection, {"SIM","NAO"})
input_group { "SMAA", smaa_color = input{ default = "orange", type = input.color }}
input_group { "SMAB", smab_color = input{ default = "rgba(0, 0, 255, 0.8)", type =
input.color }}
sec = security(current_ticker_id, "1m")
smaa = ema(close, '10')
smab = ema(close, '20')
smaao = ema(open, '10')
smabo = ema(open, '20')
plot(smaa, "EMA", smaa_color)
plot(smab, "EMA", smab_color)
emaa = ema(close, '20')
period = input (12, "front.period", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
fn = input (1, "front.newind.average", input.string_selection, averages.titles)
local sourceSeries = inputs [source]
local averageFunction = averages [fn]
mean = averageFunction (sourceSeries, period)
mad = sourceSeries - mean
rect {
first = 0,
second = mad,
color = mad >= mad [1] and up_color or down_color,
width = 0.4
}
if
( mad <= 0 and ( mad[1] > mad) and (smaa < smab) and (smaao > smabo) and close
<= emaa ) then
plot_shape (1,
"Down",
shape_style.arrowdown,
shape_size.auto,
down_color,
shape_location.abovebar,
0,
" Down ",
1)
end
if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao
< smabo)
then
plot_shape (1 ,
"Up",
shape_style.arrowup,
shape_size.auto,
up_color,
shape_location.belowbar,
0,
"Up",
1)
end
instrument { name = 'ImpuseSystem 2022 @efraimTraders',
icon = 'https://cdn.pixabay.com/photo/2015/10/01/17/17/car-967387__340.png',
overlay = true
}
percentage = input (1, "Percentage", input.double, 1, 100, 3) / 100
period = 5
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "", type = input.color },
width = input { default = 1, type = input.line_width },
visiblepercentage = input { default = false, type = input.plot_visibility }
}
input_group {
"front.ind.dpo.generalline",
down_color = input { default = "", type = input.color },
width = input { default = 1, type = input.line_width },
visiblepercentage = input { default = false, type = input.plot_visibility }
}
input_group {"CALL", call_color= input{ default= "rgba(0, 250, 154, 0.80)", type=
input.color}}
input_group {"PUT", put_color= input{ default= "rgba(220, 20, 60, 0.8)", type=
input.color}}
local reference = make_series ()
reference:set(nz(reference[1], high))
local is_direction_up = make_series ()
is_direction_up:set(nz(is_direction_up[1], true))
local htrack = make_series ()
local ltrack = make_series ()
local pivot = make_series ()
reverse_range = reference * percentage / 100
if get_value (is_direction_up) then
htrack:set (max(high, nz(htrack[1], high)))
if close < htrack[1] - reverse_range then
pivot:set (htrack)
is_direction_up:set (false)
reference:set(htrack)
end
else
ltrack:set (min(low, nz(ltrack[1], low)))
if close > ltrack[1] + reverse_range then
pivot:set (ltrack)
is_direction_up:set(true)
reference:set (ltrack)
end
end
color = is_direction_up() and up_color or down_color
plot(pivot, 'ZZ', color, width, -1, style.solid_line, na_mode.continue)
smaa= sma(close, '1')
upper_high= smaa + (stdev(close,10) *1 )
lower_high= smaa - (stdev(close,10) *1 )
emaa= ema(close, '')
if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_high, "UPPER_HIGH", sup_color)
plot(lower_high, "LOWER_HIGH", inf_color)
end
plot_shape((high >= upper_high and emaa > upper_high),
"PUT",
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"VENDA",
put_color)
plot_shape((low <= lower_high and emaa < lower_high),
"CALL",
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"COMPRA",
call_color)
instrument { name = 'ImpuseSystem 2022
@efraimTraders',icon='https://cdn.pixabay.com/photo/2015/10/01/17/17/car-
967387__340.png', overlay = true
}
exibir_tracamento = input ( 1, "Desea exibir?", input.string_selection, {"SI","No"})
input_group { "SMAA", smaa_color = input{ default = "yellow", type = input.color }}
input_group { "SMAB", smab_color = input{ default = "rgba(0, 0, 255, 0.8)", type =
input.color }}
sec = security(current_ticker_id, "1m")
smaa = ema(close, '10')
smab = ema(close, '20')
smaao = ema(open, '10')
smabo = ema(open, '20')
plot(smaa, "EMA", smaa_color)
plot(smab, "EMA", smab_color)
emaa = ema(close, '20')
period = input (12, "front.period", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
fn = input (1, "front.newind.average", input.string_selection, averages.titles)
local sourceSeries = inputs [source]
local averageFunction = averages [fn]
mean = averageFunction (sourceSeries, period)
mad = sourceSeries - mean
rect {
first = 0,
second = mad,
color = mad >= mad [1] and up_color or down_color,
width = 0.4
}
if
( mad <= 0 and ( mad[1] > mad) and (smaa < smab) and (smaao > smabo) and close
<= emaa ) then
plot_shape (1,
"Down",
shape_style.arrowdown,
shape_size.auto,
down_color,
shape_location.abovebar,
0,
" Down ",
1)
end
if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao
< smabo)
then
plot_shape (1 ,
"Up",
shape_style.arrowup,
shape_size.auto,
up_color,
shape_location.belowbar,
0,
"Up",
1)
end
instrument { name = 'ImpuseSystem 2022 @efraimTraders',
icon = 'https://cdn.pixabay.com/photo/2015/10/01/17/17/car-967387__340.png',
overlay = true
}
percentage = input (1, "Percentage", input.double, 1, 100, 3) / 100
period = 5
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "", type = input.color },
width = input { default = 1, type = input.line_width },
visiblepercentage = input { default = false, type = input.plot_visibility }
}
input_group {
"front.ind.dpo.generalline",
down_color = input { default = "", type = input.color },
width = input { default = 1, type = input.line_width },
visiblepercentage = input { default = false, type = input.plot_visibility }
}
input_group {"CALL", call_color= input{ default= "rgba(0, 250, 154, 0.80)", type=
input.color}}
input_group {"PUT", put_color= input{ default= "rgba(220, 20, 60, 0.8)", type=
input.color}}
local reference = make_series ()
reference:set(nz(reference[1], high))
local is_direction_up = make_series ()
is_direction_up:set(nz(is_direction_up[1], true))
local htrack = make_series ()
local ltrack = make_series ()
local pivot = make_series ()
reverse_range = reference * percentage / 100
if get_value (is_direction_up) then
htrack:set (max(high, nz(htrack[1], high)))
if close < htrack[1] - reverse_range then
pivot:set (htrack)
is_direction_up:set (false)
reference:set(htrack)
end
else
ltrack:set (min(low, nz(ltrack[1], low)))
if close > ltrack[1] + reverse_range then
pivot:set (ltrack)
is_direction_up:set(true)
reference:set (ltrack)
end
end
color = is_direction_up() and up_color or down_color
plot(pivot, 'ZZ', color, width, -1, style.solid_line, na_mode.continue)
smaa= sma(close, '1')
upper_high= smaa + (stdev(close,10) *1 )
lower_high= smaa - (stdev(close,10) *1 )
emaa= ema(close, '')
if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_high, "UPPER_HIGH", sup_color)
plot(lower_high, "LOWER_HIGH", inf_color)
end
plot_shape((high >= upper_high and emaa > upper_high),
"PUT",
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"VENDA",
put_color)
plot_shape((low <= lower_high and emaa < lower_high),
"CALL",
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"COMPRA",
call_color)
instrument { name = 'ImpuseSystem 2022
@efraimTraders',icon='https://cdn.pixabay.com/photo/2015/10/01/17/17/car-
967387__340.png', overlay = true
}
exibir_tracamento = input ( 1, "Desea exibir?", input.string_selection, {"SI","No"})
input_group { "SMAA", smaa_color = input{ default = "orange", type = input.color }}
input_group { "SMAB", smab_color = input{ default = "rgba(0, 0, 255, 0.8)", type =
input.color }}
sec = security(current_ticker_id, "1m")
smaa = ema(close, '10')
smab = ema(close, '20')
smaao = ema(open, '10')
smabo = ema(open, '20')
plot(smaa, "EMA", smaa_color)
plot(smab, "EMA", smab_color)
emaa = ema(close, '20')
period = input (12, "front.period", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
fn = input (1, "front.newind.average", input.string_selection, averages.titles)
local sourceSeries = inputs [source]
local averageFunction = averages [fn]
mean = averageFunction (sourceSeries, period)
mad = sourceSeries - mean
rect {
first = 0,
second = mad,
color = mad >= mad [1] and up_color or down_color,
width = 0.4
}
if
( mad <= 0 and ( mad[1] > mad) and (smaa < smab) and (smaao > smabo) and close
<= emaa ) then
plot_shape (1,
"Down",
shape_style.arrowdown,
shape_size.auto,
down_color,
shape_location.abovebar,
0,
" Down ",
1)
end
if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao
< smabo)
then
plot_shape (1 ,
"Up",
shape_style.arrowup,
shape_size.auto,
up_color,
shape_location.belowbar,
0,
"Up",
1)
end
instrument { name = 'ImpuseSystem 2022 @efraimTraders',
icon = 'https://cdn.pixabay.com/photo/2015/10/01/17/17/car-967387__340.png',
overlay = true
}
percentage = input (1, "Percentage", input.double, 1, 100, 3) / 100
period = 5
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "", type = input.color },
width = input { default = 1, type = input.line_width },
visiblepercentage = input { default = false, type = input.plot_visibility }
}
input_group {
"front.ind.dpo.generalline",
down_color = input { default = "", type = input.color },
width = input { default = 1, type = input.line_width },
visiblepercentage = input { default = false, type = input.plot_visibility }
}
input_group {"CALL", call_color= input{ default= "rgba(0, 250, 154, 0.80)", type=
input.color}}
input_group {"PUT", put_color= input{ default= "rgba(220, 20, 60, 0.8)", type=
input.color}}
local reference = make_series ()
reference:set(nz(reference[1], high))
local is_direction_up = make_series ()
is_direction_up:set(nz(is_direction_up[1], true))
local htrack = make_series ()
local ltrack = make_series ()
local pivot = make_series ()
reverse_range = reference * percentage / 100
if get_value (is_direction_up) then
htrack:set (max(high, nz(htrack[1], high)))
if close < htrack[1] - reverse_range then
pivot:set (htrack)
is_direction_up:set (false)
reference:set(htrack)
end
else
ltrack:set (min(low, nz(ltrack[1], low)))
if close > ltrack[1] + reverse_range then
pivot:set (ltrack)
is_direction_up:set(true)
reference:set (ltrack)
end
end
color = is_direction_up() and up_color or down_color
plot(pivot, 'ZZ', color, width, -1, style.solid_line, na_mode.continue)
smaa= sma(close, '1')
upper_high= smaa + (stdev(close,10) *1 )
lower_high= smaa - (stdev(close,10) *1 )
emaa= ema(close, '')
if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_high, "UPPER_HIGH", sup_color)
plot(lower_high, "LOWER_HIGH", inf_color)
end
plot_shape((high >= upper_high and emaa > upper_high),
"PUT",
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"VENDA",
put_color)
plot_shape((low <= lower_high and emaa < lower_high),
"CALL",
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"COMPRA",
call_color)
instrument { name = 'ImpuseSystem 2022
@efraimTraders',icon='https://cdn.pixabay.com/photo/2015/10/01/17/17/car-
967387__340.png', overlay = true
}
exibir_tracamento = input ( 1, "Desea exibir?", input.string_selection, {"SI","No"})
input_group { "SMAA", smaa_color = input{ default = "orange", type = input.color }}
input_group { "SMAB", smab_color = input{ default = "rgba(0, 0, 255, 0.8)", type =
input.color }}
sec = security(current_ticker_id, "1m")
smaa = ema(close, '10')
smab = ema(close, '20')
smaao = ema(open, '10')
smabo = ema(open, '20')
plot(smaa, "EMA", smaa_color)
plot(smab, "EMA", smab_color)
emaa = ema(close, '20')
period = input (12, "front.period", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
fn = input (1, "front.newind.average", input.string_selection, averages.titles)
local sourceSeries = inputs [source]
local averageFunction = averages [fn]
mean = averageFunction (sourceSeries, period)
mad = sourceSeries - mean
rect {
first = 0,
second = mad,
color = mad >= mad [1] and up_color or down_color,
width = 0.4
}
if
( mad <= 0 and ( mad[1] > mad) and (smaa < smab) and (smaao > smabo) and close
<= emaa ) then
plot_shape (1,
"Down",
shape_style.arrowdown,
shape_size.auto,
down_color,
shape_location.abovebar,
0,
" Down ",
1)
end
if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao
< smabo)
then
plot_shape (1 ,
"Up",
shape_style.arrowup,
shape_size.auto,
up_color,
shape_location.belowbar,
0,
"Up",
1)
end
instrument {
name = "ImpuseSystem N2 @efraimTraders",
short_name = "ImpuseSystem N2 @efraimTraders",
}
input_group {
"CCI Turbo",
cci_turbo_period = input (6, "front.period", input.integer, 3, 14),
cci_turbo_color = input { default = "#2CAC40", type = input.color },
cci_turbo_width = input { default = 1, type = input.line_width },
cci_turbo_visible = input { default = true, type = input.plot_visibility }
}
input_group {
"CCI",
cci_period = input (14, "front.period", input.integer, 7, 20),
cci_color = input { default = "#DB4931", type = input.color },
cci_width = input { default = 1, type = input.line_width },
cci_visible = input { default = true, type = input.plot_visibility }
}
input_group {
"CCI Turbo Histogram",
histogram_visible = input { default = true, type = input.plot_visibility },
histogram_up_color = input { default = "#2CAC40", type = input.color },
histogram_down_color = input { default = "#DB4931", type = input.color }
}
input_group {
"front.platform.baseline",
zero_line_visible = input { default = true, type = input.plot_visibility },
zero_line_color = input { default = rgba(255,255,255,0.15), type = input.color },
zero_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.supportlines",
overbought = input (100, "front.overbought", input.double, 0, 500, 1, false),
oversold = input (-100, "front.oversold", input.double, -500, 0, 1, false),
overbought_color = input { default = rgba(37,225,84,0.50), type = input.color },
oversold_color = input { default = rgba(255,108,88,0.50), type = input.color },
bg_color = input { default = rgba(255,255,255,0.05), type = input.color },
support_width = input { default = 1, type = input.line_width },
support_visible = input { default = true, type = input.plot_visibility }
}
src_idx = input (1, "front.ind.source", input.string_selection, inputs.titles)
local source = inputs [src_idx]
cci_turbo = cci (source, cci_turbo_period)
cci14 = cci (source, cci_period)
local last5IsDown = cci14[5] < 0 and cci14[4] < 0 and cci14[3] < 0 and cci14[2] < 0
and cci14[1] < 0
local last5IsUp = cci14[5] > 0 and cci14[4] > 0 and cci14[3] > 0 and cci14[2] > 0 and
cci14[1] > 0
local histogram_color = iff (last5IsUp, histogram_up_color, iff (last5IsDown,
histogram_down_color, iff (cci14 < 0, histogram_up_color, histogram_down_color)))
if support_visible then
fill_area (overbought, oversold, "", bg_color)
end
if histogram_visible then
rect {
first = 0,
second = cci14,
color = histogram_color,
width = 0.4
}
end
if support_visible then
hline (overbought, "", overbought_color, support_width)
hline (oversold, "", oversold_color, support_width)
end
if zero_line_visible then
hline (0, "Zero", zero_line_color, zero_line_width)
end
if cci_turbo_visible then
plot(cci_turbo, "Turbo CCI", cci_turbo_color, cci_turbo_width)
end
if cci_visible then
plot(cci14, "CCI14", cci_color, cci_width)
end
instrument { name = "Rob Hoffman IRB - Final (QCS)", overlay = true }
-- === INPUTS ===
inv_pct = input(45, "Inventory %", input.integer, 1, 100, 1) / 100
input_group {
"Activation des setups",
show_longbar = input(true, "Activer Long Bar"),
show_shortbar = input(true, "Activer Short Bar"),
show_irb = input(true, "Activer Inventory Bar (IRB)"),
show_line = input(true, "Activer Ligne IRB (Bleue)"),
show_retr = input(true, "Activer Retracement Setup")
}
-- === CALCULS DE BASE ===
local s_buy = make_series()
local s_sell = make_series()
local s_line = make_series()
local range = high - low
local body = close - open
if body < 0 then body = -body end
local thresh = inv_pct * range
local x = low + thresh
local y = high - thresh
local mid = (x + y) / 2
local is_irb = body < thresh
-- === CONDITIONS ===
local buy_cond = false
local sell_cond = false
if is_irb and close > x and open > x then buy_cond = true end
if is_irb and close < y and open < y then sell_cond = true end
s_buy:set(buy_cond and 1 or 0)
s_sell:set(sell_cond and 1 or 0)
s_line:set(mid)
-- === PLOTS ===
-- Inventory Bar (IRB)
if show_irb then
plot_shape(get_value(s_buy) == 1, "IRB BUY", shape_style.triangleup,
shape_size.large, "green", shape_location.belowbar)
plot_shape(get_value(s_sell) == 1, "IRB SELL", shape_style.triangledown,
shape_size.large, "red", shape_location.abovebar)
end
-- Ligne IRB (bleue)
if show_line then
plot(s_line, "IRB Line", "blue", 2)
end
-- Long Bar
if show_longbar then
cond_long = body > (range * 0.75)
plot_shape(cond_long, "Long Bar", shape_style.circle, shape_size.small, "lime",
shape_location.abovebar)
end
-- Short Bar
if show_shortbar then
cond_short = body < (range * 0.25)
plot_shape(cond_short, "Short Bar", shape_style.circle, shape_size.small, "orange",
shape_location.belowbar)
end
-- Retracement Setup
if show_retr then
cond_retr = is_irb and close > (low + range*0.3) and close < (high - range*0.3)
plot_shape(cond_retr, "Retracement", shape_style.cross, shape_size.normal, "yellow",
shape_location.abovebar)
end
instrument { name = "MImpuseSystem N3 @efraimTraders ", overlay = false,
icon="indicators:MA" }
period = input (12, "front.period", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
fn = input (1, "front.newind.average", input.string_selection, averages.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
local sourceSeries = inputs [source]
local averageFunction = averages [fn]
mean = averageFunction (sourceSeries, period)
mad = sourceSeries - mean
rect {
first = 0,
second = mad,
color = mad >= mad [1] and up_color or down_color,
width = 0.4
}
-- Script QCS : JOKER1 - Corrige
-- Base sur l'exemple fourni, nettoye des caracteres parasites
instrument {
name = "JOKER1",
icon = "indicators:ADX",
overlay = true
}
-- === Parametre de Selection de Methode ===
-- Note: L'exemple original avait method_id = inputE(...), ce qui semble etre une erreur.
-- Utilisons la syntaxe standard input avec string_selection.
method_id = input(1, "Type", input.string_selection, { "J0KER 1" })
-- === Groupes de Parametres pour les Niveaux ===
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
-- === Definition de la Fonction de Calcul ===
-- Note: La fonction originale 'm15' prenait un argument 'candle'
-- mais le corps ne l'utilisait pas directement. Simplifions.
-- L'objectif semble etre de recuperer high et low d'une autre resolution.
local function calculate_levels(sec_candle)
-- 'sec_candle' est l'objet chandelier retourne par security()
-- On extrait simplement le high et le low de ce chandelier
local c1 = sec_candle.high -- Niveau pour Maxima
local c2 = sec_candle.low -- Niveau pour Minima
return c1, c2
end
-- Tableau des methodes (bien que seule une methode soit definie)
local methods = { calculate_levels }
-- === Parametre de Resolution Temporelle ===
-- Note: L'exemple original avait des caracteres illegaux dans "15m".
-- Utilisons une chaine valide.
local resolution = "15m"
-- === Recuperation des Donnees Multi-Temps ===
-- security(ticker_id, resolution_string)
-- Cela recupere les donnees du meme actif (current_ticker_id)
-- mais a une resolution differente (15m).
sec = security(current_ticker_id, resolution)
-- === Logique Principale et Tracage ===
-- Si les donnees de l'autre resolution ont ete recuperees avec succes
if sec then
-- Selectionner la methode a utiliser (method_id = 1 => methods[1] =
calculate_levels)
local method = methods[method_id]
-- Appeler la methode selectionnee avec les donnees recuperees
-- Cela doit retourner deux valeurs: le niveau haut (c1) et le niveau bas (c2)
local level_high, level_low = method(sec)
-- === Tracage des Niveaux ===
-- Trace le niveau haut (c1) comme une ligne de niveau rouge
plot(level_high, "Niveau Haut (C1)", level_1_color, level_1_width, 0, style.levels,
na_mode.continue)
-- Trace le niveau bas (c2) comme une ligne de niveau verte
plot(level_low, "Niveau Bas (C2)", level_2_color, level_2_width, 0, style.levels,
na_mode.continue)
-- Note sur 'style.levels' et 'na_mode.continue':
-- Ces parametres etaient presents dans le script original et semblent corrects
-- pour tracer des lignes horizontales persistantes.
end
instrument {overlay = true,
name = 'R.T TRADER BRASIL',
short_name = 'SCRIPT TELEGRAM @COMUNIDADGRATIS',
icon="blue",
overlay = true}
method_id = input (1, "Type", input.string_selection, { "SCRIPT" })
---- pagina web: https://t.me/COMUNIDADGRATIS -----
---- canal de TELEGRAM con seales GRATIS: https://t.me/COMUNIDADGRATIS -----
---(VERSAO GRATUITA, muito assertivo 2025 by:TELEGRAM @COMUNIDADGRATIS)---
---(VERSION GRATUITA, muy asertivo 2025 por: TELEGRAM @COMUNIDADGRATIS)---
---(FREE VERSION, very assertive 2025 by: TELEGRAM @COMUNIDADGRATIS)---
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
------------------------TELEGRAM @COMUNIDADGRATIS------------------TELEGRAM
@INDICADORESGRATIS------------------------------
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- ------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "purple", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "white", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --IQ
OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
end
instrument {overlay = true,
name = 'R.T TRADER BRASIL',
short_name = 'R.T TRADER BRASIL TELEGRAM @COMUNIDADGRATIS',
icon="blue",
overlay = true}
Exibir_tracamento= input(1, "Deseja exibir o tracamento?", input.string_selection,
{"SIM", "NAO"})
input_group {"BANDA SUPERIOR", bbsup_color= input{ default= "silver", type=
input.color}}
input_group {"BANDA INFERIOR", bbinf_color= input{ default= "silver", type=
input.color}}
smaa= sma(close, '20')
upper_band= smaa + (stdev(close,20) * 2.5)
lower_band= smaa - (stdev(close,20) * 2.5)
emaa= ema(close, '100')
if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_band, "UPPER_BAND", bbsup_color)
plot(lower_band, "LOWER_BAND", bbinf_color)
end
instrument {overlay = true,
name = 'R.T TRADER BRASIL',
short_name = 'SCRIPT TELEGRAM @COMUNIDADGRATIS',
icon="blue",
overlay = true}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
input_group {
"Compra Proxima vela",
colorBuy = input { default = "white", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Venda Proxima vela",
colorSell = input { default = "purple", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------------------------------
@COMUNIDADGRATIS------------------@INDICADORESGRATIS------------------------------
------------------------@COMUNIDADGRATIS------------------
@INDICADORESGRATIS------------------------------
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"R.T",
"white"
)
plot_shape(
(sellCondition),
"ENTER",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"R.T",
"white"
)
instrument {
name = 'VALUE SIGNAL TELEGRAM@INDICADORESGRATIS',
icon = 'indicators:BelkhayateTiming',
overlay = false
}
exibir_tracamento = input ( 1, "Desea exibir?", input.string_selection, {"SI","No"})
input_group { "SMAA", smaa_color = input{ default = "yellow", type = input.color }}
input_group { "SMAB", smab_color = input{ default = "black", type = input.color }}
input_group { "Up", up_color = input{ default = "green", type = input.color }}
input_group { "Down", Down_color = input{ default = "red", type = input.color }}
input_group {"EMA", ema_color= input {default= '#10A3C4', type= input.color}}
input_group {"BANDA SUPERIOR", bbsup_color= input{ default= "#DA4933", type=
input.color}}
input_group {"BANDA INFERIOR", bbinf_color= input{ default= "#22D34F", type=
input.color}}
input_group {"CALL", call_color= input{ default= "green", type= input.color}}
input_group {"PUT", put_color= input{ default= "red", type= input.color}}
smaa= sma(close, '30')
upper_band= smaa + (stdev(close,30) * 3.0)
lower_band= smaa - (stdev(close,30) * 3.0)
emaa= ema(close, '200')
if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_band, "UPPER_BAND", bbsup_color)
plot(lower_band, "LOWER_BAND", bbinf_color)
end
sec = security(current_ticker_id, "5m")
period = input (12, "front.period", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
fn = input (1, "front.newind.average", input.string_selection, averages.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
local sourceSeries = inputs [source]
local averageFunction = averages [fn]
mean = averageFunction (sourceSeries, period)
mad = sourceSeries - mean
rect {
first = 0,
second = mad,
color = mad >= mad [1] and up_color or down_color,
width = 0.4
}
if
( mad <= 0 and ( mad[1] > mad) and (smaa < smab) and (smaao > smabo) and close
<= emaa ) then
plot_shape (1,
"Down",
shape_style.arrowdown,
shape_size.huge,
down_color,
shape_location.abovebar,
0,
" Down ",
1)
end
if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao
< smabo)
then
plot_shape (1 ,
"Up",
shape_style.arrowup,
shape_size.huge,
up_color,
shape_location.belowbar,
0,
"Up",
1)
end
function prev(s,i)
y=abs(round(i))
return s[y]
end
length = input(5, "Numero de Velas")
extTop = input(8, "Extreme Level Top")
extTop1 = input(9, "Extreme Level Top")
extBot = input(-5, "Extreme Level Bottom")
sigTop = input(5, "Significant Level Top")
sigmeio = input(0, "Significant Level Top")
sigBot = input(-8, "Significant Level Bottom")
sigBot1 = input(-9, "Significant Level Bottom")
fairTop = input(5, "Fair Value Top")
fairBot = input(-5, "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 "green"
plot_candle {
open = vopen,
high = vhigh,
low = vlow,
close = vclose,
candle_color = colorr
}
hline(extTop,"","red")
hline(extTop1,"","red")
hline(extBot,"","green")
hline(sigTop,"","red")
hline(sigmeio,"","gold")
hline(sigBot,"","green")
hline(sigBot1,"","green")
hline(fairTop,"","red")
hline(fairBot,"","green")
input_group { "ENG - UP COLOR", call_color = input { default="green", type =
input.color } }
input_group { "ENG - DOWN COLOR", put_color = input { default="red", 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,
"COMPRE",
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,
"VENDA",
put_color)
end
end
instrument {
name = 'SUP/RES + SEAL TELEGRAM@INDICADORESGRATIS',
overlay = true
}
local function a()local
b=make_series()local c=high[2]
if not get_value(c)then
return b end;
local d=high<=c and high[0.30]<=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[0.30]>=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="lime",type=input.color},width=input{defaul
t=1,type=input.line_width}}h=a()l=e()hline(h,"High",color,high_width)hline(l,"Low",col
or,width)hline(highest(1)[1],"HH1",color,1)hline(lowest(10)
[1],"LL1",color,1)hline(highest(5)[1],"HH5",color,1)hline(lowest(5)
[1],"LL5",color,1)hline(highest(15)[1],"HH15",color,1)hline(lowest(15)
[1],"LL15",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(0.30)[1],"HH0.30",color,1)hline(lowest(0.30)
[1],"LL0.30",color,1)
MaFast_period = input(5,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(2,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(8,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
MaTrend_period = input(100,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Area Up and Down",
colorAreaUp = input { default = "rgba(34, 139, 34, 0.3)", type = input.color },
colorAreaDown = input { default = "rgba(220, 20, 60, 0.3)", type = input.color },
visibleArea = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Fast Line",
colorFast = input { default = "#ff56e8", type = input.color },
widthFast = input { default = 1, type = input.line_width},
visibleFast = input { default = false, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "#2d2af7", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = false, type = input.plot_visibility }
}
input_group {
"Ma Trend Line",
colorTrend = input { default = "#f74200", type = input.color },
widthTrend = input { default = 3, type = input.line_width},
visibleTrend = input { default = false, type = input.plot_visibility }
}
input_group {
"Buy Engulfing",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = false, type = input.plot_visibility }
}
input_group {
"Sell Engulfing",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = false, type = input.plot_visibility }
}
input_group {
"Buy Double Engulfing",
colorBuy1 = input { default = "rgba(34, 139, 34, 0.8)", type = input.color },
visibleBuy1 = input { default = false, type = input.plot_visibility }
}
input_group {
"Sell Double Engulfing",
colorSell1 = input { default = "rgba(220, 20, 60, 0.8)", type = input.color },
visibleSell1 = input { default = false, type = input.plot_visibility }
}
input_group {
"Buy Outside Bar",
colorBuy2 = input { default = "rgba(0, 0, 255, 0.8)", type = input.color },
visibleBuy2 = input { default = false, type = input.plot_visibility }
}
input_group {
"Sell Outside Bar",
colorSell2 = input { default = "rgba(255, 20, 147, 0.8)", type = input.color },
visibleSell2 = input { default = false, type = input.plot_visibility }
}
input_group {
"Buy X Macd",
colorBuy3 = input { default = "rgba(0, 0, 255, 0.8)", type = input.color },
visibleBuy3 = input { default = false, type = input.plot_visibility }
}
input_group {
"Sell X Macd",
colorSell3 = input { default = "rgba(255, 20, 147, 0.8)", type = input.color },
visibleSell3 = input { default = false, type = input.plot_visibility }
}
input_group {
"Buy X Zero",
colorBuy4 = input { default = "rgba(0, 250, 154, 0.80)", type = input.color },
visibleBuy4 = input { default = false, type = input.plot_visibility }
}
input_group {
"Sell X Zero",
colorSell4 = input { default = "rgba(255, 20, 147, 0.60)", type = input.color },
visibleSell4 = input { default = false, type = input.plot_visibility }
}
input_group {
"Buy Histo X",
colorBuy5 = input { default = "rgba(0, 250, 154, 0.80)", type = input.color },
visibleBuy5 = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Histo X",
colorSell5 = input { default = "rgba(255, 20, 147, 0.60)", type = input.color },
visibleSell5 = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgSignal = averages[Signal_period]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1m","5m"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
filter_source = {"1m","5m"}
filter_pa_index = input(8,"Candle check resolution",input.string_selection,filter_source)
filter_pa = security (current_ticker_id, filter_source[filter_pa_index])
--print(filter_source[filter_pa_index])
emaFast = avgFast(titleFast,MaFast_period)
emaSlow = avgSlow(titleSlow,MaSlow_period)
macd = emaFast - emaSlow
signal = avgSignal(macd,Signal_period)
--plot(macd,"macd", "Blue", 1)
--plot(signal,"signal", "Orange", 1)
histo = macd - signal
--rect {
--first = 0,
--second = histo,
--color = histo >= histo[1] and "LimeGreen" or "Orange",
--width = 0.5
--}
--hline(0,"Zero Macd", "rgba(255, 20, 147, 0.4)",1)
if (sec ~= nil) then
MaFast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
MaFast1 = MaFast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
MaTrend1 = MaTrend0[1]
if(visibleBuy == true) then
plot_shape((close > open and close[1] < open[1] and close > MaFast0 and
MaFast0 > MaSlow0 and MaSlow0 > MaTrend0 and close > open[1] and open <=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call",
shape_style.arrowup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0
)
end
if (visibleSell == true) then
plot_shape((close < open and close[1] > open[1] and close < MaFast0 and
MaFast0 < MaSlow0 and MaSlow0 < MaTrend0 and close < open[1] and open >=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0
)
end
if(visibleBuy1 == true) then
if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close > open and close[1] < open[1] and close > open[1] and open
<= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call1",
shape_style.arrowup,
shape_size.huge,
colorBuy1,
shape_location.belowbar,
0
)
end
end
if (visibleSell1 == true) then
if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close < open and close[1] > open[1] and close < open[1] and open
>= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put1",
shape_style.arrowdown,
shape_size.huge,
colorSell1,
shape_location.abovebar,
0
)
end
end
if(visibleBuy2 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] < close[3] and open[2] < close[2] and open[1] > close[1]
and close[1] > open[2] and open[1] > open[2] and open < close),
"Call2",
shape_style.arrowup,
shape_size.huge,
colorBuy2,
shape_location.belowbar,
0
)
--end
end
if (visibleSell2 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] > close[3] and open[2] > close[2] and open[1] < close[1]
and close[1] < open[2] and open[1] < open[2] and open > close),
"Put2",
shape_style.arrowdown,
shape_size.huge,
colorSell2,
shape_location.abovebar,
0
)
--end
end
if(visibleBuy3 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((macd > signal and macd[1] < signal[1] and close > MaFast0 and
MaFast0 > MaTrend0),
"Call3",
shape_style.arrowup,
shape_size.huge,
colorBuy3,
shape_location.belowbar,
0
)
--end
end
if (visibleSell3 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((macd < signal and macd[1] > signal[1] and close < MaFast0 and
MaFast0 < MaTrend0),
"Put3",
shape_style.arrowdown,
shape_size.huge,
colorSell3,
shape_location.abovebar,
0
)
--end
end
if(visibleBuy4 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((macd[1] < 0 and macd > 0 ),
"Call4",
shape_style.arrowup,
shape_size.huge,
colorBuy4,
shape_location.belowbar,
0
)
--end
end
if (visibleSell4 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((macd[1] > 0 and macd < 0 ),
"Put4",
shape_style.arrowdown,
shape_size.huge,
colorSell4,
shape_location.abovebar,
0
)
--end
end
if(visibleBuy5 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((histo[1] < 0 and histo > 0 ),
"Call5",
shape_style.arrowup,
shape_size.huge,
colorBuy5,
shape_location.belowbar,
0
)
--end
end
if (visibleSell5 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((histo[1] > 0 and histo < 0 ),
"Put5",
shape_style.arrowdown,
shape_size.huge,
colorSell5,
shape_location.abovebar,
0
)
--end
end
if (visibleArea == true) then
fill(MaFast0,MaSlow0,"Area", MaFast0 > MaSlow0 and colorAreaUp or MaFast0 <
MaSlow0 and colorAreaDown )
end
end
input_group {
"Ma Fast Line",
colorFast = input { default = "#ff56e8", type = input.color },
widthFast = input { default = 1, type = input.line_width},
visibleFast = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "#2d2af7", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Trend Line",
colorTrend = input { default = "#f74200", type = input.color },
widthTrend = input { default = 3, type = input.line_width},
visibleTrend = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy Arrow",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Arrow",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
if (sec ~= nil) and (sec.open_time == open_time) then
Mafast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
Mafast1 = Mafast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
Matrend1 = MaTrend0[1]
plot_shape((close > open and close[1] < open[1] and close > Mafast0 and close >
MaSlow0 and close > MaTrend0 and close > open[1] and open <= close[1] and
abs(close-open) > abs(close[1]-open[1])),
"Call",
shape_style.arrowup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"COMPRA/BUY",
colorBuy
)
plot_shape((close < open and close[1] > open[1] and close < Mafast0 and close <
MaSlow0 and close < MaTrend0 and close < open[1] and open >= close[1] and
abs(close-open) > abs(close[1]-open[1])),
"Put",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"VENTA/SELL",
colorSell
)
end
period = input (5, "front.period", input.integer, 1)
shift = input (1.1, "front.newind.offset", input.double, 0.01, 300, 0.01)
fn = input (averages.ema, "front.newind.average", input.string_selection,
averages.titles)
input_group {
"front.top line",
upper_line_visible = input { default = true, type = input.plot_visibility },
upper_line_color = input { default = "#21B190", type = input.color },
upper_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.middle line",
middle_line_visible = input { default = true, type = input.plot_visibility },
middle_line_color = input { default = rgba(33,177,144,0.6), type = input.color },
middle_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.bottom line",
lower_line_visible = input { default = true, type = input.plot_visibility },
lower_line_color = input { default = "#21B190", type = input.color },
lower_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_visible = input { default = true, type = input.plot_visibility },
fill_color = input { default = rgba(33,177,144,0.08), type = input.color },
}
local averageFunction = averages [fn]
middle = averageFunction (hlc3, period)
offset = rma(tr, period) * shift
upper = middle + offset
lower = middle - offset
if fill_visible then
fill { first = upper, second = lower, color = fill_color }
end
if upper_line_visible then
plot (upper, "Upper", upper_line_color, upper_line_width)
end
if lower_line_visible then
plot (lower, "Lower", lower_line_color, lower_line_width)
end
if middle_line_visible then
plot (middle, "Middle", middle_line_color, middle_line_width)
end
instrument {
name = 'VALUE CHART TELEGRAM @INDICADORESGRATIS',
icon = 'indicators:BelkhayateTiming',
overlay = false
}
function prev(s,i)
y=abs(round(i))
return s[y]
end
length = input(5, "Numero de Velas")
extTop = input(12, "Extreme Level Top")
extBot = input(-12, "Extreme Level Bottom")
sigTop = input(8, "Significant Level Top")
sigBot = input(-8, "Significant Level Bottom")
fairTop = input(4, "Fair Value Top")
fairBot = input(-4, "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 "green"
plot_candle {
open = vopen,
high = vhigh,
low = vlow,
close = vclose,
candle_color = colorr
}
hline(extTop,"","red")
hline(extBot,"","green")
hline(sigTop,"","red")
hline(sigBot,"","green")
hline(fairTop,"","red")
hline(fairBot,"","green")
instrument {
name = 'RSI TELEGRAM@INDICADORESGRATIS',
short_name = 'RSIX',
icon = 'indicators:RSI',
overlay = true
}
RSI_period = input(10,"RSI period",input.integer,1,1000,1)
RSI_average = input(1,"RSI average", input.string_selection,averages.titles)
RSI_title = input(1,"RSI title", input.string_selection,inputs.titles)
RSI_OVB1 = input(50,"RSI OVB1",input.double,0.01,100,1,false)
RSI_OVB2 = input(70,"RSI OVB2",input.double,0.01,100,1,false)
RSI_OVS1 = input(50,"RSI OVS1",input.double,0.01,100,1,false)
RSI_OVS2 = input(30,"RSI OVS2",input.double,0.01,100,1,false)
MaFast_period = input(5,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(1,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(10,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(20,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Ma Fast Line",
colorFast = input { default = "#ff56e8", type = input.color },
widthFast = input { default = 1, type = input.line_width},
visibleFast = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "#2d2af7", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Trend Line",
colorTrend = input { default = "#f74200", type = input.color },
widthTrend = input { default = 3, type = input.line_width},
visibleTrend = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy RSI X Out",
colorBuy = input { default = "lime", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell RSI X Out",
colorSell = input { default = "orangered", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy RSI X In",
colorBuy1 = input { default = "lime", type = input.color },
visibleBuy1 = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell RSI X In",
colorSell1 = input { default = "orangered", type = input.color },
visibleSell1 = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
local avgRSI = averages[RSI_average]
local titleRSI = inputs[RSI_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
delta = titleRSI - titleRSI[1]
up = avgRSI(max(delta,0), RSI_period)
down = avgRSI(max(-delta,0), RSI_period)
RS = up/down
RES = 100 - 100/(1+ RS)
if (sec ~= nil) and (sec.open_time == open_time) then
Mafast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
Mafast1 = Mafast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1] --Ma Slow bar 1
MaTrend0 = avgTrend(titleTrend,MaTrend_period) --Ma Trend 0
Matrend1 = MaTrend0[1] --Ma Trend 1
if(visibleBuy == true) then
plot_shape(RES[1] < RSI_OVB1 and RES > RSI_OVB1 and close > Mafast0 and
Mafast0 > MaSlow0 and MaSlow0 > MaTrend0,
"Call",
shape_style.arrowup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"RXO",
colorBuy
)
end
if(visibleSell == true) then
plot_shape(RES[1] > RSI_OVS1 and RES < RSI_OVS1 and close < Mafast0 and
Mafast0 < MaSlow0 and MaSlow0 < MaTrend0,
"Put",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"RXO",
colorSell
)
end
if(visibleBuy1 == true) then
plot_shape(RES[1] < RSI_OVS2 and RES > RSI_OVS2,
"Call1",
shape_style.arrowup,
shape_size.huge,
colorBuy1,
shape_location.belowbar,
0,
"RXI",
colorBuy1
)
end
if(visibleSell1 == true) then
plot_shape(RES[1] > RSI_OVB2 and RES < RSI_OVB2 ,
"Put1",
shape_style.arrowdown,
shape_size.huge,
colorSell1,
shape_location.abovebar,
0,
"RXI",
colorSell1
)
end
end
-- Script 1 : "adao + VALUE"
instrument { name = "adao + VALUE", icon = "indicators:BB", overlay = true }
input_group {
"COMPRAR",
comprar_color = input { default = "green", type = input.color }
}
input_group {
"ADAO VENDER",
vender_color = input { default = "red", type = input.color }
}
sec = security(current_ticker_id, "5m")
if sec and sec.open_time == open_time then
base = sma(open, '10')
high_band = base + (stdev(open, 10) * 2)
low_band = base - (stdev(open, 10) * 2)
media = sma(close, '20')
up_band = media + (stdev(close, 20) * 2.5)
down_band = media - (stdev(close, 20) * 2.5)
expo = ema(close, '100')
-- IMPULSOS
plot_shape(open > high_band and close < high_band,
"VENDER",
shape_style.arrowdown,
shape_size.huge,
vender_color,
shape_location.abovebar,
0,
"ADAO VENDA",
vender_color)
plot_shape(open < low_band and close > low_band,
"ADAO COMPRAR",
shape_style.arrowup,
shape_size.huge,
comprar_color,
shape_location.belowbar,
0,
"ADAO COMPRA",
comprar_color)
-- RETRAES
plot_shape(open < up_band and high > up_band and close <= up_band and expo <
down_band,
"ADAO VENDER1",
shape_style.arrowdown,
shape_size.huge,
vender_color,
shape_location.abovebar,
0,
"ADAO VENDA RT",
vender_color)
plot_shape(open > down_band and low < down_band and close >= down_band and
expo > up_band,
"ADAO COMPRAR1",
shape_style.arrowup,
shape_size.huge,
comprar_color,
shape_location.belowbar,
0,
"ADAO COMPRA RT",
comprar_color)
end
-- Script 2 : "ADAO BANDAS + VALUE"
instrument { name = "ADAO BANDAS + VALUE", overlay = true }
period = input(5, "front.period", input.integer, 1)
shift = input(1, "front.newind.offset", input.double, 0.01, 300, 0.01)
fn = input("averages.ema", "front.newind.average", input.string_selection,
averages.titles)
input_group {
"front.top line",
upper_line_visible = input { default = true, type = input.plot_visibility },
upper_line_color = input { default = "#21B190", type = input.color },
upper_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.middle line",
middle_line_visible = input { default = true, type = input.plot_visibility },
middle_line_color = input { default = rgba(33,177,144,0.6), type = input.color },
middle_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.bottom line",
lower_line_visible = input { default = true, type = input.plot_visibility },
lower_line_color = input { default = "#21B190", type = input.color },
lower_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_visible = input { default = true, type = input.plot_visibility },
fill_color = input { default = rgba(33,177,144,0.8), type = input.color }
}
local averagefunction = averages[fn]
middle = averagefunction(hlc3, period)
offset = rma(tr, period) * shift
upper = middle + offset
lower = middle - offset
if fill_visible then
fill { first = upper, second = lower, color = fill_color }
end
-- CORRECTION : Ajout du guillemet fermant manquant dans les appels a `plot`
if upper_line_visible then
plot(upper, "Upper", upper_line_color, upper_line_width) -- Guillemet fermant ajoute
end
if lower_line_visible then
plot(lower, "Lower", lower_line_color, lower_line_width) -- Guillemet fermant ajoute
end
if middle_line_visible then
plot(middle, "Middle", middle_line_color, middle_line_width) -- Guillemet fermant
ajoute
end
-- Script : "Supreme"
instrument {
name = "Supreme",
short_name = "SUPR",
overlay = true,
icon = "indicators:BB"
}
input_group {
"MACD",
fast = input(12, "front.platform.fast_period", input.integer, 1, 250),
slow = input(26, "front.platform.fast_period", input.integer, 1, 250)
}
input_group {
"Front.platform.signal.line",
signal_period = input(9, "front.period", input.integer, 1, 250)
}
input_group {
"front.newind.emaperiod",
ema_period = input(13, "front.period", input.integer, 1, 250)
}
input_group {
"front.newind.barcolors",
positive = input { default = "#2CAC40", type = input.color },
neutral = input { default = "#C7CAD1", type = input.color },
negative = input { default = "#BD4501", type = input.color }
}
-- Fonction prev(s,i)
function prev(s, i)
y = abs(round(s / i))
return y
end
length = input(5, "Numero de Velas")
extTop = input(-12, "Extreme Level Top")
extBot = input(-12, "Extreme Level Bottom")
sigTop = input(8, "Significant Level Top")
sigBot = input(-8, "Significant Level Bottom")
fairTop = input(4, "Fair Value Top")
fairBot = input(-4, "Fair Value Bottom")
put_color = input { default = "blue", type = input.color }
fastMA = ema(close, fast)
slowMA = ema(close, slow)
macd = fastMA - slowMA
signal = sma(macd, signal_period)
hist = macd - signal
ema13 = ema(close, ema_period)
local bar_color
varp = round(length / 5)
-- Initialisation de la table 'h'
h = {}
h.f = length > 7
var = h.f and (highest(high, varp) - lowest(low, varp)) or 0
-- Note: Les lignes suivantes contiennent des appels a 'prev' qui semblent incorrects
-- par exemple: abs(prev(close, -varp*1), -varp*2). La fonction 'prev' definie plus haut
-- prend 2 arguments, mais ici on a 2 arguments separes par une virgule.
-- Cela pourrait causer une erreur. Je laisse la syntaxe telle quelle car vous
-- n'avez pas demande de correction de logique, seulement de syntaxe.
-- Si cela cause une erreur, il faudra revoir la logique de ces appels.
varr1 = h.f and iff(var == 0 and varp == 1, abs(prev(close, -varp * 1), -varp * 2), varr1)
or 0
varb = h.f and (prev(highest(high, varp), -varp * 1) - prev(lowest(low, varp), -varp * 1))
or 0
varr2 = h.f and iff(var == 0 and varp == 1, abs(prev(close, -varp), -varp * 2), varr2) or
0
varr3 = h.f and iff(var == 0 and varp == 1, abs(prev(close, -varp), -varp * 2), varr3) or
0
varr4 = h.f and iff(var == 0 and varp == 1, abs(prev(close, -varp * 1), -varp * 2), varr4)
or 0
varr5 = h.f and iff(var == 0 and varp == 1, abs(prev(close, -varp * 4), -varp * 5), varr5)
or 0
vare = h.f and (prev(highest(high, varp), -varp * 4) - prev(lowest(low, varp), -varp * 4))
or 0
varrs = h.f and iff(vare == 0 and varp == 1, abs(prev(close, -varp * 4), -varp * 5),
varrs) or 0
cdelta = abs(close - prev(close, -1))
var8 = (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) * 0.2) or (sma(var8, 5) *
0.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 "green"
plot_candle {
open = vopen,
high = vhigh,
low = vlow,
close = vclose,
["candle.color"] = colorr -- Utilisation de la syntaxe avec crochets pour la cle
}
hline(extTop, "", "red")
hline(extBot, "", "green")
hline(sigTop, "", "red")
hline(sigBot, "", "green")
hline(fairTop, "", "red")
hline(fairBot, "", "green")
if ema13 > ema13[1] and hist > hist[1] then
plot_shape(ema13 > ema13[1], "CALL", shape_style.triangleup, shape_size.large,
put_color, shape_location.belowbar, 0)
elseif ema13 < ema13[1] and hist < hist[1] then
plot_shape(ema13 < ema13[1], "PUT", shape_style.triangledown, shape_size.large,
put_color, shape_location.abovebar, 0)
else
bar_color = neutral
plot_candle(open, high, low, close, "ES", bar_color)
end
-- Script : "Setup Cycle Pro"
instrument { name = "Setup Cycle Pro", icon = "jpg", overlay = true }
input_group {
"Comprar",
comprar_color = input { default = "green", type = input.color }
}
input_group {
"Periodo Max/Min",
doch_time = input { default = "10", type = input.string }
}
input_group {
"Periodo da Micro Tendencia",
emaa_per = input { default = "10", type = input.string }
}
input_group {
"Periodo da Macro Tendencia",
emab_per = input { default = "100", type = input.string }
}
input_group {
"Media Rapida",
emac_per = input { default = "3", type = input.string }
}
input_group {
"Media Lenta",
emad_per = input { default = "13", type = input.string }
}
input_group {
"Venda",
vender_color = input { default = "#fcf805", type = input.color }
}
input_group {
"Candles",
positivo = input { default = "#0bd104", type = input.color },
neutro = input { default = "#2f3683", type = input.color },
negativo = input { default = "#f70202", type = input.color }
}
-- PARAMETROS
EMAA = ema(close, emaa_per)
EMAB = ema(close, emab_per)
EMAC = ema(hlc3, emac_per)
EMAD = ema(hlc3, emad_per)
upper = highest(high, doch_time)
lower = lowest(low, doch_time)
-- CALCULOS
TA = ((close > close[1]) and (close > EMAA) and (EMAA > EMAA[1]))
TB = ((close < close[1]) and (close < EMAA) and (EMAA < EMAA[1]))
ENC = ((EMAC[1] > EMAD[1]) and (EMAC < EMAD))
ENV = ((EMAC[1] < EMAD[1]) and (EMAC > EMAD))
sec = security(current_ticker_id, "1m")
if sec then
local bar_color
if (TA == true) then
bar_color = positivo
elseif (TB == true) then
bar_color = negativo
else
bar_color = neutro
end
plot_candle(open, high, low, close, "ES", bar_color)
plot(upper, "Resistencia", comprar_color)
plot(lower, "Soporte", vender_color)
end
input_group {
"CAL - UP COLOR",
call_color = input { default = "#fcf803", type = input.color }
}
input_group {
"PUT - DOWN COLOR",
put_color = input { default = "#ffc803", type = input.color }
}
if ((close[1] < open[1]) and (close > open) and (close > high[1]) and close[2] >=
open[1]) then
plot_shape(1, 'Bull_Engulfing', shape_style.circle, shape_size.huge, call_color,
shape_location.belowbar, 0, "Alert", "A")
end
if ((close[1] > open[1]) and (close < open) and (close < low[1]) and close[2] <=
open[1]) then
plot_shape(1, 'Bear_DOWN', shape_style.arrowdown, shape_size.huge, put_color,
shape_location.abovebar, 0, "Ok", "#ffc803")
end
if ((close > close[1]) and (close[1] > open[2]) and (close[3] > close[2])) then
plot_shape(1, 'Bull_UP', shape_style.arrowup, shape_size.huge, call_color,
shape_location.belowbar, 0, "Ok", "#ffc803")
-- CORRECTION : Remplace 'else if' par 'elseif' et ajoute 'end' pour fermer le bloc
if/elseif
elseif ((close < close[1]) and (close[1] < open[2]) and (close[3] < close[2])) then
plot_shape(1, 'Bear_DOWN', shape_style.arrowdown, shape_size.huge, put_color,
shape_location.abovebar, 0, "Ok", "#ffc803")
end
method_id = input(2, "Type", input.string_selection, { "M5" })
-- Script : "SAM_SUPER_SIGNALS" (Version Finale Corrigee)
instrument {
name = 'SAM_SUPER_SIGNALS',
short_name = 'sam_super_signals',
overlay = true
}
-- Note: L'URL d'icone etait presente dans les images, mais elle est longue et peut
causer des problemes.
-- Elle a ete supprimee pour la stabilite. Vous pouvez eventuellement la rajouter si
necessaire:
-- icon = 'https://www.google.com/url?sa=i&url=https%3A%2F%2Fmyicons.co%2Fapps
%2FADoVawdUfPDo__lXtY4qvtIaoE7Aust
%3D1638095965421000&source=images&cd=vfe&ved=0CAASQTwCIClwTCKC1l5wtuP
QCFQAAAAADAAAABAD'
-- === Configuration des Parametres (Partie 1) ===
MaFast_period = input(1, "Ma Fast period", input.integer, 1, 1000, 1)
MaValue_input = input(5, "Ma Value", input.string_selection, inputs.titles) -- Renomme
pour eviter les conflits
MaSlow_period = input(34, "Ma Slow period", input.integer, 1, 1000, 1)
Signal_period = input(4, "Signal period", input.integer, 1, 1000, 1)
input_group {
"CALL",
colorBuy = input { default = "blue", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"PUT",
colorSell = input { default = "yellow", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
-- === Calculs de Base (Partie 1) ===
-- Recuperer la serie de donnees selectionnee par l'utilisateur
local selected_series_for_ma = inputs[MaValue_input]
-- Calculer les Moyennes Mobiles Simples
smaFast = sma(selected_series_for_ma, MaFast_period)
smaSlow = sma(selected_series_for_ma, MaSlow_period)
-- Calculer le Buffer (Difference entre les deux MM)
buffer1 = smaFast - smaSlow
-- Appliquer un Lissage (WMA) au buffer
buffer2 = wma(buffer1, Signal_period)
-- === Generation des Signaux (Partie 1) ===
-- Conditions pour les signaux d'achat et de vente
-- Ces conditions semblent dupliquees dans l'image originale, je garde la version la plus
complete
buyCondition = (buffer1 > buffer2) and (buffer1[1] <= buffer2[1])
-- Correction: Assure que le precedent etait en dessous ou egal
selCondition = (buffer1 < buffer2) and (buffer1[1] >= buffer2[1])
-- Correction: Assure que le precedent etait au-dessus ou egal
-- === Tracage des Signaux (Partie 1) ===
plot_shape(
buyCondition,
"Signal ACHAT",
shape_style.arrowup,
shape_size.large,
colorBuy,
shape_location.belowbar,
0, -- offset
"CALL",
colorBuy -- text_color
)
plot_shape(
selCondition,
"Signal VENTE",
shape_style.arrowdown,
shape_size.large,
colorSell,
shape_location.abovebar,
0, -- offset
"PUT",
colorSell -- text_color
)
-- === Configuration des Parametres (Partie 2) ===
-- Nouvel instrument (bien que cela puisse etre dans le meme, je le garde comme dans
les images)
instrument {
name = 'SAM_SUPER_SIGNALS_Part2',
short_name = 'sam_super_part2',
overlay = true
}
-- Definition d'une fonction utilitaire 'prev' (comme dans les images)
local function prev(s, i)
-- Retourne la valeur de la serie 's' il y a 'i' periodes
-- Exemple: prev(close, 1) est equivalent a close[1]
return s[i]
end
-- Groupes d'entrees pour la deuxieme partie
input_group {
"Area Up and Down",
colorAreaUp = input { default = "rgba(34, 139, 34, 0.3)", type = input.color },
colorAreaDown = input { default = "rgba(220, 20, 60, 0.3)", type = input.color },
visibleArea = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Line",
colorSlowLine = input { default = "purple", type = input.color }, -- Renomme pour
plus de clarte
widthSlowLine = input { default = 2, type = input.line_width },
visibleSlowLine = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy Outside Bar",
colorBuyOutside = input { default = "lime", type = input.color },
visibleBuyOutside = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Outside Bar",
colorSellOutside = input { default = "red", type = input.color },
visibleSellOutside = input { default = true, type = input.plot_visibility }
}
-- Parametres pour les Moyennes Mobiles Personnalisees
MaFast_period_custom = input(3, "Ma Fast period", input.integer, 1, 1000, 1)
MaFast_average_type = input(4, "Ma Fast average", input.string_selection,
averages.titles) -- titles -> averages.titles
MaFast_data_source = input(1, "Ma Fast title", input.string_selection, inputs.titles)
MaSlow_period_custom = input(7, "Ma Slow period", input.integer, 1, 1000, 1)
MaSlow_average_type = input(2, "Ma Slow average", input.string_selection,
averages.titles)
MaSlow_data_source = input(1, "Ma Slow title", input.string_selection, inputs.titles)
MaTrend_period_custom = input(100, "Ma Trend period", input.integer, 1, 1000, 5)
MaTrend_average_type = input(1, "Ma Trend average", input.string_selection,
averages.titles)
MaTrend_data_source = input(1, "Ma Trend title", input.string_selection, inputs.titles)
input_group {
"Buy Arrow",
colorBuyArrow = input { default = "lime", type = input.color },
visibleBuyArrow = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Arrow",
colorSellArrow = input { default = "red", type = input.color },
visibleSellArrow = input { default = true, type = input.plot_visibility }
}
-- === Calculs et Tracage des Moyennes Mobiles Personnalisees (Partie 2) ===
-- Recuperer les fonctions de moyenne mobile et les series de donnees
local fast_ma_function = averages[MaFast_average_type]
local fast_data_series = inputs[MaFast_data_source]
local slow_ma_function = averages[MaSlow_average_type]
local slow_data_series = inputs[MaSlow_data_source]
local trend_ma_function = averages[MaTrend_average_type]
local trend_data_series = inputs[MaTrend_data_source]
-- Calculer les moyennes mobiles personnalises
MaFast_custom = fast_ma_function(fast_data_series, MaFast_period_custom)
MaSlow_custom = slow_ma_function(slow_data_series, MaSlow_period_custom)
MaTrend_custom = trend_ma_function(trend_data_series, MaTrend_period_custom)
-- Tracer les moyennes mobiles si visibilite activee
if visibleSlowLine == true then
plot(MaSlow_custom, "Ma Slow Custom", colorSlowLine, widthSlowLine)
end
-- Note: Les autres MM (Fast, Trend) ne sont pas tracees dans le code original extrait,
-- mais vous pouvez les ajouter de la meme facon si besoin.
-- === Generation et Tracage des Signaux Avances (Partie 2) ===
-- Exemple de logique pour un signal d'achat "Outside Bar"
-- (Prix depasse les extremes de la bougie precedente)
is_outside_bar_bull = (high > high[1]) and (low < low[1]) and (close > open)
-- Simplification: Bougie actuelle englobe la precedente ET est haussiere
-- Exemple de logique pour un signal de vente "Outside Bar"
is_outside_bar_bear = (high > high[1]) and (low < low[1]) and (close < open)
-- Simplification: Bougie actuelle englobe la precedente ET est baissiere
-- Tracer les signaux "Outside Bar" si visibilite activee
if visibleBuyOutside == true then
plot_shape(
is_outside_bar_bull,
"Outside Bar Bull",
shape_style.triangleup,
shape_size.huge,
colorBuyOutside,
shape_location.belowbar,
0,
"TOURO", -- Texte
colorBuyOutside -- Couleur du texte
)
end
if visibleSellOutside == true then
plot_shape(
is_outside_bar_bear,
"Outside Bar Bear",
shape_style.triangledown,
shape_size.huge,
colorSellOutside,
shape_location.abovebar,
0,
"URSO", -- Texte
colorSellOutside -- Couleur du texte
)
end
-- Tracer les fleches d'achat/vente simples si visibilite activee
-- (Exemple basique base sur la direction du prix)
is_simple_buy_signal = (close > open) and (close[1] < open[1]) -- Changement de
baissier a haussier
is_simple_sell_signal = (close < open) and (close[1] > open[1]) -- Changement de
haussier a baissier
if visibleBuyArrow == true then
plot_shape(
is_simple_buy_signal,
"Simple Buy Arrow",
shape_style.arrowup,
shape_size.normal, -- Taille plus petite
colorBuyArrow,
shape_location.belowbar,
0,
"", -- Pas de texte
colorBuyArrow
)
end
if visibleSellArrow == true then
plot_shape(
is_simple_sell_signal,
"Simple Sell Arrow",
shape_style.arrowdown,
shape_size.normal, -- Taille plus petite
colorSellArrow,
shape_location.abovebar,
0,
"", -- Pas de texte
colorSellArrow
)
end
-- === Tracage de Zones Colorees (Area Fill) ===
-- Remplir la zone entre deux series (ex: MaFast_custom et MaSlow_custom)
-- seulement si la visibilite est activee
if visibleArea == true then
-- Exemple: Remplir en vert si MaFast > MaSlow, en rouge sinon
fill_area_color = iff(MaFast_custom > MaSlow_custom, colorAreaUp, colorAreaDown)
fill { first = MaFast_custom, second = MaSlow_custom, color = fill_area_color }
end
-- Script : "BUY-SELL SIGNALS" (Version Finale Corrigee)
instrument {
name = 'BUY-SELL SIGNALS',
short_name = 'BUY-SELL_SIGNALS',
overlay = true
}
-- Note: L'URL d'icone etait presente dans les images, mais elle est longue et peut
causer des problemes.
-- Elle a ete supprimee pour la stabilite. Vous pouvez eventuellement la rajouter si
necessaire:
-- icon = 'https://bit.ly/3C8cIFO'
-- === Configuration des Parametres (Partie 1) ===
MaFast_period = input(1, "Ma Fast period", input.integer, 1, 1000, 1)
MaValue_input = input(5, "Ma Value", input.string_selection, inputs.titles) -- Renomme
pour eviter les conflits
MaSlow_period = input(34, "Ma Slow period", input.integer, 1, 1000, 1)
Signal_period = input(4, "Signal period", input.integer, 1, 1000, 1)
input_group {
"Buy",
colorBuy = input { default = "YELLOW", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell",
colorSell = input { default = "RED", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
-- === Calculs de Base (Partie 1) ===
-- Recuperer la serie de donnees selectionnee par l'utilisateur
local titleValue = inputs[MaValue_input]
-- Calculer les Moyennes Mobiles Simples
smaFast = sma(titleValue, MaFast_period)
smaSlow = sma(titleValue, MaSlow_period)
-- Calculer le Buffer (Difference entre les deux MM)
buffer1 = smaFast - smaSlow
-- Appliquer un Lissage (WMA) au buffer
buffer2 = wma(buffer1, Signal_period)
-- === Generation des Signaux (Partie 1) ===
-- Conditions pour les signaux d'achat et de vente
-- Ces conditions detectent un croisement
buyCondition = (buffer1 > buffer2) and (buffer1[1] <= buffer2[1])
sellCondition = (buffer1 < buffer2) and (buffer1[1] >= buffer2[1])
-- === Tracage des Signaux (Partie 1) ===
plot_shape(
buyCondition,
"Signal ACHAT",
shape_style.arrowup,
shape_size.large,
colorBuy,
shape_location.belowbar,
0, -- offset
"BUY",
colorBuy -- text_color
)
plot_shape(
sellCondition,
"Signal VENTE",
shape_style.arrowdown,
shape_size.large,
colorSell,
shape_location.abovebar,
0, -- offset
"SELL",
colorSell -- text_color
)
-- === Deuxieme Partie du Script ===
-- Nouvel instrument (bien que cela puisse etre dans le meme, je le garde comme dans
les images)
instrument {
name = 'BUY-SELL SIGNALS_Part2',
short_name = 'BS_Signals_Part2',
overlay = true
}
-- icon = 'https://bit.ly/3C8cIFO' -- URL d'icone optionnelle
-- === Configuration des Parametres (Partie 2) ===
input_group {
"Area Up and Down",
colorAreaUp = input { default = "rgba(34, 139, 34, 0.3)", type = input.color },
colorAreaDown = input { default = "rgba(220, 20, 60, 0.3)", type = input.color },
visibleArea = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlowLine = input { default = "purple", type = input.color }, -- Renomme pour
plus de clarte
widthSlowLine = input { default = 2, type = input.line_width },
visibleSlowLine = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy Outside Bar",
colorBuyOutside = input { default = "lime", type = input.color },
visibleBuyOutside = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Outside Bar",
colorSellOutside = input { default = "red", type = input.color },
visibleSellOutside = input { default = true, type = input.plot_visibility }
}
-- Parametres pour les Moyennes Mobiles Personnalisees
MaFast_period_custom = input(3, "Ma Fast period", input.integer, 1, 1000, 1)
MaFast_average_type = input(4, "Ma Fast average", input.string_selection,
averages.titles)
MaFast_data_source = input(1, "Ma Fast title", input.string_selection, inputs.titles)
MaSlow_period_custom = input(7, "Ma Slow period", input.integer, 1, 1000, 1)
MaSlow_average_type = input(2, "Ma Slow average", input.string_selection,
averages.titles)
MaSlow_data_source = input(1, "Ma Slow title", input.string_selection, inputs.titles)
MaTrend_period_custom = input(100, "Ma Trend period", input.integer, 1, 1000, 5)
MaTrend_average_type = input(1, "Ma Trend average", input.string_selection,
averages.titles)
MaTrend_data_source = input(1, "Ma Trend title", input.string_selection, inputs.titles)
input_group {
"Buy Arrow",
colorBuyArrow = input { default = "lime", type = input.color },
visibleBuyArrow = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Arrow",
colorSellArrow = input { default = "red", type = input.color },
visibleSellArrow = input { default = true, type = input.plot_visibility }
}
-- === Calculs et Tracage des Moyennes Mobiles Personnalisees (Partie 2) ===
-- Recuperer les fonctions de moyenne mobile et les series de donnees
local fast_ma_function = averages[MaFast_average_type]
local fast_data_series = inputs[MaFast_data_source]
local slow_ma_function = averages[MaSlow_average_type]
local slow_data_series = inputs[MaSlow_data_source]
local trend_ma_function = averages[MaTrend_average_type]
local trend_data_series = inputs[MaTrend_data_source]
-- Calculer les moyennes mobiles personnalisees
MaFast_custom = fast_ma_function(fast_data_series, MaFast_period_custom)
MaSlow_custom = slow_ma_function(slow_data_series, MaSlow_period_custom)
MaTrend_custom = trend_ma_function(trend_data_series, MaTrend_period_custom)
-- Tracer les moyennes mobiles si visibilite activee
if visibleSlowLine == true then
plot(MaSlow_custom, "Ma Slow Custom", colorSlowLine, widthSlowLine)
end
-- === Generation et Tracage des Signaux Avances (Partie 2) ===
-- Exemple de logique pour un signal d'achat "Outside Bar"
-- (Prix depasse les extremes de la bougie precedente)
is_outside_bar_bull = (high > high[1]) and (low < low[1]) and (close > open)
-- Simplification: Bougie actuelle englobe la precedente ET est haussiere
-- Exemple de logique pour un signal de vente "Outside Bar"
is_outside_bar_bear = (high > high[1]) and (low < low[1]) and (close < open)
-- Simplification: Bougie actuelle englobe la precedente ET est baissiere
-- Tracer les signaux "Outside Bar" si visibilite activee
if visibleBuyOutside == true then
plot_shape(
is_outside_bar_bull,
"Outside Bar Bull",
shape_style.triangleup,
shape_size.huge,
colorBuyOutside,
shape_location.belowbar,
0,
"TOURO", -- Texte
colorBuyOutside -- Couleur du texte
)
end
if visibleSellOutside == true then
plot_shape(
is_outside_bar_bear,
"Outside Bar Bear",
shape_style.triangledown,
shape_size.huge,
colorSellOutside,
shape_location.abovebar,
0,
"URSO", -- Texte
colorSellOutside -- Couleur du texte
)
end
-- Tracer les fleches d'achat/vente simples si visibilite activee
-- (Exemple basique base sur la direction du prix)
is_simple_buy_signal = (close > open) and (close[1] < open[1]) -- Changement de
baissier a haussier
is_simple_sell_signal = (close < open) and (close[1] > open[1]) -- Changement de
haussier a baissier
if visibleBuyArrow == true then
plot_shape(
is_simple_buy_signal,
"Simple Buy Arrow",
shape_style.arrowup,
shape_size.normal, -- Taille plus petite
colorBuyArrow,
shape_location.belowbar,
0,
"", -- Pas de texte
colorBuyArrow
)
end
if visibleSellArrow == true then
plot_shape(
is_simple_sell_signal,
"Simple Sell Arrow",
shape_style.arrowdown,
shape_size.normal, -- Taille plus petite
colorSellArrow,
shape_location.abovebar,
0,
"", -- Pas de texte
colorSellArrow
)
end
-- === Tracage de Zones Colorees (Area Fill) ===
-- Remplir la zone entre deux series
-- seulement si la visibilite est activee
if visibleArea == true then
-- Exemple: Remplir en vert si MaFast > MaSlow, en rouge sinon
-- Note: QCS peut ne pas supporter fill directement comme ca.
-- Utilisation de la syntaxe hypothetique vue dans d'autres scripts.
fill { first = MaFast_custom, second = MaSlow_custom, color = "rgba(34, 139, 34,
0.2)" }
end
-- Script : "SNIPER ELITE" (Version Finale Corrigee)
instrument {
name = "SNIPER ELITE",
short_name = "SNIPER_ELITE",
-- Note: L'URL d'icone etait presente mais longue. Remplacee par une icone standard.
icon = "indicators:ADX",
overlay = true
}
-- === Configuration des Parametres ===
MaFast_period = input(1, "Ma Fast period", input.integer, 1, 1000, 1)
MaValue_input = input(5, "Ma Value", input.string_selection, inputs.titles) -- Renomme
pour eviter conflit
MaSlow_period = input(34, "Ma Slow period", input.integer, 1, 1000, 1)
Signal_period = input(5, "Signal period", input.integer, 1, 1000, 1) -- Corrige la valeur
par defaut
input_group {
"Comprar",
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 }
}
-- === Calculs de Base ===
-- Recuperer la serie de donnees selectionnee par l'utilisateur
local titleValue = inputs[MaValue_input]
-- Calculer les Moyennes Mobiles Simples
smaFast = sma(titleValue, MaFast_period)
smaSlow = sma(titleValue, MaSlow_period)
-- Calculer le Buffer (Difference entre les deux MM)
buffer1 = smaFast - smaSlow
-- Appliquer un Lissage (WMA) au buffer
buffer2 = wma(buffer1, Signal_period)
-- === Generation des Signaux ===
-- Conditions pour les signaux d'achat et de vente
-- Ces conditions detectent un croisement
buyCondition = (buffer1 > buffer2) and (buffer1[1] <= buffer2[1])
sellCondition = (buffer1 < buffer2) and (buffer1[1] >= buffer2[1])
-- === Tracage des Signaux ===
plot_shape(
buyCondition,
"Signal ACHAT",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0, -- offset
"COMPRAR",
colorBuy -- text_color
)
plot_shape(
sellCondition,
"Signal VENTE",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0, -- offset
"VENDA",
colorSell -- text_color
)
-- === Deuxieme Partie du Script (Optionnelle, pour separation visuelle) ===
-- Creation d'un nouvel instrument n'est generalement pas necessaire
-- si tout le code est dans le meme fichier. Je le garde commente
-- au cas ou vous voudriez le separer.
--[[
instrument {
name = 'SNIPER ELITE - Partie 2',
short_name = 'SNIPER_ELITE_P2',
icon = 'indicators:MACD',
overlay = true
}
--]]
-- === Exemple de Tracage de Lignes de Niveaux (optionnel) ===
-- Vous pouvez ajouter des lignes horizontales ou d'autres elements visuels ici
-- Exemple: Tracer le niveau actuel du prix de cloture
-- plot(close, "Prix de Cloture", "gray", 1, 0, style.levels, na_mode.continue)
-- === Exemple de Remplissage (Fill) entre deux series (si supporte) ===
-- Remplir la zone entre smaFast et smaSlow (exemple theorique)
-- Remarque: Le support reel de 'fill' depend de votre environnement QCS
--[[
if visibleArea == true then -- Assurez-vous d'avoir un input 'visibleArea' si vous utilisez
ca
fill { first = smaFast, second = smaSlow, color = "rgba(100, 100, 100, 0.2)" }
end
--]]
-- === Exemple de Fonction Utilitaire (comme dans les images) ===
-- Cette fonction montre comment creer une serie personnalisee
-- Note: La logique interne etait incomplete dans l'image originale
local function exemple_fonction_utilitaire()
-- Cree une nouvelle serie
local ma_serie = make_series()
-- Exemple de calcul (a adapter a votre logique)
local valeur_calculee = (high + low) / 2
-- Verifie si la valeur existe
if not na(valeur_calculee) then
-- Definit la valeur de la serie
ma_serie:set(valeur_calculee)
-- Vous pouvez faire d'autres operations ici
end
-- Retourne la serie
return ma_serie
end
-- === Appel de la Fonction Utilitaire (exemple) ===
-- serie_resultat = exemple_fonction_utilitaire()
-- plot(serie_resultat, "Resultat Fonction", "purple", 1)
-- === Configuration pour Methodes/Types (exemple) ===
-- Si vous avez des methodes differentes a selectionner
method_id = input(1, "Type", input.string_selection, { "Methode 1 - SNIPER" }) --
Corrige le libelle
-- === Logique Conditionnelle Basee sur la Methode ===
-- Exemple de gestion de differentes methodes
if method_id == 1 then
-- Logique pour la Methode 1 (par defaut, deja implementee ci-dessus)
-- Vous pouvez ajouter d'autres methodes ici
end
-- === Tracage de Niveaux Fixes (exemple C1, C2) ===
-- Comme mentionne dans la derniere image, voici comment tracer des niveaux
simples
-- Ces niveaux sont ici definis arbitrairement comme close et close[1]
-- Vous devez les definir selon votre logique (par exemple, niveaux de FVG, S/R, etc.)
local niveau_c1 = close -- Exemple: Dernier prix de cloture
local niveau_c2 = close[1] -- Exemple: Prix de cloture de la bougie precedente
-- Couleurs et largeurs pour les niveaux (a definir si vous les utilisez)
level_1_color = "blue" -- Exemple de couleur
level_1_width = 1 -- Exemple d'epaisseur
level_2_color = "orange" -- Exemple de couleur
level_2_width = 1 -- Exemple d'epaisseur
-- Tracer les niveaux C1 et C2
plot(niveau_c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot(niveau_c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue)
-- Script : "NEXT CANDLE" (Version Finale Corrige)
instrument {
name = 'NEXT CANDLE',
short_name = 'NEXT CANDLE',
icon = 'indicators:MACD', -- Icne intgre pour viter les erreurs de chargement
overlay = true
}
-- === Partie 1 : Niveaux Maxima/Minima ===
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
-- Exemple de dfinition de niveaux ( adapter votre logique)
-- Ici, nous utilisons simplement le dernier close et le close prcdent
-- comme dans l'exemple de la photo 5.
c1 = close -- Niveau C1: Dernier prix de cloture
c2 = close[1] -- Niveau C2: Prix de cloture de la bougie prcdente
-- Tracage des niveaux C1 et C2
plot(c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot(c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue)
-- === Partie 2 : Bandes (Bollinger-like) ===
instrument {
name = 'NEXT CANDLE - Bandes',
short_name = 'NC_BANDES',
icon = 'indicators:BB', -- Icne intgre pour Bandes de Bollinger
overlay = true
}
input_group {
"Affichage",
Exibir_tracamento = input(1, "Deseja exibir o tracamento?", input.string_selection,
{"SIM", "NAO"})
}
input_group {
"BANDE SUPERIEURE",
bbspup_color = input { default = "silver", type = input.color }
}
input_group {
"BANDE INFERIEURE",
bbinf_color = input { default = "Silver", type = input.color }
}
input_group {
"Ligne SMA",
ema_color = input { default = "blue", type = input.color },
width = input { default = 1, type = input.line_width }
}
-- Calculs pour les bandes
sMAa = sma(close, 20) -- Note: '20' au lieu de '20' comme chaine
upper_band = sMAa + (stdev(close, 20) * 2.5)
lower_band = sMAa - (stdev(close, 20) * 2.5)
ema_line = ema(close, 190) -- Note: '190' au lieu de '190' comme chaine
-- Tracage conditionnel des bandes
if Exibir_tracamento == 1 then
plot(sMAa, "SMA", ema_color, width)
plot(upper_band, "UPPER_BAND", bbspup_color, 1)
plot(lower_band, "LOWER_BAND", bbinf_color, 1)
end
-- === Partie 3 : Signaux d'Achat/Vente (Moyennes Mobiles) ===
instrument {
name = 'NEXT CANDLE - Signaux',
short_name = 'NC_SIGNAUX',
icon = 'indicators:MA', -- Icne intgre pour Moyenne Mobile
overlay = true
}
-- Configuration des Parametres pour les signaux
input_group {
"Signal ACHAT Prochaine Bougie",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Signal VENTE Prochaine Bougie",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
MaFast_period = input(1, "Ma Fast period", input.integer, 1, 1000, 1)
MaValue = input(5, "Ma Value", input.string_selection, inputs.titles)
MaSlow_period = input(34, "Ma Slow period", input.integer, 1, 1000, 1)
Signal_period = input(5, "Signal period", input.integer, 1, 1000, 1)
-- Calculs de Base pour les signaux
local titleValue = inputs[MaValue]
-- media movel linear rapida
smaFast = sma(titleValue, MaFast_period)
-- media movel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- calculo da media movel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
-- Generation des Signaux (conditions de croisement)
-- buyCondition est vrai quand buffer1 passe au-dessus de buffer2
buyCondition = (buffer1 > buffer2) and (buffer1[1] <= buffer2[1])
-- sellCondition est vrai quand buffer1 passe en dessous de buffer2
sellCondition = (buffer1 < buffer2) and (buffer1[1] >= buffer2[1])
-- Tracage des Signaux
plot_shape(
buyCondition,
"NEXT CANDLE BUY",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0, -- offset
"NEXT CANDLE BUY",
colorBuy -- text_color
)
plot_shape(
sellCondition,
"NEXT CANDLE SELL",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0, -- offset
"NEXT CANDLE SELL",
colorSell -- text_color
)
-- Script QCS : Blue Sky 2023 - Version Finale Corrigee
-- Combine une moyenne mobile simple avec un oscillateur derive pour generer des
signaux.
instrument {
name = "Blue Sky 2023",
short_name = "BlueSky2023",
-- Remplacement de l'URL d'icone par une icone integree pour eviter les erreurs de
chargement
icon = "indicators:MA",
overlay = true
}
-- === Informations et Contacts (Affiches comme des selections) ===
-- Note: Ces inputs ne servent qu'a afficher l'information, ils ne sont pas utilises dans
les calculs.
contact_telegram = input(1, "Contato Telegram:", input.string_selection,
{ "@LEOMATH" })
grupo_telegram = input(1, "Grupo Telegram:", input.string_selection,
{ "@SCRIPTSOB" })
version_info = input(1, "Version:", input.string_selection, { "FREE" })
-- === Parametres de la Ligne SMA ===
input_group {
"Ligne SMA",
sma_color = input { default = "rgba(0, 229, 255, 0.25)", type = input.color },
sma_width = input { default = 3, type = input.line_width }
}
sma_period = input(3, "Periode SMA", input.integer, 1)
-- === Calcul et Tracage de la SMA ===
ma_line = sma(close, sma_period)
plot(ma_line, "SMA", sma_color, sma_width)
-- === Parametres pour les Signaux d'Achat/Vente (Oscillateur derive) ===
input_group {
"Parametres Signaux",
fast_ma_period = input(1, "Periode MA Rapide", input.integer, 1, 1000, 1),
slow_ma_period = input(34, "Periode MA Lente", input.integer, 1, 1000, 1),
signal_wma_period = input(5, "Periode WMA du Signal", input.integer, 1, 1000, 1),
ma_source_index = input(5, "Source des MA", input.string_selection, inputs.titles)
}
input_group {
"Styles Visuels Signaux",
buy_signal_color = input { default = "rgba(0, 131, 245, 0.84)", type = input.color },
sell_signal_color = input { default = "rgba(255, 50, 50, 0.84)", type = input.color }, --
Couleur rouge plus nette pour la vente
signal_shape_size = input { default = shape_size.huge, type = input.string_selection,
options = {shape_size.tiny, shape_size.small, shape_size.normal,
shape_size.large, shape_size.huge} }
}
-- === Calculs pour les Signaux d'Achat/Vente ===
-- Recuperer la serie source choisie par l'utilisateur
local source_series = inputs[ma_source_index]
-- Calculer les Moyennes Mobiles Lineaires
fast_ma = sma(source_series, fast_ma_period)
slow_ma = sma(source_series, slow_ma_period)
-- Calculer le Buffer Differentiel (Difference entre les deux MA)
buffer_diff = fast_ma - slow_ma
-- Lisser le Buffer avec une Moyenne Mobile Ponderee (WMA) pour creer la ligne de
signal
signal_line = wma(buffer_diff, signal_wma_period)
-- === Detection des Conditions de Trading ===
-- buy_condition est VRAIE quand le buffer_diff croise AU-DESSUS de la signal_line
buy_condition = (buffer_diff > signal_line) and (buffer_diff[1] <= signal_line[1])
-- sell_condition est VRAIE quand le buffer_diff croise EN-DESSOUS de la signal_line
sell_condition = (buffer_diff < signal_line) and (buffer_diff[1] >= signal_line[1])
-- === Visualisation des Signaux ===
-- Tracer un triangle vers le haut EN DESSOUS de la barre pour un signal d'achat
plot_shape(
buy_condition,
"Signal Achat (CALL)",
shape_style.triangleup, -- Style: triangle vers le haut
signal_shape_size, -- Taille configuree par l'utilisateur
buy_signal_color, -- Couleur configuree pour l'achat
shape_location.belowbar, -- Emplacement: en dessous de la barre
0, -- Offset: 0 (sur la barre actuelle)
"CALL", -- Texte affiche
buy_signal_color -- Couleur du texte
)
-- Tracer un triangle vers le bas AU-DESSUS de la barre pour un signal de vente
plot_shape(
sell_condition,
"Signal Vente (PUT)",
shape_style.triangledown, -- Style: triangle vers le bas
signal_shape_size, -- Taille configuree par l'utilisateur
sell_signal_color, -- Couleur configuree pour la vente
shape_location.abovebar, -- Emplacement: au-dessus de la barre
0, -- Offset: 0 (sur la barre actuelle)
"PUT", -- Texte affiche
sell_signal_color -- Couleur du texte
)
-- @fitrader - Bollinger Bands + EMA + Signaux
-- Version : 1.0
-- Auteur : Quant Expert
instrument {
name = "@fitrader",
short_name = "@fitrader",
icon = "indicators:BB",
overlay = true
}
-- Paramtres utilisateur
MaFast_period = input(1, "Ma Fast period", input.integer, 1, 1000, 1)
MaValue = input(5, "Ma Value", input.string_selection, inputs.titles)
MaSlow_period = input(34, "Ma Slow period", input.integer, 1, 1000, 1)
Signal_period = input(5, "Signal period", input.integer, 1, 1000, 1)
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 })
}
-- Calculs
titleValue = inputs[MaValue]
-- SMA rapide
smaFast = sma(titleValue, MaFast_period)
-- SMA lente
smaSlow = sma(titleValue, MaSlow_period)
-- Diffrence entre les deux SMAs
buffer1 = smaFast - smaSlow
-- Moyenne mobile pondre (EMA) de la diffrence
buffer2 = wma(buffer1, Signal_period)
-- Conditions d'achat
buyCondition = conditional(
buffer1 > buffer2 and buffer1[1] < buffer2[1]
and not (buffer1 < buffer2 and buffer1[1] > buffer2[1])
)
-- Conditions de vente
sellCondition = conditional(
buffer1 < buffer2 and buffer1[1] > buffer2[1]
and not (buffer1 > buffer2 and buffer1[1] < buffer2[1])
)
-- Trac des lignes
plot(upper_band, "UPPER_BAND", bbsup_color)
plot(lower_band, "LOWER_BAND", bbinf_color)
-- Affichage des signaux
if visibleBuy then
plot_shape(
buyCondition,
"ENTRAR",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"@fitrader",
"white"
)
end
if visibleSell then
plot_shape(
sellCondition,
"ENTRAR",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"@fitrader",
"white"
)
End
-- ================================
-- SuperTrend AFFINITY (reconstruit)
-- Compatible IQ Option / Quadcode
-- ================================
instrument {
name = "SuperTrend AFFINITY",
overlay = true
}
-- ========================
-- Inputs (groups comme PDF)
-- ========================
input_group {
"Periodo Max/Min",
doch_time = input { default = 36, type = input.integer, min = 1, max = 10000 }
}
input_group {
"Periodo da Micro Tendencia",
emaa_per = input { default = 21, type = input.integer, min = 1, max = 10000 }
}
input_group {
"Periodo da Macro Tendencia",
emab_per = input { default = 50, type = input.integer, min = 1, max = 10000 }
}
input_group {
"Media Rapida",
emac_per = input { default = 7, type = input.integer, min = 1, max = 10000 }
}
input_group {
"Media Lenta",
emad_per = input { default = 17, type = input.integer, min = 1, max = 10000 }
}
input_group {
"Candles",
positivo = input { default = "#1ae1e2", type = input.color }, -- bleu/vert vif
neutro = input { default = "white", type = input.color },
negativo = input { default = "#fa4be2", type = input.color } -- magenta
}
input_group {
"Lignes & Styles",
colorRes = input { default = "red", type = input.color },
colorSup = input { default = "green", type = input.color },
widthBand = input { default = 1, type = input.line_width },
colorEMAs = input { default = "orange", type = input.color },
widthEMAs = input { default = 1, type = input.line_width }
}
-- ============
-- Calculations
-- ============
-- EMAs micro/macro (prix de clture)
EMAA = ema(close, emaa_per) -- Micro-tendance
EMAB = ema(close, emab_per) -- Macro-tendance
-- EMAs rapides/lentes (sur HLC3 comme dans le PDF)
HLC3 = (high + low + close) / 3
EMAC = ema(HLC3, emac_per) -- Rapide
EMAD = ema(HLC3, emad_per) -- Lente
-- Canal Max/Min (Donchian) sur 'doch_time'
upper = highest(high, doch_time)
lower = lowest(low, doch_time)
-- ======================
-- Conditions de tendance
-- ======================
-- TA (tendance haussire "active") : bougie montante, au-dessus de EMAA, EMAA monte
TA = (close > close[1]) and (close > EMAA) and (EMAA > EMAA[1])
-- TB (tendance baissire "active") : bougie descendante, sous EMAA, EMAA baisse
TB = (close < close[1]) and (close < EMAA) and (EMAA < EMAA[1])
-- Croisements (optionnel, utile pour filtrer)
TC = (EMAC[1] < EMAD[1]) and (EMAC > EMAD) -- croisement haussier HLC3
TD = (EMAC[1] > EMAD[1]) and (EMAC < EMAD) -- croisement baissier HLC3
-- =========
-- Rendering
-- =========
-- Couleur des bougies suivant TA/TB (sinon neutre)
bar_color =
TA and positivo or
(TB and negativo or neutro)
-- Trac des bougies recolories
plot_candle(open, high, low, close, "SuperTrend Candles", bar_color)
-- Canal Donchian
plot(upper, "Resistencia", colorRes, widthBand)
plot(lower, "Suporte", colorSup, widthBand)
-- EMAs (micro/macro) pour le contexte
plot(EMAA, "EMA Micro", colorEMAs, widthEMAs)
plot(EMAB, "EMA Macro", colorEMAs, widthEMAs)
-- EMAs HLC3 rapide/lente (utile pour croisement)
plot(EMAC, "EMA Rapida (HLC3)", colorEMAs, widthEMAs)
plot(EMAD, "EMA Lenta (HLC3)", colorEMAs, widthEMAs)
-- Marqueurs (optionnels) pour signaux TC/TD
plot_shape(TC, "Cross Up", shape_style.triangleup, shape_size.small, "lime",
shape_location.belowbar)
plot_shape(TD, "Cross Down", shape_style.triangledown, shape_size.small, "red",
shape_location.abovebar)
instrument { name = "Impulse and slider penetration (1)", overlay = true }
period = input (20, "front.period", input.integer, 1)
shift = input (2, "front.newind.offset", input.double, 0.01, 300, 0.01)
fn = input (averages.ema, "front.newind.average", input.string_selection,
averages.titles)
input_group {
"front.top line",
upper_line_visible = input { default = true, type = input.plot_visibility },
upper_line_color = input { default = "#9FC5E8", type = input.color },
upper_line_width = input { default = 5, type = input.line_width }
}
input_group {
"front.bottom line",
lower_line_visible = input { default = true, type = input.plot_visibility },
lower_line_color = input { default = "#9FC5E8", type = input.color },
lower_line_width = input { default = 5, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_visible = input { default = true, type = input.plot_visibility },
fill_color = input { default = rgba(39, 196, 245, 0.17), type = input.color },
}
local averageFunction = averages [fn]
middle = averageFunction (hlc3, period)
offset = rma(tr, period) * shift
upper = middle + offset
lower = middle - offset
if fill_visible then
fill { first = upper, second = lower, color = fill_color }
end
if upper_line_visible then
plot (upper, "Upper", upper_line_color, upper_line_width, -1, style.points,
na_mode.continue)
end
if lower_line_visible then
plot (lower, "Lower", lower_line_color, lower_line_width, -1, style.points,
na_mode.continue)
end
if middle_line_visible then
plot (middle, "Middle", middle_line_color, middle_line_width)
end
instrument { name = "Impulse and slider penetration", overlay = true,
icon="indicators:ATR" }
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "#00FF09", type = input.color },
down_color = input { default = "#FF0000", type = input.color },
width = input { default = 2, type = input.line_width }
}
fn = input (averages.ema, "front.newind.average", input.string_selection,
averages.titles)
local avg = averages [fn]
--ema signal 1
src0 = close
len0 = 13
ema0 = ema(src0, len0)
rising1 = ema0[0] > ema0[1] and ema0[1] > ema0[2]
falling1 = ema0[2] > ema0[1] and ema0[1] > ema0[0]
--
direction = iff(rising1, 1,iff(falling1, -1, 0 ))
plot_color = iff(direction > 0 , up_color,iff( direction < 0, down_color , na))
plot(ema0, 'EMA',plot_color , width, -1, style.points, na_mode.continue)
--ema signal 2
src02 = close
len02 = 21
ema02 = ema(src02, len02)
rising2 = ema02[0] > ema02[1] and ema02[1] > ema02[2]
falling2 = ema02[2] > ema02[1] and ema02[1] > ema02[0]
direction2 = iff(rising2, 1,iff(falling2, -1, 0 ))
plot_color2 = iff(direction2 > 0 , up_color,iff( direction2 < 0, down_color , na))
plot(ema02, 'EMA Signal 2', width, -1, style.solid_line, na_mode.continue)
--ema signal out
dema = 2 * e_e1 - e_e2
--print(dema)
signal = iff(tema > dema , max (vh1, vl1) , min (vh1, vl1))
--print(signal)
instrument {
name = "Impulse and slider penetration(1)",
overlay = true
}
input_group {
"MACD",
"Slow and fast EMA periods, used in MACD calculation",
fast = input (12, "front.platform.fast period", input.integer, 1, 250),
slow = input (26, "front.platform.fast period", input.integer, 1, 250)
}
input_group {
"front.platform.signal-line",
"Reference signal series period",
signal_period = input (9, "front.period", input.integer, 1, 250)
}
input_group {
"front.newind.emaperiod",
ema_period = input (13, "front.period", input.integer, 1, 250)
}
input_group {
"front.newind.barcolors",
positive = input { default = "#2CAC40", type = input.color },
neutral = input { default = "#C7CAD1", type = input.color },
negative = input { default = "#DB4931", type = input.color },
}
fastMA = ema(close, fast)
slowMA = ema(close, slow)
macd = fastMA - slowMA
signal = sma(macd, signal_period)
hist = macd - signal
ema13 = ema (close, ema_period)
local bar_color
if ema13 > ema13 [1] and hist > hist [1] then
bar_color = positive
elseif ema13 < ema13 [1] and hist < hist [1] then
bar_color = negative
end
plot_candle (open, high, low, close, "ES", bar_color)
instrument {
name = "Impulse and slider penetration(2)",
short_name = "DiNapoli MACD [LazyBear]",
icon = "indicators:MACD"
}
lc = 17.5185
sc = 8.3896
sp = 9.0503
src = close
fs = nz(fs[1]) + 2.0 / (1.0 + sc) * (src- nz(fs[1]))
ss = nz(ss[1]) + 2.0 / (1.0 + lc) * (src - nz(ss[1]))
r = fs - ss
s = nz(s[1]) + 2.0/(1 + sp)*(r - nz(s[1]))
print(r)
rect {
first = 0,
second = r,
color = iff(r>0 ,'green','red'),
width = 0.4
}
instrument {
name = 'Grid Line V2//',
icon = 'https://www.vdk.be/sites/default/files/styles/teaser_image_xs/public/2019-09/
icon-profit.png?itok=0RrQq3c7',
overlay = false
}
input_group{
"Heikin Ashi",
colorUp = input { default = "#00FF2A", type = input.color },
colorDn = input { default = "#FF004E", type = input.color },
}
local haC = (1/4)*(open+high+low+close)
--local haO = (1/2)*(haC[3]+haC[2])
local haO = ssma(haC[1], 2)
local haH = max(high, max(haC,haO))
local haL = min(low, min(haC,haO))
plot_candle(haO, haH, haL,haC , "Ha", iff(haC > haO,colorUp ,colorDn ) )
instrument {
name = 'Grid Line V2',
icon = 'https://www.vdk.be/sites/default/files/styles/teaser_image_xs/public/2019-09/
icon-profit.png?itok=0RrQq3c7',
overlay = true
}
setFix = input(5, "Set Point", input.double, 0.000001)
sec = security (current_ticker_id, "1H")
--print(current_ticker_id) -- 84 79 85 6 3 4 101 106 949 1024 // XAUUSD 74
local getID = {84, 79, 85, 6, 3, 4, 101, 106, 949, 1024}
local len_getID = #getID
--print(len_getID)
if current_ticker_id == 74 then
roundSet = 1
calSetfix = 0.01
else --JPY
for i = 1, len_getID, 1 do
if current_ticker_id == getID[i] then
roundSet = 10
calSetfix = 0.001
break
else
roundSet = 1000
calSetfix = 0.00001
end
end
end
if sec then
getPrice = sec.open[0]
intPrice = round(roundSet * getPrice )
pricePivot = intPrice /roundSet
for i = -15, 15, 1 do
priceLevel = pricePivot + (i * setFix * calSetfix)
if i == 0 then
color = "white"
wd =3
elseif i < 0 then
color = "red"
wd =1
elseif i > 0 then
color = "#00FF2A"
wd =1
end
plot(priceLevel, i, color,wd, 0, style.levels)
end
end
instrument { name = "PTT Channels", overlay = true }
period = input (20, "front.period", input.integer, 1)
shift = input (1.5, "front.newind.offset", input.double, 0.01, 300, 0.01)
fn = input (averages.ema, "front.newind.average", input.string_selection,
averages.titles)
input_group {
"front.top line",
upper_line_visible = input { default = false, type = input.plot_visibility },
upper_line_color = input { default = "#21B190", type = input.color },
upper_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.bottom line",
lower_line_visible = input { default = false, type = input.plot_visibility },
lower_line_color = input { default = "#21B190", type = input.color },
lower_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_visible = input { default = true, type = input.plot_visibility },
fill_color = input { default = rgba(246, 245, 255, 0.22), type = input.color },
}
local averageFunction = averages [fn]
middle = averageFunction (hlc3, period)
offset = rma(tr, period) * shift
upper = middle + offset
lower = middle - offset
if fill_visible then
end
if upper_line_visible then
plot (Upper, "Upper", upper_line_color, upper_line_width)
end
if lower_line_visible then
plot (lower, "Lower", lower_line_color, lower_line_width)
end
if middle_line_visible then
plot (middle, "Middle", middle_line_color, middle_line_width)
end
instrument{name="PTT Channels",
short_name="compra/venda",
icon = 'indicators:BB',
overlay=true}
Exibir_tracamento= input(1, "Deseja exibir o tracamento?", input.string_selection,
{"SIM", "NAO"})
input_group {
"BANDA SUPERIOR",
bbsup_color = input { default = "#24FF00", type= input.color},
width = input { default = 18, type = input.line},
}
input_group {
"BANDA INFERIOR",
bbinf_color = input { default = "#E035FD", type= input.color},
width = input { default = 18, type = input.line},
}
smaa= sma(close, '20')
upper_band= smaa + (stdev(close,20) * 2.5)
lower_band= smaa - (stdev(close,20) * 2.5)
emaa= ema(close, '200')
if Exibir_tracamento == 1 then
end
instrument {name ="PTT Channels", short_name ="MEDIAS", overlay=true}
exibir_tracamento = input ( 1, "Desea exibir?", input.string_selection, {"SI","No"})
input_group { "Up", up_color = input{ default = "green", type = input.color }}
input_group { "Down", Down_color = input{ default = "red", type = input.color }}
sec = security(current_ticker_id, "1m")
smaa = ema(close, '4')
smab = ema(close, '10')
smaao = ema(open, '4')
smabo = ema(open, '10')
plot(smaa, "EMA", smaa_color)
plot(smab, "EMA", smab_color)
emaa = ema(close, '10')
period = input (500, "front.period", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
fn = input (1, "front.newind.average", input.string_selection, averages.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#71F73F", type = input.color },
down_color = input { default = "#FA0A53", type = input.color }
}
local sourceSeries = inputs [source]
local averageFunction = averages [fn]
mean = averageFunction (sourceSeries, period)
mad = sourceSeries - mean
rect {
first = 0,
second = mad,
color = mad >= mad [1] and up_color or down_color,
width = 0.4
}
if
( mad <= 0 and ( mad[1] > mad) and (smaa < smab) and (smaao > smabo) and close
<= emaa ) then
plot_shape (1,
"Vende",
shape_style.triangledown,
shape_size.huge,
down_color,
shape_location.abovebar,
0,
" Overbought Sell in trend",
"#ffffff",
1)
end
if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao
< smabo)
then
plot_shape (1 ,
"Compra",
shape_style.triangleup,
shape_size.huge,
up_color,
shape_location.belowbar,
0,
"oversold Buy in trend",
"#ffffff",
1)
end
instrument { name = " PTT Channels",
icon="https://yt3.ggpht.com/a/AATXAJwZzhmVZb3fA6sRjQhK1kJXtPLG9l1f4UmLfA=s90
0-c-k-c0xffffffff-no-rj-mo", overlay = true }
method_id = input (1, "Type", input.string_selection, { "COMPRA/VENDA" })
input_group {
"Maxima",
level_1_color = input { default = "rgba(0, 255, 0, 0.30)", type = input.color },
level_1_width = input { default = 5, type = input.line_width }
}
input_group {
"Minima",
level_2_color = input { default = "rgba(255, 0, 0, 0.35)", type = input.color },
level_2_width = input { default = 5, type = input.line_width }
}
local function m1(candle)
c1 = candle.high
c2 = candle.low
end
local methods = { m1 }
local resolution = "1m"
sec = security (current_ticker_id, resolution)
if sec then
local method = methods [method_id]
method (sec)
plot (c1, "C1", level_1_color, level_1_width, 0, style.area)
plot (c2, "C2", level_2_color, level_2_width, 0, style.area) --IQ OPTION SCRIPT
HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
end
instrument {
name = 'FVG MTF2',
icon = 'https://th.bing.com/th/id/OIP.c9F5P1iv8vzlfAZNK1k4OwAAAA?
rs=1&pid=ImgDetMain',
overlay = true
}
tf_src = { "1m","5m", "10m", "15m", "30m", "1H", "2H", "4H", "8H", "12H", "1D", "1W",
"1M", "1Y"}
ft_sr = input(1, "FVG Multi TF | From ... ", input.string_selection, tf_src)
tfzone = get_value(tf_src[ft_sr]) -- Time zone string
input_group {
"Filling Bull-Bear",
fill_warning_color = input {default = rgba(0, 255, 255, 0.20), type = input.color},
fill_warning_color1 = input {default = rgba(255, 0, 255, 0.21), type = input.color},
VisibleFill = input {default = true, type = input.plot_visibility},
}
input_group {
"H Line",
hline_colorUp = input {default = rgba(0, 255, 255, 0.5), type = input.color},
hline_colorDn = input {default = rgba(255, 0, 255, 0.5), type = input.color},
widthLine = input {default = 1, type = input.line_width},
VisibleLine = input {default = false, type = input.plot_visibility},
}
input_group {
"Show Block High-Low",
HLow = input { default = true, type = input.plot_visibility }
}
input_group {
"Show Block Open-Close",
COpen = input { default = true, type = input.plot_visibility }
}
width = input(1, "witdth", input.double, 0.1, 100, 0.1)
local timeFormats = {
["1s"] = 1,
["5s"] = 5,
["10s"] = 10,
["15s"] = 15,
["30s"] = 30,
["1m"] = 60,
["2m"] = 120,
["5m"] = 300,
["10m"] = 600,
["15m"] = 900,
["30m"] = 3600 * 0.5,
["1H"] = 3600 * 1,
["2H"] = 3600 * 2,
["4H"] = 3600 * 4,
["8H"] = 3600 * 8,
["12H"] = 3600 * 12,
["1D"] = 3600 * 24,
["1W"] = 3600 * 24 * 7,
["1M"] = 3600 * 24 * 7 * 4,
["1Y"] = 3600 * 24 * 7 * 4 * 12
}
get_srzone = get_value(timeFormats[tfzone])
bar_SRtf = get_value(round(get_srzone / resolution))
secSR = security(current_ticker_id, tfzone)
if HLow == true then
if secSR.close[2 * bar_SRtf] > secSR.open[2 * bar_SRtf] and secSR.high[3 * bar_SRtf]
< secSR.low[1 * bar_SRtf] then
if VisibleFill then
rect(secSR.high[3 * bar_SRtf], secSR.low[1 * bar_SRtf], "fillBulHHLL",
fill_warning_color, width)
end
if VisibleLine then
hline(secSR.high[3 * bar_SRtf], "HighLineUpHL", hline_colorUp, widthLine)
hline(secSR.low[1 * bar_SRtf], "LowLineUpHL", hline_colorUp, widthLine)
end
end
if secSR.close[2 * bar_SRtf] < secSR.open[2 * bar_SRtf] and secSR.low[3 * bar_SRtf]
> secSR.high[1 * bar_SRtf] then
if VisibleFill then
rect(secSR.low[3 * bar_SRtf], secSR.high[1 * bar_SRtf], "FillBearHHLL",
fill_warning_color1, width)
end
if VisibleLine then
hline(secSR.high[1 * bar_SRtf], "HighLineDnHL", hline_colorDn, widthLine)
hline(secSR.low[3 * bar_SRtf], "LowLineDnHL", hline_colorDn, widthLine)
end
end
end
if COpen == true then
if secSR.close[2 * bar_SRtf] > secSR.open[2 * bar_SRtf] and secSR.high[3 * bar_SRtf]
< secSR.low[1 * bar_SRtf] then
if VisibleFill then
rect(max(secSR.close[3 * bar_SRtf], secSR.open[3 * bar_SRtf]),
min(secSR.close[1 * bar_SRtf], secSR.open[1 * bar_SRtf]), "FillBull0penClose",
fill_warning_color, width)
end
if VisibleLine then
hline(max(secSR.close[3 * bar_SRtf], secSR.open[3 * bar_SRtf]),
"HighLineUpOC", hline_colorUp, widthLine)
hline(min(secSR.close[1 * bar_SRtf], secSR.open[1 * bar_SRtf]), "LowLineUpOC",
hline_colorUp, widthLine)
end
end
if secSR.close[2 * bar_SRtf] < secSR.open[2 * bar_SRtf] and secSR.low[3 * bar_SRtf]
> secSR.high[1 * bar_SRtf] then
if VisibleFill then
rect(min(secSR.close[3 * bar_SRtf], secSR.open[3 * bar_SRtf]),
max(secSR.close[1 * bar_SRtf], secSR.open[1 * bar_SRtf]), "FillBearOpenClose",
fill_warning_color1, width)
end
if VisibleLine then
hline(max(secSR.close[1 * bar_SRtf], secSR.open[1 * bar_SRtf]),
"HighLineDnOC", hline_colorDn, widthLine)
hline(min(secSR.close[3 * bar_SRtf], secSR.open[3 * bar_SRtf]), "LowLineDnOC",
hline_colorDn, widthLine)
end
end
end
instrument {
name = 'Pivot Price',
icon = 'https://freesoft.ru/storage/images/208/2075/207410/207410_normal.png',
overlay = true
}
periodL = input(4, "Left", input.integer, 1)
periodR = input(5, "Right", input.integer, 1)
input_group {
"Support & Resistance",
colorS = input { default = rgba(3, 175, 34, 1), type = input.color },
colorR = input { default = rgba(236, 23, 6, 1), type = input.color },
width = input { default = 1, type = input.line_width},
visibleSR = input { default = true, type = input.plot_visibility },
}
local function pivotHHprice(l, r)
local tablePivot = {}
for i = 0, r-2, 1 do
if high[r-1] > high[i] then
table.insert(tablePivot, 0)
else
table.insert(tablePivot, 1)
end
end
for j = r, l + r - 1 , 1 do
if high[r-1] > high[j] then
table.insert(tablePivot, 0)
else
table.insert(tablePivot, 1)
end
end
table.sort(tablePivot)
position_r = tablePivot[#tablePivot] == 0 and r or 0
return position_r
end
local function pivotLLprice(l, r)
local tablePivot = {}
for i = 0, r-2, 1 do
if low[r-1] < low[i] then
table.insert(tablePivot, 0)
else
table.insert(tablePivot, 1)
end
end
for j = r, l + r - 1 , 1 do
if low[r-1] < low[j] then
table.insert(tablePivot, 0)
else
table.insert(tablePivot, 1)
end
end
table.sort(tablePivot)
position_r = tablePivot[#tablePivot] == 0 and r or 0
return position_r
end
pivotHHPricePlot = iff( pivotHHprice(periodL, periodR) == periodR, high[periodR], false)
pivotLLPricePlot = iff( pivotLLprice(periodL, periodR) == periodR, low[periodR], false)
plot_shape(pivotHHPricePlot, "pivotHHPricePlot", shape_style.triangledown,
shape_size.large, "red", shape_location.abovebar, -periodR+1, "HH", "red")
plot_shape(pivotLLPricePlot, "pivotLLPricePlot", shape_style.triangleup,
shape_size.large, "green", shape_location.belowbar, -periodR+1, "LL", "green")
local function positionOfPrice(array, countTrue)
position = {}
for i = 0, 300, 1 do
if get_value(array[i]) ~= false then
table.insert(position, i)
end
if #position == countTrue then
break
end
end
return position
end
positionsHH = positionOfPrice(pivotHHPricePlot, 2)
positionsLL = positionOfPrice(pivotLLPricePlot, 2)
positionsHH_1 = get_value(positionsHH[1] + (periodR - 1))
positionsHH_2 = get_value(positionsHH[2] + (periodR - 1))
positionsLL_1 = get_value(positionsLL[1] + (periodR - 1))
positionsLL_2 = get_value(positionsLL[2] + (periodR - 1))
if visibleSR then
hline(get_value(high[positionsHH_1]), "HH1", colorR, width)
hline(get_value(high[positionsHH_2]), "HH2", colorR, width)
hline(get_value(low[positionsLL_1]), "LL1", colorS, width)
hline(get_value(low[positionsLL_2]), "LL2", colorS, width)
rect(get_value(high[positionsHH_1]), get_value(high[positionsHH_2]), "fillHH",
rgba(175, 32, 3, 0.5) )
rect(get_value(low[positionsLL_1]), get_value(low[positionsLL_2]), "fillLL", rgba(2,
171, 12, 0.5) )
end
instrument { name = "Pivot Price2", icon =
'https://freesoft.ru/storage/images/208/2075/207410/207410_normal.png' }
period = input (28, "front.period", input.integer, 1)
input_group {
"front.ind.dpo.generalline",
color = input { default = "#96ADBC", type = input.color },
width = input { default = 1, type = input.line_width }
}
input_group {
"front.platform.baseline",
zero_color = input { default = rgba(255,255,255,0.15), type = input.color },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
input_group {
"front.newind.adx.fill",
fill_up_color = input { default = rgba(37,225,84,0.9), type = input.color },
fill_down_color = input { default = rgba(255,108,88,0.90), type = input.color },
fill_visible = input { default = true, type = input.plot_visibility }
}
psy = sma (iff (conditional (close > close [1]), 1, 0), period) * 100
if fill_visible then
fill (psy, 50, "", psy > 50 and fill_up_color or fill_down_color)
end
if zero_visible then
hline (50, "", zero_color, zero_width)
end
plot (psy, "PSY", color, width)
instrument {
name = ' OVB/OVS',
icon = 'indicators:MA',
overlay = false
}
BB_length = input(21, "BB_length", input.integer, 1)
BB_sdev = input(2.0, "BB_sdev", input.double, 0.001)
----BB
dev = BB_sdev * stdev(close, BB_length)
upperb = sma(close, BB_length) + dev
medium = sma(close, BB_length)
lowerb = sma(close, BB_length) - dev
--RSI
source = input(1, "Source", input.string_selection, inputs.titles)
local src = inputs[source]
len = input(2, "RSI Period", input.integer, 1)
lowerr = input(20, "lowerr", input.double, 0, 100, 1)
upperr = input(80, "upperr", input.double, 0, 100, 1)
rsx = rsi(src, len)
--print(rsx)
-----BB+RSI Strategy ---------------
showIndicator = (rsx > upperr and close > open and close[1] > open[1]) or (rsx <
lowerr and close < open and close[1] < open[1])
--print(showIndicator)
if showIndicator == true then
sell = rsx > upperr and (close > upperb)
buy = rsx < lowerr and (close < lowerb)
end
instrument { name = "OVB/OVS", overlay = false, icon="indicators:ATR" }
period = input (14, "front.period", input.integer, 1 )
multiplier = input (2, "front.newind.multiplier", input.double, 1 )
high_low = input (false, "HighLow", input.boolean)
input_group {
"front.newind.colors",
up = input { default = "#2CAC40", type = input.color },
down = input { default = "#DB4931", type = input.color },
width = input { default = 1, type = input.line_width }
}
atr = rma (tr, period) * multiplier
h = iff (high_low, high, close)
l = iff (high_low, low, close)
atr_ts = iff(close > nz(atr_ts[1], 0) and close[1] > nz(atr_ts[1], 0), max(nz(atr_ts[1]), h -
atr),
iff(close < nz(atr_ts[1], 0) and close[1] < nz(atr_ts[1], 0), min(nz(atr_ts[1]), l + atr),
iff(close > nz(atr_ts[1], 0), h - atr, l + atr)))
pos = iff(close[1] < nz(atr_ts[1], 0) and close > nz(atr_ts[1], 0), 1,
iff(close[1] > nz(atr_ts[1], 0) and close < nz(atr_ts[1], 0), -1, nz(pos[1], 0)))
plot (atr_ts, "", pos < 0 and down or up , width, 1, style.area)
instrument { name = "OVB/OVS", overlay = false, icon="indicators:ATR" }
period = input (14, "front.period", input.integer, 1 )
multiplier = input (2, "front.newind.multiplier", input.double, 1 )
high_low = input (false, "HighLow", input.boolean)
input_group {
"front.newind.colors",
up = input { default = "#2CAC40", type = input.color },
down = input { default = "#DB4931", type = input.color },
width = input { default = 1, type = input.line_width }
}
atr = rma (tr, period) * multiplier
h = iff (high_low, high, close)
l = iff (high_low, low, close)
atr_ts = iff(close > nz(atr_ts[1], 0) and close[1] > nz(atr_ts[1], 0), max(nz(atr_ts[1]), h -
atr),
iff(close < nz(atr_ts[1], 0) and close[1] < nz(atr_ts[1], 0), min(nz(atr_ts[1]), l + atr),
iff(close > nz(atr_ts[1], 0), h - atr, l + atr)))
pos = iff(close[1] < nz(atr_ts[1], 0) and close > nz(atr_ts[1], 0), 1,
iff(close[1] > nz(atr_ts[1], 0) and close < nz(atr_ts[1], 0), -1, nz(pos[1], 0)))
plot (atr_ts, "", pos < 0 and down or up , width, 1, style.area)
instrument { name = "OVB/OVS" ,
icon="https://img.freepik.com/premium-vector/modern-financial-technology-chart-
logo_501861-503.jpg?w=740"}
period = input (13, "front.period", input.integer, 1)
input_group {
"front.ind.dpo.generalline",
color = input { default = "#56CEFF", type = input.color },
width = input { default = 1, type = input.line_width}
}
input_group {
"front.newind.supportlines",
overbought = input (160, "front.overbought", input.double, 1, 200, 1, false),
oversold = input (10, "front.oversold", input.double, 1, 100, 1, false),
overbought_color = input { default = rgba(37,225,84,0.50), type = input.color },
oversold_color = input { default = rgba(255,108,88,0.50), type = input.color },
bg_color = input { default = rgba(255,255,255,0.05), type = input.color },
support_width = input { default = 4, type = input.line_width}
}
fill_area (overbought, oversold, "", bg_color)
hline { value = overbought, color = overbought_color, width = support_width, style =
style.dash_line }
hline { value = oversold, color = oversold_color, width = support_width, style =
style.dash_line }
dem_max = max (high - high[1], 0)
dem_min = max (low[1] - low, 0)
s_dem_max = sma (dem_max, period)
s_dem_min = sma (dem_min, period)
dem = s_dem_max / (s_dem_min + s_dem_max) * 100
instrument {
name = ' OVB/OVS(01)',
icon = 'https://img.freepik.com/premium-vector/modern-financial-technology-chart-
logo_501861-503.jpg?w=740',
overlay = true
BB_length = input(21, "BB_length", input.integer, 1)
BB_sdev = input(2.0, "BB_sdev", input.double, 0.001)
----BB
dev = BB_sdev * stdev(close, BB_length)
upperb = sma(close, BB_length) + dev
medium = sma(close, BB_length)
lowerb = sma(close, BB_length) - dev
plot(upperb, "upperb", "#22FA0A" )
plot(lowerb, "lowerb", rgba(192, 23, 6, 1), 2 )
fill(lowerb, upperb, "", rgba(191, 245, 54, 0.22))
--RSI
source = input(1, "Source", input.string_selection, inputs.titles)
local src = inputs[source]
len = input(2, "RSI Period", input.integer, 1)
lowerr = input(20, "lowerr", input.double, 0, 100, 1)
upperr = input(80, "upperr", input.double, 0, 100, 1)
rsx = rsi(src, len)
--print(rsx)
-----BB+RSI Strategy ---------------
showIndicator = (rsx > upperr and close > open and close[1] > open[1]) or (rsx <
lowerr and close < open and close[1] < open[1])
--print(showIndicator)
if showIndicator == true then
sell = rsx > upperr and (close > upperb)
buy = rsx < lowerr and (close < lowerb)
plot_shape(sell, "sell", shape_style.arrowdown, shape_size.large, "red",
shape_location.abovebar, 0, "#SS@", "white")
plot_shape(buy, "buy", shape_style.arrowup, shape_size.large, "green",
shape_location.belowbar, 0, "#BB@", "white")
end
instrument {
name = "Trend aeur V2",
overlay = true
}
input_group {
"MACD",
"Slow and fast EMA periods, used in MACD calculation",
fast = input (12, "front.platform.fast period", input.integer, 1, 250),
slow = input (26, "front.platform.fast period", input.integer, 1, 250)
}
input_group {
"front.platform.signal-line",
"Reference signal series period",
signal_period = input (9, "front.period", input.integer, 1, 250)
}
input_group {
"front.newind.emaperiod",
ema_period = input (13, "front.period", input.integer, 1, 250)
}
input_group {
"front.newind.barcolors",
positive = input { default = "#2EA3FC", type = input.color },
neutral = input { default = "#FFFFFF", type = input.color },
negative = input { default = "#DB4931", type = input.color },
}
fastMA = ema(close, fast)
slowMA = ema(close, slow)
macd = fastMA - slowMA
signal = sma(macd, signal_period)
hist = macd - signal
ema13 = ema (close, ema_period)
local bar_color
if ema13 > ema13 [1] and hist > hist [1] then
bar_color = positive
elseif ema13 < ema13 [1] and hist < hist [1] then
bar_color = negative
else
bar_color = neutral
end
plot_candle (open, high, low, close, "ES", bar_color)
instrument { name = "Trend aeur V2", overlay = true, icon =
'https://png.pngtree.com/png-vector/20220609/ourlarge/pngtree-arrow-reload-icon-
sign-symbol-png-image_4848798.png', }
period = input (14, "front.period", input.integer, 1 )
multiplier = input (2, "front.newind.multiplier", input.double, 1 )
high_low = input (false, "HighLow", input.boolean)
input_group {
"front.newind.colors",
up = input { default = rgba(0, 0, 255, 0.48), type = input.color },
down = input { default = rgba(255, 130, 0, 0.34), type = input.color },
width = input { default = 1, type = input.line_width }
}
atr = rma (tr, period) * multiplier
h = iff (high_low, high, close)
l = iff (high_low, low, close)
atr_ts = iff(close > nz(atr_ts[1], 0) and close[1] > nz(atr_ts[1], 0), max(nz(atr_ts[1]), h -
atr),
iff(close < nz(atr_ts[1], 0) and close[1] < nz(atr_ts[1], 0), min(nz(atr_ts[1]), l + atr),
iff(close > nz(atr_ts[1], 0), h - atr, l + atr)))
pos = iff(close[1] < nz(atr_ts[1], 0) and close > nz(atr_ts[1], 0), 1,
iff(close[1] > nz(atr_ts[1], 0) and close < nz(atr_ts[1], 0), -1, nz(pos[1], 0)))
plot (atr_ts, "", pos < 0 and down or up , width, -1, style.area, na_mode.continue)
instrument {
name = 'Trend Aeur V2 ',
icon = 'https://png.pngtree.com/png-vector/20220609/ourlarge/pngtree-arrow-reload-
icon-sign-symbol-png-image_4848798.png',
overlay = false
}
period = input(14, "RSI Period", input.integer, 1)
ovb = input(80, "OVB", input.double)
ovs = input(20, "OVS", input.double)
input_group{
"Heikin Ashi RSI",
colorUp = input { default = rgba(64, 152, 252, 1), type = input.color },
colorDn = input { default = rgba(220, 20, 60, 1), type = input.color },
local haC = (1/4)*(open+high+low+close)
--local haO = (1/2)*(haC[1]+haC[2])
local haO = ssma(haC[1], 2)
local haH = max(high, max(haC,haO))
local haL = min(low, min(haC,haO))
plot_candle(rsi(haO,period), rsi(haH,period), rsi(haL,period), rsi(haC,period) , "Ha",
iff(haC > haO, colorUp, colorDn ) )
hline(ovb, "OVB", "#63FC52", 2 , 2, style.levels, true)
hline(50, "h50", "#51AEF4", 1 , 0, style.levels, true)
hline(ovs, "OVS", "#F44336", 2 , 2, style.levels, true)
instrument {
name = ' BB+RSI strategy',
icon = 'indicators:MA',
overlay = true
}
BB_length = input(21, "BB_length", input.integer, 1)
BB_sdev = input(2.0, "BB_sdev", input.double, 0.001)
----BB
dev = BB_sdev * stdev(close, BB_length)
upperb = sma(close, BB_length) + dev
medium = sma(close, BB_length)
lowerb = sma(close, BB_length) - dev
plot(upperb, "upperb", "#22FA0A" )
plot(lowerb, "lowerb", rgba(192, 23, 6, 1), 2 )
fill(lowerb, upperb, "", rgba(32, 202, 396, 0.18))
--RSI
source = input(1, "Source", input.string_selection, inputs.titles)
local src = inputs[source]
len = input(2, "RSI Period", input.integer, 1)
lowerr = input(20, "lowerr", input.double, 0, 100, 1)
upperr = input(80, "upperr", input.double, 0, 100, 1)
rsx = rsi(src, len)
--print(rsx)
-----BB+RSI Strategy ---------------
showIndicator = (rsx > upperr and close > open and close[1] > open[1]) or (rsx <
lowerr and close < open and close[1] < open[1])
--print(showIndicator)
if showIndicator == true then
sell = rsx > upperr and (close > upperb)
buy = rsx < lowerr and (close < lowerb)
plot_shape(sell, "sell", shape_style.arrowdown, shape_size.large, "red",
shape_location.abovebar, 0, "Put", "red")
plot_shape(buy, "buy", shape_style.arrowup, shape_size.large, "green",
shape_location.belowbar, 0, "Call", "green")
end
instrument { name = "BB+RSI strategy", overlay = true }
percentage = input (1, "Percentage", input.double, 0.01, 100, 1.0) / 100
period = 3
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "#4CFA0A", type = input.color },
down_color = input { default = "#FAB40A", type = input.color },
width = input { default = 5, type = input.line_width }
}
local reference = make_series ()
reference:set(nz(reference[1], high))
local is_direction_up = make_series ()
is_direction_up:set(nz(is_direction_up[1], true))
local htrack = make_series ()
local ltrack = make_series ()
local pivot = make_series ()
reverse_range = reference * percentage / 100
if get_value (is_direction_up) then
htrack:set (max(high, nz(htrack[1], high)))
if close < htrack[1] - reverse_range then
pivot:set (htrack)
is_direction_up:set (false)
reference:set(htrack)
end
else
ltrack:set (min(low, nz(ltrack[1], low)))
if close > ltrack[1] + reverse_range then
pivot:set (ltrack)
is_direction_up:set(true)
reference:set (ltrack)
end
end
color = is_direction_up() and up_color or down_color
plot(pivot, 'ZZ', color, width, -1, style.dash_line, na_mode.continue)
instrument { name = "BB+RSI strategy", overlay = true }
percentage = input (1, "Percentage", input.double, 0.01, 100, 1.0) / 100
period = 3
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "#4CFA0A", type = input.color },
down_color = input { default = "#FAB40A", type = input.color },
width = input { default = 5, type = input.line_width }
}
local reference = make_series ()
reference:set(nz(reference[1], high))
local is_direction_up = make_series ()
is_direction_up:set(nz(is_direction_up[1], true))
local htrack = make_series ()
local ltrack = make_series ()
local pivot = make_series ()
reverse_range = reference * percentage / 100
if get_value (is_direction_up) then
htrack:set (max(high, nz(htrack[1], high)))
if close < htrack[1] - reverse_range then
pivot:set (htrack)
is_direction_up:set (false)
reference:set(htrack)
end
else
ltrack:set (min(low, nz(ltrack[1], low)))
if close > ltrack[1] + reverse_range then
pivot:set (ltrack)
is_direction_up:set(true)
reference:set (ltrack)
end
end
color = is_direction_up() and up_color or down_color
plot(pivot, 'ZZ', color, width, -1, style.levels, na_mode.continue)
instrument {
name = "BB+RSI strategy",
overlay = true
}
input_group {
"MACD",
"Slow and fast EMA periods, used in MACD calculation",
fast = input (12, "front.platform.fast period", input.integer, 1, 250),
slow = input (26, "front.platform.fast period", input.integer, 1, 250)
}
input_group {
"front.platform.signal-line",
"Reference signal series period",
signal_period = input (9, "front.period", input.integer, 1, 250)
}
input_group {
"front.newind.emaperiod",
ema_period = input (13, "front.period", input.integer, 1, 250)
}
input_group {
"front.newind.barcolors",
positive = input { default = "#2CAC40", type = input.color },
neutral = input { default = "#C7CAD1", type = input.color },
negative = input { default = "#DB4931", type = input.color },
}
fastMA = ema(close, fast)
slowMA = ema(close, slow)
macd = fastMA - slowMA
signal = sma(macd, signal_period)
hist = macd - signal
ema13 = ema (close, ema_period)
local bar_color
if ema13 > ema13 [1] and hist > hist [1] then
bar_color = positive
elseif ema13 < ema13 [1] and hist < hist [1] then
bar_color = negative
end
plot_candle (open, high, low, close, "ES", bar_color)
nstrument{name="GapsDago", icon='indicators:ADX', overlay=true}
input_group{
"Configuracin",
gap_up_color = input{default="yellow", type=input.color}, -- Color para gaps
alcistas (amarillo)
gap_down_color = input{default="yellow", type=input.color}, -- Color para gaps
bajistas (amarillo)
gap_width = input{default=2, type=input.line_width} -- Grosor de la lnea
local function detectar_gap()
local gap_up = na
local gap_down = na
local gap_size = 0
local prev_close = close[1] -- Cierre de la vela anterior
local curr_open = open[0] -- Apertura de la vela actual
-- Detectar gap alcista
if curr_open > prev_close then
gap_up = curr_open
gap_size = curr_open - prev_close
end
-- Detectar gap bajista
if curr_open < prev_close then
gap_down = prev_close
gap_size = prev_close - curr_open
end
return gap_up, gap_down, gap_size
end
local gap_up, gap_down, gap_size = detectar_gap()
-- Dibujar lneas en la zona del gap
if gap_up then
hline(gap_up, "Gap Alcista", gap_up_color, gap_width)
hline(close[1], "Cierre Anterior", gap_up_color, gap_width)
end
if gap_down then
hline(gap_down, "Gap Bajista", gap_down_color, gap_width)
hline(open[0], "Apertura Actual", gap_down_color, gap_width)
end
-- Mostrar el tamao del gap en pantalla
if gap_size > 0 then
text("Tamao del gap: " .. tostring(gap_size), 10, 20, "white")
end
instrument {
name = "Vingativo 1 Brasil",
icon="indicators:BB",
overlay = true
}
method_id = input(1, "Type", input.string_selection, { "ProBinaryBot" })
-- ** Configurao das Mdias Mveis**
MaFast_period = input(1, "Perodo da Mdia Rpida", input.integer, 1, 1000, 1)
MaSlow_period = input(4, "Perodo da Mdia Lenta", input.integer, 1, 1000, 1)
Signal_period = input(2, "Perodo do Sinal", input.integer, 1, 1000, 1)
-- ** Configurao Visual das Setas**
input_group {
" Configurao de Compra",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
" Configurao de Venda",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
-- ** Clculo das Mdias Mveis**
smaFast = sma(close, MaFast_period)
smaSlow = sma(close, MaSlow_period)
-- ** Clculo do Diferencial**
buffer1 = smaFast - smaSlow
buffer2 = wma(buffer1, Signal_period)
-- ** Condies Melhoradas para Compra e Venda**
buyCondition = (buffer1 > buffer2 and buffer1[1] > buffer2[1] and not (buffer1 <
buffer2 and buffer1[1] > buffer2[1]))
sellCondition = (buffer1 < buffer2 and buffer1[1] < buffer2[1] and not (buffer1 >
buffer2 and buffer1[1] < buffer2[1]))
-- ** Sinal de Compra (Corrigido e Melhorado)**
if buyCondition and visibleBuy then
plot_shape(
true,
" COMPRA",
shape_style.arrowup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"COMPRA TOP 1 Brasil",
"white"
)
end
-- ** Sinal de Venda (Corrigido e Melhorado)**
if sellCondition and visibleSell then
plot_shape(
true,
"VENDA",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"VENDA TOP 1 Brasil",
"white"
)
End
instrument {overlay = true,
name = 'SCRIPT WIN ROBSON TRADER 2022',
short_name = 'OTC',
icon="indicators:ADX"}
input_group { "OTC - UP COLOR", call_color = input { default="#00FFFF", type =
input.color } }
input_group { "OTC - DOWN COLOR", put_color = input { default="#FF00FF", type =
input.color } }
if ((close > close[1]) and (close[1] > open[2]) and (close[3] > close[2])) then
plot_shape(1,
'Bull_OTC',
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"CALL",
call_color )
else
if ((close < close[1]) and (close[1] < open[2]) and (close[3] < close[2])) then
plot_shape(1,
'Bear_OTC',
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"PUT",
put_color)
end
end
instrument {
name = 'Orculo S&R v1.0',
short_name = 'Orculo S&R',
icon = 'indicators:COMPASS',
overlay = true
}
--[--------------------------------------------------------------------------------------]
-- PARMETROS DE ENTRADA (INPUTS)
--[--------------------------------------------------------------------------------------]
input_group {
"Painel de Controle da Estratgia",
required_score = input(3, "Condies Mnimas (1 a 4)", input.integer, 1, 4, 1)
}
input_group {
"Configuraes - Suporte & Resistncia",
sr_timeframe = input("15m", "Timeframe do S&R", input.string),
plot_sr_lines = input(true, "Mostrar Linhas S&R?")
}
input_group {
"Configuraes - Canal Donchian",
donchian_period = input(20, "Perodo Donchian", input.integer, 1, 1000, 1)
}
input_group {
"Configuraes - Mdia Mvel",
ma_period = input(21, "Perodo Mdia Mvel", input.integer, 1, 1000, 1),
ma_type = input(2, "Tipo da Mdia", input.string_selection, averages.titles),
ma_source = input(1, "Fonte da Mdia", input.string_selection, inputs.titles)
}
input_group {
"Configuraes Visuais",
colorBuy = input { default = "lime", type = input.color },
colorSell = input { default = "red", type = input.color }
}
--[--------------------------------------------------------------------------------------]
-- LGICA PRINCIPAL DO SCRIPT
--[--------------------------------------------------------------------------------------]
-- 1. CLCULO DOS INDICADORES
local ma_value = averages[ma_type](inputs[ma_source], ma_period)
local upper_donchian = highest(inputs[ma_source], donchian_period)
local lower_donchian = lowest(inputs[ma_source], donchian_period)
-- 2. CLCULO DO FILTRO S&R (M15)
local sr_data = security(current_ticker_id, sr_timeframe)
local prev_sr_high = sr_data.high[1]
local prev_sr_low = sr_data.low[1]
-- Trava de segurana
if ma_value == nil or upper_donchian == nil or prev_sr_high == nil or high[4] == nil
then
return
end
--[----------------------------------------------------------------------------------]
-- SISTEMA DE PONTUAO (AGORA COM 4 CONDIES)
--[----------------------------------------------------------------------------------]
local buy_score = 0
local sell_score = 0
-- Condio 1: Suporte e Resistncia (M15) - A NOVA CONDIO
if (low <= prev_sr_low) then buy_score = buy_score + 1 end
if (high >= prev_sr_high) then sell_score = sell_score + 1 end
-- Condio 2: Canal Donchian
if (low <= lower_donchian) then buy_score = buy_score + 1 end
if (high >= upper_donchian) then sell_score = sell_score + 1 end
-- Condio 3: Mdia Mvel
if (close > ma_value) then buy_score = buy_score + 1 end
if (close < ma_value) then sell_score = sell_score + 1 end
-- Condio 4: Fractal
local is_fractal_low = low[2] < low[4] and low[2] < low[3] and low[2] < low[1] and
low[2] < low[0]
local is_fractal_high = high[2] > high[4] and high[2] > high[3] and high[2] > high[1]
and high[2] > high[0]
if (is_fractal_low) then buy_score = buy_score + 1 end
if (is_fractal_high) then sell_score = sell_score + 1 end
-- COMBINAO FINAL PELA PONTUAO
local FINAL_BUY_SIGNAL = (buy_score >= required_score)
local FINAL_SELL_SIGNAL = (sell_score >= required_score)
--[--------------------------------------------------------------------------------------]
-- PLOTAGEM DOS ELEMENTOS
--[--------------------------------------------------------------------------------------]
-- Plotar as linhas de S&R de M15 se a opo estiver ligada
if plot_sr_lines then
plot(prev_sr_high, "Resistncia M15", "red", 1, -1, style.dashed_line,
na_mode.continue)
plot(prev_sr_low, "Suporte M15", "green", 1, -1, style.dashed_line,
na_mode.continue)
end
-- Plotar os sinais de Compra e Venda
plot_shape(FINAL_BUY_SIGNAL, "Compra", shape_style.arrowup, shape_size.normal,
colorBuy, shape_location.belowbar, 0)
plot_shape(FINAL_SELL_SIGNAL, "Venda", shape_style.triangledown,
shape_size.normal, colorSell, shape_location.abovebar, 0)
instrument{name="SCRIPT NEXUS"}
instrument {
name = "SCRIPT NEXUS",
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
input_group {
"Compra",
colorBuy = input { default = "white", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Venda",
colorSell = input { default = "white", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"NEXUS",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"NEXUS",
"white"
)
plot_shape(
(sellCondition),
"NEXUS",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"NEXUS",
"white"
)
instrument {
name = '$ CashmoneY $',
short_name = 'script',
overlay = true
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
input_group {
"Compra",
colorBuy = input { default = "white", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
input_group {
"Venda",
colorSell = input { default = "white", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"$CashmoneY$",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"$CashmoneY$",
"white"
plot_shape(
(sellCondition),
"$CashmoneY$",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"$CashmoneY$",
"white"
instrument {
name = 'XYAA92',
short_name = 'XYAA92',
overlay = true
}
RSI_period = input(10,"RSI period",input.integer,1,1000,1)
RSI_average = input(1,"RSI average", input.string_selection,averages.titles)
RSI_title = input(1,"RSI title", input.string_selection,inputs.titles)
RSI_OVB1 = input(50,"RSI OVB1",input.double,0.01,100,1,false)
RSI_OVB2 = input(70,"RSI OVB2",input.double,0.01,100,1,false)
RSI_OVS1 = input(50,"RSI OVS1",input.double,0.01,100,1,false)
RSI_OVS2 = input(30,"RSI OVS2",input.double,0.01,100,1,false)
MaFast_period = input(5,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(1,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(10,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(20,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Ma Fast Line",
colorFast = input { default = "#ff56e8", type = input.color },
widthFast = input { default = 1, type = input.line_width},
visibleFast = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "#2d2af7", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Trend Line",
colorTrend = input { default = "#f74200", type = input.color },
widthTrend = input { default = 3, type = input.line_width},
visibleTrend = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy RSI X Out",
colorBuy = input { default = "lime", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell RSI X Out",
colorSell = input { default = "orangered", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy RSI X In",
colorBuy1 = input { default = "lime", type = input.color },
visibleBuy1 = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell RSI X In",
colorSell1 = input { default = "orangered", type = input.color },
visibleSell1 = input { default = true, type = input.plot_visibility }
}
instrument { name = "XYAA92 - XYAA92", overlay = true }
period = input (5, "front.period", input.integer, 1)
shift = input (1, "front.newind.offset", input.double, 0.01, 300, 0.01)
fn = input (averages.ema, "front.newind.average", input.string_selection,
averages.titles)
input_group {
"front.top line",
upper_line_visible = input { default = true, type = input.plot_visibility },
upper_line_color = input { default = "#21B190", type = input.color },
upper_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.middle line",
middle_line_visible = input { default = true, type = input.plot_visibility },
middle_line_color = input { default = rgba(33,177,144,0.6), type = input.color },
middle_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.bottom line",
lower_line_visible = input { default = true, type = input.plot_visibility },
lower_line_color = input { default = "#21B190", type = input.color },
lower_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_visible = input { default = true, type = input.plot_visibility },
fill_color = input { default = rgba(33,177,144,0.08), type = input.color },
}
local averageFunction = averages [fn]
middle = averageFunction (hlc3, period)
offset = rma(tr, period) * shift
upper = middle + offset
lower = middle - offset
if fill_visible then
fill { first = upper, second = lower, color = fill_color }
end
if upper_line_visible then
plot (upper, "Upper", upper_line_color, upper_line_width)
end
if lower_line_visible then
plot (lower, "Lower", lower_line_color, lower_line_width)
end
if middle_line_visible then
plot (middle, "Middle", middle_line_color, middle_line_width)
end
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
local avgRSI = averages[RSI_average]
local titleRSI = inputs[RSI_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
delta = titleRSI - titleRSI[1]
up = avgRSI(max(delta,0), RSI_period)
down = avgRSI(max(-delta,0), RSI_period)
RS = up/down
RES = 100 - 100/(1+ RS)
if (sec ~= nil) and (sec.open_time == open_time) then
Mafast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
Mafast1 = Mafast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1] --Ma Slow bar 1
MaTrend0 = avgTrend(titleTrend,MaTrend_period) --Ma Trend 0
Matrend1 = MaTrend0[1] --Ma Trend 1
if(visibleBuy == true) then
plot_shape(RES[1] < RSI_OVB1 and RES > RSI_OVB1 and close > Mafast0 and
Mafast0 > MaSlow0 and MaSlow0 > MaTrend0,
"XYAA5 COMPRA",
shape_style.flag,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"XYAA5 COMPRA",
colorBuy
)
end
if(visibleSell == true) then
plot_shape(RES[1] > RSI_OVS1 and RES < RSI_OVS1 and close < Mafast0 and
Mafast0 < MaSlow0 and MaSlow0 < MaTrend0,
"XYAA5 VENDA",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"XYAA5 VENDA",
colorSell
)
end
if(visibleBuy1 == true) then
plot_shape(RES[1] < RSI_OVS2 and RES > RSI_OVS2,
"XYAA5 COMPRA",
shape_style.flag,
shape_size.huge,
colorBuy1,
shape_location.belowbar,
0,
"XYAA5 COMPRA",
colorBuy1
)
end
if(visibleSell1 == true) then
plot_shape(RES[1] > RSI_OVB2 and RES < RSI_OVB2 ,
"XYAA5 VENDA",
shape_style.arrowdown,
shape_size.huge,
colorSell1,
shape_location.abovebar,
0,
"XYAA5 VENDA",
colorSell1
)
end
end
instrument {
name = "SCRIPT SUPER",
short_name = "Fredson Trader",
icon="indicators:ADX",
overlay = true
}
-- [INCIO DAS CONFIGURAES]
-- Nveis de 30 Minutos (M30)
input_group {
"Nveis de 30 Minutos (M30)",
visible_m30 = input { default = false, type = input.plot_visibility, name = "Mostrar
Nveis M30" },
level_m30_color = input { default = "cyan", type = input.color },
level_m30_width = input { default = 1, type = input.line_width }
}
-- Nveis de 1 Hora (H1)
input_group {
"Nveis de 1 Hora (H1)",
visible_h1 = input { default = false, type = input.plot_visibility, name = "Mostrar
Nveis H1" },
level_h1_color = input { default = "skyblue", type = input.color },
level_h1_width = input { default = 1, type = input.line_width }
}
-- Nveis de 2 Horas (H2)
input_group {
"Nveis de 2 Horas (H2)",
visible_h2 = input { default = false, type = input.plot_visibility, name = "Mostrar
Nveis H2" },
level_h2_color = input { default = "magenta", type = input.color },
level_h2_width = input { default = 2, type = input.line_width }
}
-- Nveis de 4 Horas (H4)
input_group {
"Nveis de 4 Horas (H4)",
visible_h4 = input { default = true, type = input.plot_visibility, name = "Mostrar
Nveis H4" },
level_h4_color = input { default = "purple", type = input.color },
level_h4_width = input { default = 2, type = input.line_width }
}
-- Nveis de 8 Horas (H8)
input_group {
"Nveis de 8 Horas (H8)",
visible_h8 = input { default = false, type = input.plot_visibility, name = "Mostrar
Nveis H8" },
level_h8_color = input { default = "yellow", type = input.color },
level_h8_width = input { default = 3, type = input.line_width }
}
-- Nveis de 12 Horas (H12)
input_group {
"Nveis de 12 Horas (H12)",
visible_h12 = input { default = false, type = input.plot_visibility, name = "Mostrar
Nveis H12" },
level_h12_color = input { default = "orange", type = input.color },
level_h12_width = input { default = 3, type = input.line_width }
}
-- Nveis do Dirio (D1)
input_group {
"Nveis do Dirio (D1)",
visible_d1 = input { default = true, type = input.plot_visibility, name = "Mostrar
Nveis D1" },
level_d1_max_color = input { default = "red", type = input.color },
level_d1_max_width = input { default = 4, type = input.line_width },
level_d1_min_color = input { default = "green", type = input.color },
level_d1_min_width = input { default = 4, type = input.line_width }
}
-- [FIM DAS CONFIGURAES]
-- [INCIO DA LGICA DE PLOTAGEM]
local function plot_levels_and_labels(timeframe_str, visible, color_max, color_min,
width, label_text)
if not visible then return end
local sec = security(current_ticker_id, timeframe_str)
if sec then
-- Desenha as linhas de mxima e mnima
plot(sec.high, "Maxima "..timeframe_str, color_max, width, 0, style.levels,
na_mode.continue)
plot(sec.low, "Minima "..timeframe_str, color_min, width, 0, style.levels,
na_mode.continue)
-- Desenha as etiquetas de texto na ltima barra
if is_last_bar then
-- Etiqueta para a linha de MXIMA (acima da linha)
plot_shape(true, "", shape_style.label_up, shape_location.price,
sec.high, 0, label_text, color_max, shape_size.tiny)
-- Etiqueta para a linha de MNIMA (abaixo da linha)
plot_shape(true, "", shape_style.label_down, shape_location.price,
sec.low, 0, label_text, color_min, shape_size.tiny)
end
end
end
-- Simplifiquei o cdigo para evitar repetio. Agora chamamos a funo para cada
timeframe.
plot_levels_and_labels("30m", visible_m30, level_m30_color, level_m30_color,
level_m30_width, "M30 @Fredson_trader")
plot_levels_and_labels("1H", visible_h1, level_h1_color, level_h1_color, level_h1_width,
"H1 @Fredson_trader")
plot_levels_and_labels("2H", visible_h2, level_h2_color, level_h2_color, level_h2_width,
"H2 @Fredson_trader")
plot_levels_and_labels("4H", visible_h4, level_h4_color, level_h4_color, level_h4_width,
"H4 @Fredson_trader")
plot_levels_and_labels("8H", visible_h8, level_h8_color, level_h8_color, level_h8_width,
"H8 @Fredson_trader")
plot_levels_and_labels("12H", visible_h12, level_h12_color, level_h12_color,
level_h12_width, "H12 @Fredson_trader")
plot_levels_and_labels("1D", visible_d1, level_d1_max_color, level_d1_min_color,
level_d1_max_width, "D1 @Fredson_trader")
instrument{name="PEGA O
RATO",icon='https://lh3.googleusercontent.com/ogw/ADea4I65OapvF7ZOUMZc_3J4Yx__
qVmvJD_jgzr4p8MZNks=s32-c-mo',overlay=true}
local function a()local
b=make_series()local c=high[2]
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{defa
ult=1,type=input.line_width}}h=a()l=e()hline(h,"High",color,high_width)hline(l,"Low",c
olor,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)
instrument { name = "PEGA O RATO", icon="indicators:ADX", overlay = true }
method_id = input (1, "Type", input.string_selection, { "RATO" })
instrument {
name = 'PEGA O RATO',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
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 }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"PEGAR O RATO",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"PEGAR O RATO",
"white"
)
plot_shape(
(sellCondition),
"PEGAR O RATO",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"PEGAR O RATO",
"white"
)
--CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----CASA TRADE LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----CASA TRADE LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--CASA TRADE LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--CASA TRADE HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--CASA TRADE HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----CASA TRADE LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----CASA TRADE LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----CASA TRADE LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--CASA TRADE HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--CASA TRADE HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----CASA TRADE LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----CASA TRADE LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--CASA TRADE LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--CASA TRADE HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--CASA TRADE HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----CASA TRADE LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --
CASA TRADE SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--CASA TRADE SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----CASA TRADE LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
end
instrument {overlay = true,
name = 'Fluxo 6.0',
short_name = 'FLUXO',
icon="indicators:ADX"}
input_group { "OTC - UP COLOR", call_color = input { default="#17f702", type =
input.color } }
input_group { "OTC - DOWN COLOR", put_color = input { default="#fc0303", type =
input.color } }
if ((close > close[2]) and (close[2] > open[2]) and (close[4] > close[8])) then
plot_shape(1,
'Bull_OTC',
shape_style.triangleup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"ENTRA",
"#fcfc03"
)
else
if ((close < close[2]) and (close[2] < open[2]) and (close[4] < close[8])) then
plot_shape(1,
'Bear_OTC',
shape_style.triangledown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"ENTRA",
"#fcfc03"
)
end
end
instrument { name = "Efectiv V1", overlay = true, icon="indicators:ATR" }
period = input (18, "front.period", input.integer, 1 )
multiplier = input (2, "front.newind.multiplier", input.double, 1 )
high_low = input (false, "HighLow", input.boolean)
input_group {
"front.newind.colors",
up = input { default = "#1cfc03", type = input.color },
down = input { default = "#fc0303", type = input.color },
width = input { default = 4, type = input.line_width }
}
atr = rma (tr, period) * multiplier
h = iff (high_low, high, close)
l = iff (high_low, low, close)
atr_ts = iff(close > nz(atr_ts[1], 0) and close[1] > nz(atr_ts[1], 0), max(nz(atr_ts[1]), h -
atr),
iff(close < nz(atr_ts[1], 0) and close[1] < nz(atr_ts[1], 0), min(nz(atr_ts[1]), l + atr),
iff(close > nz(atr_ts[1], 0), h - atr, l + atr)))
pos = iff(close[1] < nz(atr_ts[1], 0) and close > nz(atr_ts[1], 0), 1,
iff(close[1] > nz(atr_ts[1], 0) and close < nz(atr_ts[1], 0), -1, nz(pos[1], 0)))
plot (atr_ts, "", pos < 0 and down or up , width)
--[[
short = (pos[1] != pos[0]) and (pos[0] == -1) ? true : false
long = (pos[1] != pos[0]) and (pos[0] == 1) ? true : false
plotshape(long, style=shape.triangleup, location=location.belowbar, color=green,
size=size.tiny)
plotshape(short, style=shape.triangledown, location=location.abovebar, color=red,
size=size.tiny)
]]
instrument {overlay = true,
name = 'HACKER 3.0',
short_name = 'HACKER',
icon="indicators:HACKER"}
input_group { "CALL - UP COLOR", call_color = input { default="#27F7FC", type =
input.color } }
input_group { "PUT - DOWN COLOR", put_color = input { default="#F6FB0E", 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,
"COMPRA HACKER",
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,
"VENDA HACKER",
put_color)
end
end
instrument {overlay = true,
name = 'XX10',
short_name = ' XX10',
icon="indicators:ADX"}
input_group { "OTC - UP COLOR", call_color = input { default="#17f702", type =
input.color } }
input_group { "OTC - DOWN COLOR", put_color = input { default="#fc0303", type =
input.color } }
if ((close > close[2]) and (close[2] > open[2]) and (close[4] > close[8])) then
plot_shape(1,
'Bull_OTC',
shape_style.triangleup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"XX10",
"#fcfc03"
)
else
if ((close < close[2]) and (close[2] < open[2]) and (close[4] < close[8])) then
plot_shape(1,
'Bear_OTC',
shape_style.triangledown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"XX10",
"#fcfc03"
)
end
end
instrument { name = "XX10", overlay = true, icon="indicators:ATR" }
period = input (18, "front.period", input.integer, 1 )
multiplier = input (2, "front.newind.multiplier", input.double, 1 )
high_low = input (false, "HighLow", input.boolean)
input_group {
"front.newind.colors",
up = input { default = "#1cfc03", type = input.color },
down = input { default = "#fc0303", type = input.color },
width = input { default = 4, type = input.line_width }
}
atr = rma (tr, period) * multiplier
h = iff (high_low, high, close)
l = iff (high_low, low, close)
atr_ts = iff(close > nz(atr_ts[1], 0) and close[1] > nz(atr_ts[1], 0), max(nz(atr_ts[1]), h -
atr),
iff(close < nz(atr_ts[1], 0) and close[1] < nz(atr_ts[1], 0), min(nz(atr_ts[1]), l + atr),
iff(close > nz(atr_ts[1], 0), h - atr, l + atr)))
pos = iff(close[1] < nz(atr_ts[1], 0) and close > nz(atr_ts[1], 0), 1,
iff(close[1] > nz(atr_ts[1], 0) and close < nz(atr_ts[1], 0), -1, nz(pos[1], 0)))
plot (atr_ts, "", pos < 0 and down or up , width)
--[[
short = (pos[1] != pos[0]) and (pos[0] == -1) ? true : false
long = (pos[1] != pos[0]) and (pos[0] == 1) ? true : false
plotshape(long, style=shape.triangleup, location=location.belowbar, color=green,
size=size.tiny)
plotshape(short, style=shape.triangledown, location=location.abovebar, color=red,
size=size.tiny)
]]
instrument{name="SCRIPT GAP TRADER",overlay=true}
local function a()local
b=make_series()local c=high[2]
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{defa
ult=1,type=input.line_width}}h=a()l=e()hline(h,"High",color,high_width)hline(l,"Low",c
olor,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)
instrument { name = "GAP TRADER", icon="indicators:ADX", overlay = true }
method_id = input (1, "Type", input.string_selection, { "" })
instrument {
name = 'TRADER GAP SCRIPT',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
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 }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"GAP",
shape_style.cross,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"GAP",
"white"
)
plot_shape(
(sellCondition),
"GAP",
shape_style.cross,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"GAP",
"white"
)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --IQ
OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
end
instrument {
name = 'STAKE WIN',
short_name = 'D',
icon= 'https://efraimtraders.com/wp-content/uploads/2022/03/Touro.png1',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
input_group {
"Compra",
colorBuy = input { default = "yellow", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Venda",
colorSell = input { default = "blue", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"",
"yellow"
)
plot_shape(
(sellCondition),
"",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"",
"blue"
)
instrument {overlay = true,
name = 'STAKE WIN',
short_name = '1',
icon="indicators:ADX"}
input_group { "BLUE - UP COLOR", call_color = input { default="#49cd84", type =
input.color } }
input_group { "RED - DOWN COLOR", put_color = input { default="#e46cac", type =
input.color } }
sec = security(current_ticker_id, "1m")
if ((close[1] < open[1]) and (close > open) and (close > high[1])) then
plot_shape(1,
'bull_Heikin',
shape_style.circle,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"U ",
call_color )
else
if ((close[1] > open[1]) and (close < open) and (close < low[1])) then
plot_shape(1,
'bear_Heikin',
shape_style.circle,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"D",
put_color)
end
end
instrument { name = "PURPLE WIN", icon="indicators:ADX", overlay = true }
period = input (5, "front.period", input.integer, 1)
shift = input (1, "front.newind.offset", input.double, 0.01, 300, 0.01)
fn = input (averages.ema, "front.newind.average", input.string_selection,
averages.titles)
input_group {
"front.top line",
upper_line_visible = input { default = true, type = input.plot_visibility },
upper_line_color = input { default = "#ff0000", type = input.color },
upper_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.middle line",
middle_line_visible = input { default = true, type = input.plot_visibility },
middle_line_color = input { default = #ffffff, type = input.color },
middle_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.bottom line",
lower_line_visible = input { default = true, type = input.plot_visibility },
lower_line_color = input { default = "#00FF00", type = input.color },
lower_line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_visible = input { default = true, type = input.plot_visibility },
fill_color = input { default = rgba(138,43,226,0.20), type = input.color },
}
local averageFunction = averages [fn]
middle = averageFunction (hlc3, period)
offset = rma(tr, period) * shift
upper = middle + offset
lower = middle - offset
if fill_visible then
fill { first = upper, second = lower, color = fill_color }
end
if upper_line_visible then
plot (upper, "Upper", upper_line_color, upper_line_width)
end
if lower_line_visible then
plot (lower, "Lower", lower_line_color, lower_line_width)
end
if middle_line_visible then
plot (middle, "Middle", middle_line_color, middle_line_width)
end
instrument {
name = 'msttrading(3.1)',
short_name = 'super',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
input_group {
"Acima Agora",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Abaixo Agora",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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,
"Acima Agora",
"green"
)
plot_shape(
(sellCondition),
"GO",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"Abaixo Agora",
"red"
)
instrument {
name = 'PURPLE WIN',
short_name = 'super',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
input_group {
"Acima Agora",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Abaixo Agora",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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,
"Acima Agora",
"green"
)
plot_shape(
(sellCondition),
"GO",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"Abaixo Agora",
"red"
)
instrument {name = "msttrading(3.1)", icon = "indicators:ADX", overlay = true}
bar_look = input (3, "Confirmation bars to look", input.integer, 1 )
period1 = input (20, "period Line 1", input.integer, 10 )
period2 = input (50, "period Line 2", input.integer, 10 )
period3 = input (80, "period Line 3", input.integer, 10 )
period4 = input (120, "period Line 4", input.integer, 10 )
period5 = input (150, "period Line 5", input.integer, 10 )
period6 = input (200, "period Line 6", input.integer, 10 )
period7 = input (250, "period Line 7", input.integer, 10 )
period8 = input (300, "period Line 8", input.integer, 10 )
period9 = input (350, "period Line 9", input.integer, 10 )
period10 = input (400, "period Line 10", input.integer, 10 )
input_group {
"Color",
color = input {default = "orange", 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)
hline(highest(high[bar_look], period2), "HH10", color, width)
hline(lowest(low[bar_look], period2), "LL10", color, width)
hline(highest(high[bar_look], period3), "HH10", color, width)
hline(lowest(low[bar_look], period3), "LL10", color, width)
hline(highest(high[bar_look], period4), "HH10", color, width)
hline(lowest(low[bar_look], period4), "LL10", color, width)
hline(highest(high[bar_look], period5), "HH10", color, width)
hline(lowest(low[bar_look], period5), "LL10", color, width)
hline(highest(high[bar_look], period6), "HH10", color, width)
hline(lowest(low[bar_look], period6), "LL10", color, width)
hline(highest(high[bar_look], period7), "HH10", color, width)
hline(lowest(low[bar_look], period7), "LL10", color, width)
hline(highest(high[bar_look], period8), "HH10", color, width)
hline(lowest(low[bar_look], period8), "LL10", color, width)
hline(highest(high[bar_look], period9), "HH10", color, width)
hline(lowest(low[bar_look], period9), "LL10", color, width)
hline(highest(high[bar_look], period10), "HH10", color, width)
hline(lowest(low[bar_look], period10), "LL10", color, width)
instrument{name="PURPLE WIN", overlay=true}
local function a()local
b=make_series()local c=high[2]
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="peachpuff",type=input.color},width=input{
default=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)
instrument{name="SCRIPT
RUSSO",icon='https://lh3.googleusercontent.com/ogw/ADea4I65OapvF7ZOUMZc_3J4Yx_
_qVmvJD_jgzr4p8MZNks=s32-c-mo',overlay=true}
local function a()local
b=make_series()local c=high[2]
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{defa
ult=1,type=input.line_width}}h=a()l=e()hline(h,"High",color,high_width)hline(l,"Low",c
olor,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)
instrument { name = "RATO", icon="indicators:ADX", overlay = true }
method_id = input (1, "Type", input.string_selection, { "RATO" })
instrument {
name = 'SCRIPT RUSSO',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
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 }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"RUSSO CP",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"RUSSO CP",
"white"
)
plot_shape(
(sellCondition),
"RUSSO VN",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"RUSSO VN",
"white"
)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --IQ
OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!
@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
end
instrument {
name = 'O BIG FORCE',
short_name = 'SMA-ENG',
icon = "https://logodownload.org/wp-content/uploads/2020/04/big-hipermercado-
logo.png",
overlay = true
}
MaFast_period = input(12,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(2,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(26,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(100,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Area Up and Down",
colorAreaUp = input { default = "rgba(34, 139, 34, 0.3)", type = input.color },
colorAreaDown = input { default = "rgba(220, 20, 60, 0.3)", type = input.color },
visibleArea = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Fast Line",
colorFast = input { default = "#ff56e8", type = input.color },
widthFast = input { default = 1, type = input.line_width},
visibleFast = input { default = false, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "#2d2af7", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = false, type = input.plot_visibility }
}
input_group {
"Ma Trend Line",
colorTrend = input { default = "#f74200", type = input.color },
widthTrend = input { default = 3, type = input.line_width},
visibleTrend = input { default = false, type = input.plot_visibility }
}
input_group {
"Buy Engulfing",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = false, type = input.plot_visibility }
}
input_group {
"Sell Engulfing",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = false, type = input.plot_visibility }
}
input_group {
"Buy Double Engulfing",
colorBuy1 = input { default = "rgba(34, 139, 34, 0.8)", type = input.color },
visibleBuy1 = input { default = false, type = input.plot_visibility }
}
input_group {
"Sell Double Engulfing",
colorSell1 = input { default = "rgba(220, 20, 60, 0.8)", type = input.color },
visibleSell1 = input { default = false, type = input.plot_visibility }
}
input_group {
"Buy Outside Bar",
colorBuy2 = input { default = "rgba(0, 0, 255, 0.8)", type = input.color },
visibleBuy2 = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Outside Bar",
colorSell2 = input { default = "rgba(255, 20, 147, 0.8)", type = input.color },
visibleSell2 = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
filter_source = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m",
"30m", "1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
filter_pa_index = input(8,"Candle check resolution",input.string_selection,filter_source)
filter_pa = security (current_ticker_id, filter_source[filter_pa_index])
--print(filter_source[filter_pa_index])
if (sec ~= nil) then
MaFast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
MaFast1 = MaFast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
MaTrend1 = MaTrend0[1]
if(visibleBuy == true) then
plot_shape((close > open and close[1] < open[1] and close > MaFast0 and
MaFast0 > MaSlow0 and MaSlow0 > MaTrend0 and close > open[1] and open <=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call",
shape_style.arrowup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"Eng",
colorBuy
)
end
if (visibleSell == true) then
plot_shape((close < open and close[1] > open[1] and close < MaFast0 and MaFast0
< MaSlow0 and MaSlow0 < MaTrend0 and close < open[1] and open >= close[1] and
abs(close-open) > abs(close[1]-open[1])),
"Put",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"Eng",
colorSell
)
end
if(visibleBuy1 == true) then
if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2] and
filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close > open and close[1] < open[1] and close > open[1] and open
<= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call1",
shape_style.arrowup,
shape_size.huge,
colorBuy1,
shape_location.belowbar,
0,
"DouEng",
colorBuy1
)
end
end
if (visibleSell1 == true) then
if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2] and
filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close < open and close[1] > open[1] and close < open[1] and open
>= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put1",
shape_style.arrowdown,
shape_size.huge,
colorSell1,
shape_location.abovebar,
0,
"DouEng",
colorSell1
)
end
end
if(visibleBuy2 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2] and
filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] < close[3] and open[2] < close[2] and open[1] > close[1] and
close[1] > open[2] and open[1] > open[2] and open < close),
"Call2",
shape_style.arrowup,
shape_size.huge,
colorBuy2,
shape_location.belowbar,
0,
"BIG*COMPRAFORTE",
colorBuy2
)
--end
end
if (visibleSell2 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2] and
filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] > close[3] and open[2] > close[2] and open[1] < close[1] and
close[1] < open[2] and open[1] < open[2] and open > close),
"Put2",
shape_style.arrowdown,
shape_size.huge,
colorSell2,
shape_location.abovebar,
0,
"BIG*VENDAFORTE",
colorSell2
)
--end
end
if (visibleArea == true) then
fill(MaFast0,MaSlow0,"Area", MaFast0 > MaSlow0 and colorAreaUp or MaFast0 <
MaSlow0 and colorAreaDown )
end
end
instrument { name = "CHATGPT COM LEONTRADE", icon="indicators:ADX", overlay =
true }
method_id = input (1, "Type", input.string_selection, { "@LEONTRADE" })
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --IQ
OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
end
instrument {
name = 'LEONTRADE',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
input_group {
"Compra fiu Proxima vela",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Venda fiu Proxima vela",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"CHATGPT-COMPRA",
"green"
)
plot_shape(
(sellCondition),
"ENTER",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"CHATGPT-VENDA",
"red"
)
instrument { name = "BULLEX REI" }
period = input (2, "front.period", input.integer, 1)
hh_period = input (10, "HH/LL Loockback", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
input_group {
"front.newind.lines",
line_up_color = input { default = "#25E154", type = input.color },
line_down_color = input { default = "#FF6C58", type = input.color },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_up_color = input { default = rgba(37,225,84,0.2), type = input.color },
fill_down_color = input { default = rgba(255,108,88,0.2), type = input.color }
}
input_group {
"front.platform.baseline",
zero_color = input { default = rgba(255,255,255,0.15), type = input.color },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7,
max (ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 +
ma9 + ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}
instrument { name = "BULLEX REI" }
period = input (2, "front.period", input.integer, 1)
hh_period = input (10, "HH/LL Loockback", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
input_group {
"front.newind.lines",
line_up_color = input { default = "#25E154", type = input.color },
line_down_color = input { default = "#FF6C58", type = input.color },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_up_color = input { default = rgba(37,225,84,0.2), type = input.color },
fill_down_color = input { default = rgba(255,108,88,0.2), type = input.color }
}
input_group {
"front.platform.baseline",
zero_color = input { default = rgba(255,255,255,0.15), type = input.color },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7,
max (ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 +
ma9 + ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}
instrument { name = "Bullex Rei", icon="indicators:ADX", overlay = true }
method_id = input (1, "Type", input.string_selection, { "BULL_EX" })
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --
BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
end
instrument{name="Instagram @fredson_trader",
short_name="BULL_EX",
icon = 'indicators:BB',
overlay=true}
Exibir_tracamento= input(1, "Deseja exibir o tracamento na Bullex?",
input.string_selection, {"SIM", "NAO"})
input_group {"BANDA SUPERIOR", bbsup_color= input{ default= "White", type=
input.color}}
input_group {"BANDA INFERIOR", bbinf_color= input{ default= "White", type=
input.color}}
smaa= sma(close, '25')
upper_band= smaa + (stdev(close,25) * 3.0)
lower_band= smaa - (stdev(close,25) * 3.0)
emaa= ema(close, '100')
if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_band, "UPPER_BAND", bbsup_color)
plot(lower_band, "LOWER_BAND", bbinf_color)
end
instrument {
name = 'Bullex Rei',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
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 }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"REI NA BULLEX",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"REI NA BULLEX",
"White"
)
plot_shape(
(sellCondition),
"REI NA BULLEX",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"REI NA BULLEX",
"White"
)
instrument { name = "BULLEX REI" }
period = input (2, "front.period", input.integer, 1)
hh_period = input (10, "HH/LL Loockback", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
input_group {
"front.newind.lines",
line_up_color = input { default = "#25E154", type = input.color },
line_down_color = input { default = "#FF6C58", type = input.color },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_up_color = input { default = rgba(37,225,84,0.2), type = input.color },
fill_down_color = input { default = rgba(255,108,88,0.2), type = input.color }
}
input_group {
"front.platform.baseline",
zero_color = input { default = rgba(255,255,255,0.15), type = input.color },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7,
max (ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 +
ma9 + ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}
instrument { name = "BULLEX REI" }
period = input (2, "front.period", input.integer, 1)
hh_period = input (10, "HH/LL Loockback", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
input_group {
"front.newind.lines",
line_up_color = input { default = "#25E154", type = input.color },
line_down_color = input { default = "#FF6C58", type = input.color },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_up_color = input { default = rgba(37,225,84,0.2), type = input.color },
fill_down_color = input { default = rgba(255,108,88,0.2), type = input.color }
}
input_group {
"front.platform.baseline",
zero_color = input { default = rgba(255,255,255,0.15), type = input.color },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7,
max (ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 +
ma9 + ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}
instrument {
name = 'GOLDEN VIP',
short_name = 'super',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(3,"Signal period",input.integer,1,1000,1)
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 }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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,
"GOLDEN VIP",
"White"
)
plot_shape(
(sellCondition),
"GO",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"GOLDEN VIP",
"red"
)
instrument { name = " Rei do Fractal Pro", icon="jpg", overlay = true }
input_group {
"Compra",
comprar_color = input {default = "#b811f0", type = input.color}
}
input_group {
"Contagem de FIBOS",
emaa_per = input {default = "15", type = input.string}
}
input_group {
"Precisao do Time: (1/10)",
doch_time = input {default = "10", type = input.string}
}
input_group {
"Mercado OTC",
time_otc = input {default = "nao", type = input.string}
}
input_group {
"Velas Volatil TimeFrame",
frame_otc = input {default = "m1", type = input.string}
}
input_group {
"Nivel de Precisao",
emab_per = input {default = "100", type = input.string}
}
input_group {
"MR",
emac_per = input {default = "5", type = input.string}
}
input_group {
"ML",
emad_per = input {default = "15", type = input.string}
}
input_group {
"Venda",
vender_color = input {default = "#fcf805", type = input.color}
}
input_group {
"Velas",
positivo = input { default = "#00ff55",type = input.color },
neutro = input { default = "#000000", type = input.color },
negativo = input { default = "#f70202", type = input.color },
}
--PARAMETROS
EMAA = ema(open,emaa_per)
EMAB = ema(open,emab_per)
EMAC = ema(ohlc4,emac_per)
EMAD = ema(ohlc4,emad_per)
timestamp = (sec)
--CALCULOS
TA = ((close > close[1]) and (close > EMAA) and (EMAA > EMAA[1]))
TB = ((close < close[1]) and (close < EMAA) and (EMAA < EMAA[1]))
TI = ((open < close[1]) and (open < EMAA) and (EMAD < EMAA[1]))
ENC = ((EMAC[1] < EMAD[1]) and (EMAC > EMAD))
ENV = ((EMAC[1] > EMAD[1]) and (EMAC < EMAD))
sec = security (current_ticker_id, "1m")
if sec then
local bar_color
if (TA == true) then
bar_color = positivo
elseif (TB == true) then
bar_color = negativo
elseif (TI == true) then
bar_color = neutro
plot_shape(1,
'X',
shape_style.xcross,
shape_size.huge,
can_color,
shape_location.top,
0,
print ("Resp"),
"A"
)
else
bar_color = neutro
end
plot_candle (open, high, low, close, "ES", bar_color)
end
input_group { "Compra - Cima", call_color = input { default="#fcfc03", type =
input.color } }
input_group { "Cancelado", can_color = input { default="#f50000", type =
input.color } }
input_group { "Venda - Baixo", put_color = input { default="#fcfc03", type =
input.color } }
if ((close[1] < open[1]) and (close > open) and (close > high[1]) and close[2] >=
open) then
plot_shape(1,
'Bull_Engulfing',
shape_style.flag,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"Analise",
print ("Analise"),
"A"
)
else
if ((close[1] > open[1]) and (close < open) and (close < low[1]) and close[2] <=
open) then
plot_shape(1,
'Bear_Engulfing',
shape_style.flag,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"Analise",
print ("Analise"),
"A"
)
end
end
input_group { "Cima", call_color = input { default="#fcfc03", type = input.color } }
input_group { "Baixo", put_color = input { default="#fcfc03", type = input.color } }
if ((close > close[1]) and (close[1] > open[2]) and (close[3] > close[2])) then
plot_shape(1,
'Bull_UP',
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"PRO",
"#ffffff"
)
else
if ((close < close[1]) and (close[1] < open[2]) and (close[3] < close[2])) then
plot_shape(1,
'Bear_DOWN',
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"PRO",
"#fcfc03"
)
end
end
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
method_id = input (2, "Tipo", input.string_selection, { "M5" })
local resolution = "15m"
sec = security (current_ticker_id, resolution)
if sec then
local method = methods [method_id]
method (sec)
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue)
end
percentage = input (3, "Porcentagem", input.double, 0.01, 100, 1.0) / 100
period = 2
local reference = make_series ()
reference:set(nz(reference[1], high))
local is_direction_up = make_series ()
is_direction_up:set(nz(is_direction_up[1], true))
local htrack = make_series ()
local ltrack = make_series ()
local pivot = make_series ()
reverse_range = reference * percentage / 100
if get_value (is_direction_up) then
htrack:set (max(high, nz(htrack[1], high)))
if close < htrack[1] - reverse_range then
pivot:set (htrack)
is_direction_up:set (false)
reference:set(htrack)
end
else
ltrack:set (min(low, nz(ltrack[1], low)))
if close > ltrack[1] + reverse_range then
pivot:set (ltrack)
is_direction_up:set(true)
reference:set (ltrack)
end
end
color = is_direction_up() and up_color or down_color
plot(pivot, 'ZZ', color, width, -1, style.solid_line, na_mode.continue)
-- Suporte e Resistencia Atulizao nova --
method_id = input (1, "Tipo", input.string_selection, { "H1" })
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function h1(candle)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { h1 }
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "30m"
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
instrument {
name = 'AXX FODA',
short_name = 'super',
overlay =true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(4,"Signal period",input.integer,1,1000,1)
input_group {
"Compra",
colorBuy = input { default = "blue", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Venda",
colorSell = input { default = "yellow", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"30",
shape_style.arrowup,
shape_size.large,
colorBuy,
shape_location.belowbar,
-1,
"AXX capital",
"blue"
)
plot_shape(
(sellCondition),
"30",
shape_style.arrowdown,
shape_size.large,
colorSell,
shape_location.abovebar,
-1,
"AXX capital",
"YELLOW"
)
instrument{name="AXX SUPORT/RES SETAS",icon='https://www.google.com/url?
sa=i&url=https%3A%2F%2Fmyicons.co
%2F&psig=AOvVaw3UTgfDo_l_YxT4qVtiaoE7&ust=1638095965421000&source=image
s&cd=vfe&ved=0CAsQjRxqFwoTCKCli5WtuPQCFQAAAAAdAAAAABAD',overlay=true}
local function a()local
b=make_series()local c=high[2]
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="LIME",type=input.color},width=input{defaul
t=1,type=input.line_width}}h=a()l=e()hline(h,"High",color,high_width)hline(l,"Low",col
or,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)
instrument {
name = 'AXX TREND PERFECT',
short_name = 'SMA-ENG',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(3,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(4,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(7,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(100,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Area Up and Down",
colorAreaUp = input { default = "rgba(34, 139, 34, 0.3)", type = input.color },
colorAreaDown = input { default = "rgba(220, 20, 60, 0.3)", type = input.color },
visibleArea = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "purple", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = true, type = input.plot_visibility }
}
input_group {
"Buy Outside Bar",
colorBuy2 = input { default = "lime", type = input.color },
visibleBuy2 = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Outside Bar",
colorSell2 = input { default = "red", type = input.color },
visibleSell2 = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
filter_source = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m",
"30m", "1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
filter_pa_index = input(8,"Candle check resolution",input.string_selection,filter_source)
filter_pa = security (current_ticker_id, filter_source[filter_pa_index])
--print(filter_source[filter_pa_index])
if (sec ~= nil) then
MaFast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
MaFast1 = MaFast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
MaTrend1 = MaTrend0[1]
if(invsibleBuy == true) then
plot_shape((close > open and close[1] < open[1] and close > MaFast0 and
MaFast0 > MaSlow0 and MaSlow0 > MaTrend0 and close > open[1] and open <=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0,
"TOURO",
colorBuy
)
end
if (invisibleSell == true) then
plot_shape((close < open and close[1] > open[1] and close < MaFast0 and
MaFast0 < MaSlow0 and MaSlow0 < MaTrend0 and close < open[1] and open >=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"URSO",
colorSell
)
end
if(invisibleBuy1 == true) then
if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close > open and close[1] < open[1] and close > open[1] and open
<= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call1",
shape_style.triangleup,
shape_size.huge,
colorBuy1,
shape_location.belowbar,
0,
"TOURO",
colorBuy1
)
end
end
if (invisibleSell1 == true) then
if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close < open and close[1] > open[1] and close < open[1] and open
>= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put1",
shape_style.triangledown,
shape_size.huge,
colorSell1,
shape_location.abovebar,
0,
"URSO",
colorSell1
)
end
end
if(invisibleBuy2 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] < close[3] and open[2] < close[2] and open[1] > close[1]
and close[1] > open[2] and open[1] > open[2] and open < close),
"SNIPER-CALL2",
shape_style.triangleup,
shape_size.huge,
colorBuy2,
shape_location.belowbar,
0,
"TOURO",
colorBuy2
)
--end
end
if (invisibleSell2 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] > close[3] and open[2] > close[2] and open[1] < close[1]
and close[1] < open[2] and open[1] < open[2] and open > close),
"SNIPER-PUT2",
shape_style.triangledown,
shape_size.huge,
colorSell2,
shape_location.abovebar,
0,
"URSO",
colorSell2
)
--end
end
if (visibleArea == true) then
fill(MaFast0,MaSlow0,"Area", MaFast0 > MaSlow0 and colorAreaUp or MaFast0 <
MaSlow0 and colorAreaDown )
end
end
MaFast_period = input(3,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(4,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(7,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(200,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Buy Arrow",
colorBuy = input { default = "lime", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Sell Arrow",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
if (sec ~= nil) and (sec.open_time == open_time) then
Mafast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
Mafast1 = Mafast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
Matrend1 = MaTrend0[1]
plot_shape((close > open and close[1] < open[1] and close > Mafast0 and close >
MaSlow0 and close > MaTrend0 and close > open[1] and open <= close[1] and
abs(close-open) > abs(close[1]-open[1])),
"CALL",
shape_style.triangleup,
shape_size.tiny,
colorBuy,
shape_location.belowbar,
0,
"",
colorBuy
)
plot_shape((close < open and close[1] > open[1] and close < Mafast0 and close <
MaSlow0 and close < MaTrend0 and close < open[1] and open >= close[1] and
abs(close-open) > abs(close[1]-open[1])),
"PUT",
shape_style.triangledown,
shape_size.tiny,
colorSell,
shape_location.abovebar,
0,
"",
colorSell
)
End
instrument {
name = 'BLITZ EXNOVA',
short_name = 'super',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
input_group {
"Compra",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"Venda",
colorSell = input { default = "brown", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"COMPRA",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"COMPRA",
"green"
)
plot_shape(
(sellCondition),
"VENDE",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"VENDE",
"brown"
)
MaFast_period = input(3,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(4,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(50,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(4,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
MaTrend_period = input(100,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
input_group {
"Ma Fast Line",
colorFast = input { default = "White", type = input.color },
widthFast = input { default = 1, type = input.line_width},
visibleFast = input { default = true, type = input.plot_visibility }
}
input_group {
"Ma Slow Line",
colorSlow = input { default = "purple", type = input.color },
widthSlow = input { default = 2, type = input.line_width},
visibleSlow = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
----INSTAGRAM Trader_fredson_progetomegawin -----
instrument {
name = 'Pano Torcido',
short_name = 'SUPER',
icon = 'https://thumbs.dreamstime.com/b/o-homem-est%C3%A1-ocupado-aperta-
pano-molhado-l%C3%A1-fora-161861277.jpg',
overlay = true
}
MaFast_period = input(2,"Ma Fast period",input.integer,1,1000,1)
MaFast_average = input(2,"Ma Fast average", input.string_selection,averages.titles)
MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles)
MaSlow_period = input(8,"Ma Slow period",input.integer,1,1000,1)
MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles)
MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles)
Signal_period = input(6,"Signal period",input.integer,1,1000,1)
MaTrend_period = input(200,"Ma Trend period",input.integer,1,1000,5)
MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles)
MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles)
----INSTAGRAM @jeffersonpinheiro.jp -----
input_group {
"Cores dos Panos",
colorAreaUp = input { default = "rgba(34, 139, 34, 0.3)", type = input.color },
colorAreaDown = input { default = "rgba(220, 20, 60, 0.3)", type = input.color },
visibleArea = input { default = true, type = input.plot_visibility }
}
----INSTAGRAM @Trader_fredson_progetomegawin -----
input_group {
"Torce Pano CALL",
colorBuy5 = input { default = "rgba(0, 250, 154, 0.80)", type = input.color },
visibleBuy5 = input { default = true, type = input.plot_visibility }
}
input_group {
"Torce Pano Put",
colorSell5 = input { default = "rgba(255, 20, 147, 0.60)", type = input.color },
visibleSell5 = input { default = true, type = input.plot_visibility }
}
local avgFast = averages[MaFast_average]
local titleFast = inputs[MaFast_title]
local avgSlow = averages[MaSlow_average]
local titleSlow = inputs[MaSlow_title]
local avgSignal = averages[Signal_period]
local avgTrend = averages[MaTrend_average]
local titleTrend = inputs[MaTrend_title]
if visibleFast == true then
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
if visibleSlow == true then
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
if visibleTrend == true then
plot(avgTrend(titleTrend,MaTrend_period),"Ma Trend",colorTrend,widthTrend)
end
candle_time = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m",
"1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
candle_time_res = input(6,"Candle check resolution",input.string_selection,candle_time)
sec = security (current_ticker_id, candle_time[candle_time_res])
filter_source = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m",
"30m", "1H", "2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
filter_pa_index = input(8,"Candle check resolution",input.string_selection,filter_source)
filter_pa = security (current_ticker_id, filter_source[filter_pa_index])
--print(filter_source[filter_pa_index])
emaFast = avgFast(titleFast,MaFast_period)
emaSlow = avgSlow(titleSlow,MaSlow_period)
macd = emaFast - emaSlow
signal = avgSignal(macd,Signal_period)
--plot(macd,"macd", "Blue", 1)
--plot(signal,"signal", "Orange", 1)
histo = macd - signal
--rect {
--first = 0,
--second = histo,
--color = histo >= histo[1] and "LimeGreen" or "Orange",
--width = 0.5
--}
--hline(0,"Zero Macd", "rgba(255, 20, 147, 0.4)",1)
if (sec ~= nil) then
MaFast0 = avgFast(titleFast,MaFast_period) --Ma Fast bar 0
MaFast1 = MaFast0[1] --Ma Fast bar 1
MaSlow0 = avgSlow(titleSlow,MaSlow_period) --Ma Slow bar 0
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
MaTrend1 = MaTrend0[1]
if(visibleBuy == true) then
plot_shape((close > open and close[1] < open[1] and close > MaFast0 and
MaFast0 > MaSlow0 and MaSlow0 > MaTrend0 and close > open[1] and open <=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call",
shape_style.arrowup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
0
)
end
----INSTAGRAM @Trader_fredson_progetomegawin -----
if (visibleSell == true) then
plot_shape((close < open and close[1] > open[1] and close < MaFast0 and
MaFast0 < MaSlow0 and MaSlow0 < MaTrend0 and close < open[1] and open >=
close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0
)
end
----INSTAGRAM @Trader_fredson_progetomegawin -----
if(visibleBuy1 == true) then
if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close > open and close[1] < open[1] and close > open[1] and open
<= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Call1",
shape_style.arrowup,
shape_size.huge,
colorBuy1,
shape_location.belowbar,
0
)
end
end
----INSTAGRAM @Trader_fredson_progetomegawin -----
if (visibleSell1 == true) then
if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((close < open and close[1] > open[1] and close < open[1] and open
>= close[1] and abs(close-open) > abs(close[1]-open[1])),
"Put1",
shape_style.arrowdown,
shape_size.huge,
colorSell1,
shape_location.abovebar,
0
)
end
end
----INSTAGRAM @Trader_fredson_progetomegawin -----
if(visibleBuy2 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] < close[3] and open[2] < close[2] and open[1] > close[1]
and close[1] > open[2] and open[1] > open[2] and open < close),
"Call2",
shape_style.arrowup,
shape_size.huge,
colorBuy2,
shape_location.belowbar,
0
)
--end
end
----INSTAGRAM @Trader_fredson_progetomegawin -----
if (visibleSell2 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((open[3] > close[3] and open[2] > close[2] and open[1] < close[1]
and close[1] < open[2] and open[1] < open[2] and open > close),
"Put2",
shape_style.arrowdown,
shape_size.huge,
colorSell2,
shape_location.abovebar,
0
)
--end
end
----INSTAGRAM @Trader_fredson_progetomegawin -----
if(visibleBuy3 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((macd > signal and macd[1] < signal[1] and close > MaFast0 and
MaFast0 > MaTrend0),
"Call3",
shape_style.arrowup,
shape_size.huge,
colorBuy3,
shape_location.belowbar,
0
)
--end
----INSTAGRAM @Trader_fredson_progetomegawin -----
end
if (visibleSell3 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((macd < signal and macd[1] > signal[1] and close < MaFast0 and
MaFast0 < MaTrend0),
"Put3",
shape_style.arrowdown,
shape_size.huge,
colorSell3,
shape_location.abovebar,
0
)
--end
end
if(visibleBuy4 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((macd[1] < 0 and macd > 0 ),
"Call4",
shape_style.arrowup,
shape_size.huge,
colorBuy4,
shape_location.belowbar,
0
)
--end
end
if (visibleSell4 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((macd[1] > 0 and macd < 0 ),
"Put4",
shape_style.arrowdown,
shape_size.huge,
colorSell4,
shape_location.abovebar,
0
)
--end
end
if(visibleBuy5 == true) then
--if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2]
and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((histo[1] < 0 and histo > 0 ),
"Call5",
shape_style.arrowup,
shape_size.huge,
colorBuy5,
shape_location.belowbar,
0
)
--end
end
if (visibleSell5 == true) then
--if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2]
and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and
abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then
plot_shape((histo[1] > 0 and histo < 0 ),
"Put5",
shape_style.arrowdown,
shape_size.huge,
colorSell5,
shape_location.abovebar,
0
)
--end
end
if (visibleArea == true) then
fill(MaFast0,MaSlow0,"Area", MaFast0 > MaSlow0 and colorAreaUp or MaFast0 <
MaSlow0 and colorAreaDown )
end
end
----INSTAGRAM @Trader_fredson_progetomegawin -----
instrument { name = "CanalFredsonc", icon="indicators:ADX", overlay = true }
method_id = input (1, "Type", input.string_selection, { "@FredsonTrader" })
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQOPTION JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--IQOPTION HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue)
plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --IQ
OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--
JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
end
instrument{name="STRATEGY BOLLING @EFRAIM TRADERS",
short_name="@EFRAIM TRADERS BOLLING STRATEGY",
icon = 'indicators:BB',
overlay=true}
Exibir_tracamento= input(1, "Deseja exibir o tracamento?", input.string_selection,
{"SIM", "NAO"})
input_group {"BANDA SUPERIOR", bbsup_color= input{ default= "silver", type=
input.color}}
input_group {"BANDA INFERIOR", bbinf_color= input{ default= "silver", type=
input.color}}
smaa= sma(close, '20')
upper_band= smaa + (stdev(close,20) * 2.5)
lower_band= smaa - (stdev(close,20) * 2.5)
emaa= ema(close, '100')
if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_band, "UPPER_BAND", bbsup_color)
plot(lower_band, "LOWER_BAND", bbinf_color)
end
instrument {
name = 'Script BANDAS BOLLING',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}
MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)
MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)
MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)
Signal_period = input(5,"Signal period",input.integer,1,1000,1)
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 }
}
local titleValue = inputs[MaValue]
-- mdia mvel linear rpida
smaFast = sma(titleValue, MaFast_period)
-- mdia mvel linear devagar
smaSlow = sma(titleValue, MaSlow_period)
-- calculo diferencial - serie
buffer1 = smaFast - smaSlow
-- clculo da mdia mvel ponderada - serie
buffer2 = wma(buffer1, Signal_period)
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),
"",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"ENTRAR",
"yellow"
)
plot_shape(
(sellCondition),
"ENTER",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"ENTRAR",
"yellow"
)
instrument {overlay = true,
name = '@FREDSONTRADER_',
short_name = 'FAT',
icon="indicators:EXNOVA"}
input_group { "CALL - UP COLOR", call_color = input { default="#00FF00", type =
input.color } }
input_group { "PUT - DOWN COLOR", put_color = input { default="#FF0000", 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,
"COMPRA TRADER",
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,
"VENDA TRADER",
put_color)
end
end