Discusión sobre el artículo "Guía paso a paso para operar con la estrategia de ruptura de estructura (BoS, Break of Structure)" - página 2 12 Nuevo comentario Allan Munene Mutiiria 2025.11.25 08:04 #11 fengbao88 #: Futuras funciones serias, esto es pura y simple trampa, no estoy seguro de lo que pretendes. const int limit = 20; int curr_bar = limit; // = 20 for (int j=1; j<=length; j++){ right_index = curr_bar - j; // izquierda: barra histórica (correcto) left_index = curr_bar + j; // derecha: barra futura (¡¡¡gravemente incorrecto!!!) if ( (high(curr_bar) <= high(right_index)) || (high(curr_bar) < high(left_index)) ){ isSwingHigh = false; } if ( (low(curr_bar) >= low( right_index)) || (low(curr_bar) > low(left_index)) ){ isSwingLow = false; } } Bien, ¿cuál es tu implementación? Su explicación muestra claramente que entiende nuestro enfoque. Escanea tanto la barra izquierda como la derecha. ¿Qué sugieres hacer en tu caso? Eso ayudará a otros también si usted tiene un mejor enfoque. Gracias. Proteger el código fuente Ayuda con indicador personalizado Una sugerencia a la 12 Nuevo comentario
Futuras funciones serias, esto es pura y simple trampa, no estoy seguro de lo que pretendes.
const int limit = 20; int curr_bar = limit; // = 20
for (int j=1; j<=length; j++){ right_index = curr_bar - j; // izquierda: barra histórica (correcto) left_index = curr_bar + j; // derecha: barra futura (¡¡¡gravemente incorrecto!!!)
if ( (high(curr_bar) <= high(right_index)) || (high(curr_bar) < high(left_index)) ){ isSwingHigh = false; } if ( (low(curr_bar) >= low( right_index)) || (low(curr_bar) > low(left_index)) ){ isSwingLow = false; } }