10$ for upgrading the indicator - page 7

 
You should all be averaging with exponents. Take it lower, at least by an order of magnitude.
 
Svinozavr >>:

А чего для экпоненциальной? Она и так изначально с "дробным" периодом, которого у нее, собственно, и нет - там только коэфф. обратной связи. Это в МТ так сделали, что EMA не дробная. А так она всегда имела дробный параметр. Пересчитывайте из дробного периода этот коэфф-т и все дела. k=2.0/(1+period);
Ну, а остальные из стандартных - элементарно уже делаются.

Please forgive me generously for being illiterate.

It's just the way Alexei set the task. ;)

And we've already picked up the answer - like, similar to the previous averages...

 
Shhhhhhhh:)))
 
Well, here's an added switch EMA with a fractional period. Whoever wants it, can continue. Two methods left.))) And then you can do a full replacement of the built-in iMA with price type, shift, etc.
#property indicator_chart_window // в окне инструмента
#property indicator_buffers 1
#property indicator_color1 Blue  

// входные параметры
extern double MAperiod=3; // 
extern int Method=0; 
 int History=0; // 0- все бары

double   MA[]; // массив буфера
double k; // коэфф. EMA
double rt; // дробная часть периода
int per; // целая часть периода

void init() { // инициализация
   per=MathFloor(MAperiod);
   rt=MAperiod-per;
   k=2.0/(1+MAperiod);
   SetIndexBuffer(0,MA); // индикатор
   SetIndexLabel(0,"MA("+DoubleToStr(MAperiod,2)+")");
  }

void start() {
   int limit=Bars-IndicatorCounted()-1; 
   if(History!=0 && limit>History) limit=History-1; // кол-во пересчетов по истории

   for(int i=limit; i>=0; i--) { // цикл пересчета по ВСЕМ барам
      switch(Method) {
         case 0: // SMA
            int j=i+per;
            double ma=rt*Close[j];
            j--;
            for(; j>=i; j--) ma+=Close[j];
            ma/=MAperiod;
            MA[i]=ma;
            break;
         case 1: // EMA
            MA[i]=k*Close[i]+(1-k)*MA[i+1];   
        }
     }   
  }
Files:
rma.mq4  2 kb
 
avatara >>:

Просто Алексей так задачу поставил. ;)

The EMA question was provocative and I deliberately put it at the end of the list :)

 
I am young. I'm green. Don't judge me harshly. I just love maths.
And only elementary.
 
Mathemat >>:

Вопрос с ЕМА был провокационным, и я его спецом поставил в конец списка :)

Well, it wasn't me you provoked, after all.))
Yeah, tried my indicator with the fractional weight in the high bar? Seems logical to me. Especially if you think of it as a series, and how the period fractional crawls on the oldest member.))

 
Yes, that makes sense. It doesn't really differ much from grell' s solution.
 
Maybe I'm being silly.... but I don't think even SMA fractions should be counted that way...
 
Suggest something else, gumgum.