0% found this document useful (0 votes)
19 views2 pages

Cycle Pro - Signal

Uploaded by

Helio Lopes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

Cycle Pro - Signal

Uploaded by

Helio Lopes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

//@version=4

study(title="Cycle Pro_Signal", shorttitle="Cycle Pro_Signal", overlay=true)

comprar_color = input(color.rgb(7, 244, 15), "Compra")


doch_time = input(10, "Periodo Max/Min")
emaa_per = input(10, "Periodo da Micro Tendencia")
emab_per = input(100, "Periodo da Macro Tendencia")
emac_per = input(3, "Media Rapida")
emad_per = input(13, "Media Lenta")
vender_color = input(color.rgb(241, 218, 10), "Venda")
positivo = input(color.rgb(7, 241, 14), "Candles Positivo")
neutro = input(color.gray, "Candles Neutro")
negativo = input(color.rgb(246, 9, 9), "Candles Negativo")
call_color = input(color.yellow, "CALL - UP COLOR")
put_color = input(color.rgb(244, 221, 8), "PUT - DOWN COLOR")
call_up_color = input(color.rgb(5, 246, 13), "UP - UP COLOR")
put_down_color = input(color.rgb(246, 9, 9), "DOWN - DOWN COLOR")
level_1_color = input(#f3c706, "Maxima")
level_1_width = input(1, "Maxima Width")
level_2_color = input(#fbce05, "Minima")
level_2_width = input(1, "Minima Width")

//PARAMETROS
EMAA = ema(close, emaa_per)
EMAB = ema(close, emab_per)
EMAC = ema(hlc3, emac_per)
EMAD = ema(hlc3, emad_per)
upper = highest(high, doch_time)
lower = lowest(low, doch_time)

//CALCULOS
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

var color bar_color = na


if close > close[1] and close > EMAA and EMAA > EMAA[1]
bar_color := comprar_color
else if close < close[1] and close < EMAA and EMAA < EMAA[1]
bar_color := vender_color
else
bar_color := neutro

plotcandle(open, high, low, close, "ES", bar_color)


plot(upper, "Resistencia", color.white)
plot(lower, "Suporte", color.white)

bull_engulfing = (close[1] < open[1]) and close > open and close > high[1] and
close[2] >= open
bear_engulfing = (close[1] > open[1]) and close < open and close < low[1] and
close[2] <= open
bull_up = (close > close[1]) and close[1] > open[2] and close[3] > close[2]
bear_down = (close < close[1]) and close[1] < open[2] and close[3] < close[2]

plotshape(bull_engulfing, style=shape.circle, location=location.belowbar,


size=size.small, title="Bull_Engulfing", color=call_color, text="A")
plotshape(bear_engulfing, style=shape.circle, location=location.abovebar,
size=size.small, title="Bear_Engulfing", color=put_color, text="A")
plotshape(bull_up, style=shape.triangleup, location=location.belowbar,
size=size.small, title="Bull_UP", color=call_up_color, text="ok")
plotshape(bear_down, style=shape.triangledown, location=location.abovebar,
size=size.small, title="Bear_DOWN", color=put_down_color, text="ok")

c1 = security(syminfo.tickerid, "15", high)


c2 = security(syminfo.tickerid, "15", low)
plot(c1, "C1", color=level_1_color, linewidth=level_1_width)
plot(c2, "C2", color=level_2_color, linewidth=level_2_width)

You might also like