Professional Documents
Culture Documents
instrument {
short_name = 'SMA-ENG',
icon = 'indicators:BB',
overlay = true
input_group {
input_group {
"Ma Slow Line",
input_group {
input_group {
"Buy Arrow",
input_group {
"Sell Arrow",
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
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"}
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",
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",
colorSell
)
End
BIG FORCE
instrument {
short_name = 'SMA-ENG',
icon = 'indicators:BB',
overlay = true
input_group {
input_group {
input_group {
}
input_group {
"Buy Engulfing",
input_group {
"Sell Engulfing",
input_group {
input_group {
input_group {
input_group {
plot(avgFast(titleFast,MaFast_period),"Ma Fast",colorFast,widthFast)
end
plot(avgSlow(titleSlow,MaSlow_period),"Ma Slow",colorSlow,widthSlow)
end
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"}
filter_source = {"1s", "5s", "10s", "15s", "30s", "1m", "2m", "5m", "10m", "15m", "30m", "1H",
"2H", "4H", "8H", "12H", "1D", "1W", "1M", "1Y"}
--print(filter_source[filter_pa_index])
MaSlow1 = MaSlow0[1]
MaTrend0 = avgTrend(titleTrend,MaTrend_period)
MaTrend1 = MaTrend0[1]
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
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
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
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
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,
"COMPRA FORTE",
colorBuy2
--end
end
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,
"VENDA FORTE",
colorSell2
--end
end
end
end
STRATEGY CHINESA
input_group {
"front.newind.barcolors",
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,
"Down",
shape_style.arrowdown,
shape_size.auto,
down_color,
shape_location.abovebar,
0,
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