PDA

View Full Version : small problem ciclo for an increase



CAYMMRU
02:35,
Hello everybody, I have very little difficulty.
After my first condition , I attempt in the 1500 candles counted from the for loop, the close[1 I] is replied at least 20 occasions in the history.

Global Scope: Inserted Code int CountSell; dual CloseSell; bool Sell;
Inserted Code 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=Close#91;1 I#93;; CountSell=0; if(Sell == false) for(int I=0; Ilt;1500; I ) if(CloseSell==Close#91;2 I#93;-RRB- CountSell ; Print(CountSell: IntegerToString(CountSell)); Print(Price : DoubleToString(CloseSell)); if(CountSell==20) I=1500; market=true;

CAYMMRU
11:08,
?!? pleases