KennedyAdaptiveBaseline
FREE
Publicado:
23 mayo 2025
Versión actual:
1.41
¿No ha encontrado el robot adecuado?
Encargue el suyo
en la bolsa Freelance.
Pasar a la bolsa
Encargue el suyo
en la bolsa Freelance.
Cómo comprar un robot comercial o indicador
Inicia el robot en el
hosting virtual
hosting virtual
Pruebe un indicador/robot comercial antes de comprarlo
¿Quieres ganar en el Market?
Cómo ofrecer un producto para que lo compren
Está perdiendo oportunidades comerciales:
- Aplicaciones de trading gratuitas
- 8 000+ señales para copiar
- Noticias económicas para analizar los mercados financieros
Registro
Entrada
Usted acepta la política del sitio web y las condiciones de uso
Si no tiene cuenta de usuario, regístrese

KAB v1.41
The indicator now runs with series indexing, has safer initialization, more robust parameter validation, and a much smarter volatility lock (hysteresis + optional timed release).
In other words, it's more efficient, more reliable, and smarter.
It also gains an option to operate strictly on closed bars to avoid repaint-style behavior on the forming bar.
Although, having said that, repainting is already avoided by a variety of functions:
1. Closed-bar policy
input bool useClosedOnly = false; // use bar-1 at bar 0
2. Use the previous closed bar’s index everywhere the “current” bar is referenced
int piStart = useClosedOnly ? MathMax(start,1) : start;
int pi = useClosedOnly ? MathMax(i,1) : i;
3. All state/price lookbacks use only prior closes
double sATR = CalcTR(high[piStart], low[piStart], close[piStart+1]);
double tr = CalcTR(high[pi], low[pi], close[pi+1]);
double unsm = prev + alpha * (close[pi] - prev);
4. Seed/recursion is strictly causal (each bar depends only on the previous output)
if(prev_calculated == 0) m_kabBuffer[start] = close[piStart];
double prev = (i==start ? m_kabBuffer[i] : m_kabBuffer[i+1]);
KAB is context-aware where traditional Moving Averages are static. When choosing a baseline, choose KAB.