Re: Does this repaint?

#123
mntiwana wrote:
Thu Oct 12, 2017 4:35 am
friend4you wrote:
Thu Oct 12, 2017 3:34 am
Hi!
I tested this oscillator of old 2006, which is changed for many snake systems that have repainting indicators, but after all my backtesting I could not find evidence that also this repaints, but it may use centered tma, which repaints badly. Can you help me?
Snake in borders 2006 Osz.no repaint.ex4
Snake in borders 2006 Osz.no repaint.mq4
Which help you required for repainting indicator :)
Centered TMA like in the other, previous posts, repaint, but I said this version of oscillator I posted does not repaint. How can you see it without downloading and checking? Not all snakes are the same. Mladen posted some triangular ma (TMA) that don't repaint.
Snake in borders 2006 Osz.no repaint.ex4
(18.86 KiB) Not downloaded yet
Snake in borders 2006 Osz.no repaint.mq4
(6.11 KiB) Downloaded 1 time

Re: Does this repaint?

#125
friend4you wrote:
Thu Oct 12, 2017 6:28 am
mntiwana wrote:
Thu Oct 12, 2017 4:35 am

Which help you required for repainting indicator :)
Centered TMA like in the other, previous posts, repaint, but I said this version of oscillator I posted does not repaint. How can you see it without downloading and checking? Not all snakes are the same. Mladen posted some triangular ma (TMA) that don't repaint.
Snake in borders 2006 Osz.no repaint.ex4
(18.86 KiB) Not downloaded yet
Snake in borders 2006 Osz.no repaint.mq4
(6.11 KiB) Downloaded 1 time
That is correct : that version is using my "regular" TMA (that does not repaint - this function :

Code: Select all

double iTma(double price, double period, int i)
{
   double half = (period+1.0)/2.0;
   double sum  = 0;
   double sumw = 0;
   prices[i] = price;

// for(int k=0; k<period && (i+k)<Bars; k++)
   for(int k=0; k<period;k++)
   {
      double weight = k+1; if (weight > half) weight = period-k;
             sumw  += weight;
             sum   += weight*prices[i+k];  
   }             
   if (sumw!=0)
         return(sum/sumw);
   else  return(EMPTY_VALUE);
}




Who is online

Users browsing this forum: Google [Bot] and 28 guests