Cycle Pro - Signal
Cycle Pro - Signal
//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
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]