problem with iCustom - page 2

 
Mehrdad Sarrafi #: I wonder what did you mean by this sentence!!!?

 maybe you meant something different than I understood , and then you donot answer me again  bacaue you think I ....

if so , It is better to go to an English class to learn the tenses or use google translate always before answering poor questioner .

Exactly what I wrote. Exactly what the quoted documentation (with link) said. Simple English. Buffers are as-series by default; unnecessary calls. Arrays have no default; do not depend. I could not have been more clear.

   ArraySetAsSeries(MacdBuffer,True);
   ArraySetAsSeries(BufferSell,True);
   ArraySetAsSeries(BufferBuy,True);

//--- main loop of calculations
//   for(i=0; i<limit; i++)
   for(i=limit-1; i>=0; i--)
     {
      MacdBuffer[i]=iMA(NULL,0,12,0,MODE_EMA,PRICE_CLOSE,i)-//InpFastEMA
                    iMA(NULL,0,26,0,MODE_EMA,PRICE_CLOSE,i);//InpSlowEMA
     }
//---limit=1;
//   for( j=0;j<limit; j++)
   for(j=limit-1; j>=0; j--)
     {
      //---
      if(MacdBuffer[j+1]>0 && MacdBuffer[j]<0)  // cross down
        {
            BufferBuy[j]=close[j];
I have been speaking English for sixty three (63) years. It is you that doesn't understand and is argumentitive (this is the second time) On my Do Not Help list; live in ignorance.
Reason: