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.
 
William Roeder #:

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.

maybe I should write these before  , or maybe I should thanks for your responses on previous topics 

 but that seems to hard and long  for me to write,  and I cannot mention to your responses and write simply on these forums !!


if I 'd written, maybe you wouldn't delete  my new topic after several weeks !!! on  6/15/2024 with two responses from my dear friends without any reason !!) ***

It seems that you have a  spiteful spirit , that cause to act and write without reading carefully and thinking on responses

here are programming site , if I argue (as you say!! ) on previous topic , that was for understanding better not for ingratitude!!

and no one force you to answer ! but if you answer , do it friendly and politely ..

your anger and carelessness caused by that, was obvious, from the first response in this topic!! that you with such a brilliant record and activity on this site do not saw my attached file  and speak like that !!

then again with your brilliant knowledg on MQL just mention the time series !! and after I corect the limit ammount and timeseries , in Oncalculate you  do not help again !!! and do not answer my deep questions !!


but for your information ( if you donot know really !!!) this indicator calculate from past to now and process the state machine from past to now .

this is a programming style , not only the matter of seting timeseries or not , but intentionally indexing for cycle to do that 

despite the standard library in ExpertSignalMACD.mqh that each time calculate extremum and comparemaps for them ,

I calculate one extremum and when times past and finding new extremum , shift the previous and do like that 


So when pre_calculated is not zero , it is not enough for only one last candle to calculate , but at least for the last Depth+Backstep candles are required !!

but you only think the person that write here are careless and ungratefull and lover of argument !!! 

good luck 

forgive me or let me be in your ignorance without deleting my post !!!

thanks in advanced

 

Mehrdad Sarrafi #:

if I 'd written, maybe you wouldn't delete  my new topic after several weeks !!! on  6/15/2024 with two responses from my dear friends without any reason !!) ***

forgive me or let me be in your ignorance without deleting my post !!!

I have deleted no posts since becoming a moderator. Your 6/15 post was deleted by another because it was empty (for whatever reason).

 
William Roeder #:

I have deleted no posts since becoming a moderator. Your 6/15 post was deleted by another because it was empty (for whatever reason).

yes , As I can see in received notif  in my android app,  user : Tobias Johannes Zimmer  have posted an empty message 

and maybe a moderator have deleted all messages of post by mistake!!!


Anyway, thanks for clearing misunderstanding