//version=5 indicator("Estructura de Mercado - SMC", overlay=true)
// Identificar altos y bajos del mercado hh = ta.highest(high, 20) ll = ta.lowest(low, 20)
// Detectar cambio de estructura (BOS - Break of Structure) bos_alcista = high > ta.highest(high[1], 20) bos_bajista = low < ta.lowest(low[1], 20)
// Detectar cambio de carácter (CHoCH - Change of Character) choch_alcista = low > ta.lowest(low[1], 10) and close > open choch_bajista = high < ta.highest(high[1], 10) and close < open