Professional Documents
Culture Documents
Jose Confluencia
Jose Confluencia
instrument {
name = 'JOSE CONFLUENCIA',
short_name = 'SMA-ENG',
icon = 'indicators:BB',
overlay = true
}
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 }
}
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])
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
MaTrend1 = MaTrend0[1]
end
end
input_group {
"Sell Arrow",
colorSell = input { default = "yellow", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
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)
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,
"VAI 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.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
0,
"VAI AGORA",
colorSell
)
end