Hola a todos, tengo muy poca dificultad.
Después de mi primera condición, intento en las 1500 velas contadas desde el ciclo for, el close [1 I] se replica al menos 20 veces en la historia.
Alcance global: Código insertado int CountSell; Dual CloseSell; Bool Vender;
Código insertado if (iCustom (NULL, PERIOD_CURRENT, CCI, CCI_Periodo, 0, PRICE_CLOSE, I) gt; 60 iCustom (NULL, PERIOD_CURRENT, CCI, CCI_Periodo, 0, PRICE_CLOSE, I) lt; 80 Sell = false; CloseSell = Cerrar # 91; 1 I # 93 ;; CountSell = 0; if (Sell == false) para (int I = 0; Ilt; 1500; I ) if (CloseSell == Cerrar # 91; 2 I # 93; -RRB - CountSell ; Imprimir (CountSell: IntegerToString (CountSell)); Imprimir (Precio: DoubleToString (CloseSell)); if (CountSell == 20) I = 1500; market = true;