Professional Documents
Culture Documents
instrument {
name = 'PROFIT WIN',
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
}
input_group {
"Cores dos Panos",
colorAreaUp = input { default = "rgba(34, 139, 34, 0.3)", type = input.color },
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]
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)
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)
--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)
--rect {
--first = 0,
--second = histo,
--color = histo >= histo[1] and "LimeGreen" or "Orange",
--width = 0.5
--}
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
MaTrend1 = MaTrend0[1]
)
end
----INSTAGRAM @jeffersonpinheiro.jp -----
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 @jeffersonpinheiro.jp -----
)
end
end
----INSTAGRAM @jeffersonpinheiro.jp -----
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 @jeffersonpinheiro.jp -----
)
--end
end
----INSTAGRAM @jeffersonpinheiro.jp -----
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
)
--end
----INSTAGRAM @jeffersonpinheiro.jp -----
end
)
--end
end
)
--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
)
--end
end
)
--end
end
end
end