大家好,我没有增加柜台的问题。
在我的第一个条件之后,我尝试从for循环计数的1500个蜡烛中,关闭[1 i]在历史中重复至少20次。

全局作用域:插入代码int CountSell; double CloseSell;布尔卖;
插入代码if(iCustom(NULL,PERIOD_CURRENT,CCI,CCI_Periodo,0,PRICE_CLOSE,i)> 60 iCustom(NULL,PERIOD_CURRENT,CCI,CCI_Periodo,0,PRICE_CLOSE,i)lt; 80 {Sell = false; CloseSell = Close如果(销售== false){for(int I = 0; Ilt; 1500; I ){if(CloseSell == Close#91; 2 I#93 ;; CountSell = 0; 93;){CountSell ; Print(CountSell: IntegerToString(CountSell)); Print(Price: DoubleToString(CloseSell));} if(CountSell == 20){I = 1500; Sell = true;}}}