Does this Keltner MTF code Repaint?

 

Hi guys,


Below is the code of Keltner MTF indicator.

Can someone tell me if this code repaints? 

I am also trying to monitor it visually - but a confirmation would be great.

Thank you.


int start()
{

int limit=1000;
//+++======================================================================+++

   for (int i=limit; i>=0; i--)    ///for (int i=0; i<limit; i++) 
    {
     double avg1 = iATR(NULL,TimeFrame,FastATR, iBarShift(NULL, TimeFrame, Time[i])+1);  ///10
     middle1[i]  = iMA(NULL, TimeFrame, FastHalfLength+1, 0, FastMethod, FastPrice, iBarShift(NULL, TimeFrame, Time[i]));
     upper1[i]   = middle1[i] + FastUprKoef*avg1;
     lower1[i]   = middle1[i] - FastLowKoef*avg1;
     //------
     double avg2 = iATR(NULL,TimeFrame,SlowATR, iBarShift(NULL, TimeFrame, Time[i])+1);  ///10
     middle2[i]  = iMA(NULL, TimeFrame, SlowHalfLength+1, 0, SlowMethod, SlowPrice, iBarShift(NULL, TimeFrame, Time[i]));
     upper2[i]   = middle2[i] + SlowUprKoef*avg2;
     lower2[i]   = middle2[i] - SlowLowKoef*avg2;
//+++======================================================================+++
//+++                         Keltner MTF                                  +++
//+++======================================================================+++

    }
 
JForex:

Hi guys,


Below is the code of Keltner MTF indicator.

Can someone tell me if this code repaints? 

I am also trying to monitor it visually - but a confirmation would be great.

Thank you.


An ma do not repaint

 

Thanks @amando !!!


More comments welcome.

 
JForex: More comments welcome.

Using logic:

  • iMA does not "repaint"
  • iATR does not "repaint"
  • therefore your "Keltner" does not repaint

Please note however, the the current bar is always changing, but that is normal on all indicators and is not considered "repainting"!

 
Fernando Carreiro:

Using logic:

  • iMA does not "repaint"
  • iATR does not "repaint"
  • therefore your "Keltner" does not repaint

Please note however, the the current bar is always changing, but that is normal on all indicators and is not considered "repainting"!

Thanks @Fernando Carreiro !!!


Current bar is no problem. I look at the last one.