small problem ciclo for an increase
Results 1 to 2 of 32

Thread: small problem ciclo for an increase

  1. #1
    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;

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.