// Configuración de parámetros length = input.int(14, title="Longitud para Soportes y Resistencias", minval=1) rsi_length = input.int(14, title="Longitud del RSI") ema_length = input.int(50, title="Longitud del EMA")
// Cálculo de Soportes y Resistencias highest_high = ta.highest(high, length) lowest_low = ta.lowest(low, length) resistance = highest_high support = lowest_low
// RSI rsi = ta.rsi(close, rsi_length)
// EMA ema = ta.ema(close, ema_length)
// Condiciones de Señales con RSI y EMA buy_condition = ta.crossover(close, support) and close > ema and (not show_rsi_filter or rsi < rsi_lower) sell_condition = ta.crossunder(close, resistance) and close < ema and (not show_rsi_filter or rsi > rsi_upper)