Script Premium in English
Script Premium in English
Script Premium in English
input_group {
"Buy",
buy_color = input {default = "green", type = input.color}
}
input_group {
"Max/Min Period",
doch_time = input {default = "30", type = input.string}
}
input_group {
"Micro Trend Period",
emaa_per = input {default = "21", type = input.string}
}
input_group {
"Macro Trend Period",
emab_per = input {default = "200", type = input.string}
}
input_group {
"Fast Moving Average",
emac_per = input {default = "7", type = input.string}
}
input_group {
"Slow Moving Average",
emad_per = input {default = "17", type = input.string}
}
input_group {
"Sell",
sell_color = input {default = "red", type = input.color}
}
input_group {
"Resistance",
upline_color = input {default = "red", type = input.color}
}
input_group {
"Support",
lowline_color = input {default = "green", type = input.color}
}
input_group {
"Candles",
positive = input {default = "green", type = input.color},
neutral = input {default = "white", type = input.color},
negative = input {default = "red", type = input.color},
}
--PARAMETERS
--CALCULATIONS
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))
local bar_color
--TRADING
plot_shape((ENV),
"SELL",
shape_style.flag,
shape_size.huge,
sell_color,
shape_location.abovebar,
0,
"PUT",
sell_color)
plot_shape((ENC),
"BUY",
shape_style.flag,
shape_size.huge,
buy_color,
shape_location.belowbar,
0,
"CALL",
buy_color)
end