Script American
Script American
short_name = 'btsctp',
icon="indicators:ADX"}
input_group {
"front.newind.barcolors",
}
local sourceSeries = inputs [source]
rect {
first = 0,
second = mad,
width = 0.4
if
( mad <= 0 and ( mad[1] > mad) and (smaa < smab) and (smaao > smabo) and close <=
emaa ) then
plot_shape(1,
'Bear_Engulfing',
shape_style.diamond,
shape_size.huge,"yellow",
shape_location.abovebar,
0,
"Vender","red")
end
if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao <
smabo)
then
plot_shape(1,
'Bull_Engulfing',
shape_style.diamond,
shape_size.huge,"blue",
shape_location.belowbar,
0,
"Comprar","green")
end
expo = ema(close,'100')
plot_shape((open < up_band and high > up_band and close <= up_band and expo >
up_band),
"SELL1",
shape_style.arrowdown,
shape_size.huge,"white",
shape_location.abovebar,
0,
"RETRACE", "white")
plot_shape((open > down_band and low < down_band and close >= down_band and expo <
down_band),
"BUY1",
shape_style.arrowup,
shape_size.huge,"white",
shape_location.belowbar,
0,
"RETRACAO", "white")
shape_style.diamond,
shape_size.little,"yellow",
shape_location.abovebar,
0,
"Forte Venda","red")
plot_shape((open < low_band and close > low_band),
"Comprar",
shape_style.diamond,
shape_size.little,"blue",
shape_location.belowbar,
0,
"Forte Compra","green")