instrument { name = "Cycle Pro V2", icon="[Link]
com/image-
vector/[Link]", superposición = verdadero }
-- compartido por [Link]
-- únete a nuestro canal gratuito [Link]
grupo_de_entrada {
Compra
input {default = "verde", type = [Link]}
}
input_group
Periodo Max/Min
entrada {valor predeterminado = "10", tipo = [Link]}
}
input_group {
Periodo de Micro Tendencia
entrada {predeterminado = "10", tipo = [Link]}
}
input_group
Periodo de la Macro Tendencia
entrada {por defecto = "100", tipo = [Link]}
}
input_group {
Media Rápida
emac_per = input {default = "3", type = [Link]}
}
input_group {
Media Lenta
entrada {predeterminado = "13", tipo = [Link]}
}
input_group {
Venta
input {default = "#fcf805", type = [Link]}
}
input_group {
Velas
entrada { defecto = "#0bd104", tipo = [Link] }
entrada { por defecto = "#F7FB3A", tipo = [Link] }
entrada { defecto = "#f70202", tipo = [Link] }
}
--PARÁMETROS
EMAA = ema(cierre, emaa_per)
ema(cierre, emab_per)
EMA(hlc3, emac_per)
ema(hlc3,emad_per)
superior
más bajo
--CÁLCULOS
TA = ((cierre > cierre[1]) y (cierre > EMAA) y (EMAA > EMAA[1]))
TB = ((cierre < cierre[1]) y (cierre < EMAA) y (EMAA < EMAA[1]))
ENC = ((EMAC[1] < EMAD[1]) y (EMAC > EMAD))
ENV = ((EMAC[1] > EMAD[1]) y (EMAC < EMAD))
sec = seguridad (current_ticker_id, "1m")
si sec entonces
color_bar
si (TA == verdadero) entonces
positivo
elseif (TB == verdadero) entonces
negativo
else
neutro
fin
trazar_candela (apertura, alta, baja, cierre, "ES", color_barra)
(superior, "Resistencia", color_linea_superior)
(bajo, "Soporte", color_baja_linea)
fin
input_group { "CALL - UP COLOR", call_color = input { default="#0bd104", type =
[Link] } }
input_group { "PUT - DOWN COLOR", put_color = input { default="#f70202", type =
[Link]
si ((cierre[1] < apertura[1]) y (cierre > apertura) y (cierre > alto[1]) y cierre[2] >=
abrir) entonces
trazar_figura(1,
Engullimiento Alcista
forma_estilo.círculo
forma_tamañ[Link]
color_de_llamada
shape_location.debajobarra
0
ing
#fcfc03
)
sino
si ((cierre[1] > apertura[1]) y (cierre < apertura) y (cierre < bajo[1]) y cierre[2]
<= abierto) entonces
trazar_forma(1,
Osos_Engullendo
shape_style.círculo
enorme
poner_color
shape_location.arriba de la barra
0
ing
#fcfc03
)
fin
fin
ARRIBA - COLOR ARRIBA
[Link] } }
input_group { "DOWN - DOWN COLOR", put_color = input { default="#f70202", type =
[Link]
si ((cierre > cierre[1]) y (cierre[1] > apertura[2]) y (cierre[3] > cierre[2])) entonces
trazar_forma(1,
Bull_UP
shape_style.arrowup
enorme
color_de_llamada
shape_location.debajo de la barra,
0
OK
#fcfc03
)
más
si ((cierre < cierre[1]) y (cierre[1] < apertura[2]) y (cierre[3] < cierre[2])) entonces
trazar_forma(1,
SOPORTAR_ABAJo
shape_style.arrowdown
enorme
poner_color
shape_location.abovebar
0
OK
#fcfc03
)
final
fin
instrument { name = "Cycle Pro V2", overlay = true, icon="indicators:ATR" }
c1 = close[1] < open[1] y close > open
c2 = cerrar > abrir[1]
c3 = lowest(low,3) < lowest(low,50)[1] o lowest(low,3) < lowest(low,50)[2] o
lowest(low,3) < lowest(low,50)[3]
comprar
c4 = cierre[1] > apertura[1] y cierre < apertura
c5 = cierre < apertura[1]
c6 = mayor(alto,3) > mayor(alto,50)[1] o mayor(alto,3) > mayor(alto,50)
[2] o highest(high,3) > highest(high,50)[3]
c4 y c5 y c6
plot_shape(buy, "long", shape_style.arrowup, shape_size.huge, '#0bd104',
forma_ubicacion.debajodebarra,0,'100%', '#fcfc03')
trazar_forma(vender, "corto", estilo_forma.flecha_abajo, tamaño_forma.grande, '#f70202',
forma_ubicacion.arriba_barras,0,'100%', '#fcfc03')
instrument { name = "Cycle Pro V2", overlay = true }
porcentaje = entrada (2, "Porcentaje", [Link], 0.01, 100, 1.0) / 100
3
grupo_de_entrada {
[Link]
input { default = "#37FA0A", type = [Link] }
entrada { predeterminado = "#FCA800", tipo = [Link] }
ancho
}
referencia local = hacer_serie()
referencia:set(nz(referencia[1], alto))
local es_direccion_arriba = hacer_serie ()
set(nz(is_direction_up[1], true))
local htrack = hacer_serie ()
local ltrack = make_series ()
local pivote = hacer_serie ()
rango_inverso = referencia * porcentaje / 100
si obtener_valor (es_direccion_arriba) entonces
htrack:set (max(alto, nz(htrack[1], alto)))
si el cierre < htrack[1] - rango_inverso entonces
pivot: establecer (htrack)
is_direction_up:set (false)
establecer(htrack)
fin
else
ltrack:set (min(bajo, nz(ltrack[1], bajo)))
si el cierre > ltrack[1] + rango_inverso entonces
pivot: establecer (ltrack)
is_direction_up:set(true)
referencia:set (ltrack)
fin
fin
is_direction_up() y up_color o down_color
trazar(pivot, 'ZZ', color, ancho, -1, [Link], modo_na.continuar)
trazar(pivot, 'ZZ', color, ancho, -1, estilo.línea_punteada, modo_na.continuar)
instrument { name = " Cycle Pro V2", overlay = true }
porcentaje = entrada(2, "Porcentaje", [Link], 0.01, 100, 1.0) / 100
period = 3
input_group {
[Link]
entrada { predeterminado = "rgba(255, 138, 20, 0.36)", tipo = [Link] }
down_color = input { default = "rgba(0, 253, 8, 0.36)", type = [Link] },
entrada { predeterminado = 1, tipo = entrada.ancho_de_línea }
}
referencia local = hacer_serie ()
referencia:set(nz(referencia[1], alto))
local es_direccion_arriba = hacer_serie ()
set(nz(is_direction_up[1], true))
local htrack = make_series ()
local ltrack = make_series ()
local pivot = hacer_serie ()
rango_inverso = referencia * porcentaje / 100
si get_value (is_direction_up) entonces
htrack:set (max(alto, nz(htrack[1], alto)))
si close < htrack[1] - reverse_range entonces
pivot:establecer (htrack)
is_direction_up:set (false)
referencia:set(htrack)
fin
sino
ltrack:set (min(bajo, nz(ltrack[1], bajo)))
si el cierre es mayor que ltrack[1] + rango_inverso entonces
pivot: establecer (ltrack)
is_direction_up:set(true)
referencia:conjunto (ltrack)
fin
fin
is_direction_up() y up_color o down_color
trazar(pivot, 'ZZ', color, ancho, -1, [Link], modo_na.continuar)