Indicator HELP to write in complete-full mql4 code

 

On metastock the formula is and i call the indicator "Fund Groups": Mov(((Mov(C,3,E)-Mov(C,10,E))+(Mov(C,5,E)-Mov(C,12,E))+(Mov(C,8,E)-Mov(C,15,E)/3)),30,E); which is in few words a 30 period exponential moving average. first we have 3 differences between 6 moving averages, we add them and then divide / 3 (groups) . This result is the 30 period moving average .

I would like to have five indicators (groups) of the above in the same window The picture on metastock is like the picture below the formulas. So we need 6 moving averages for each indicator and a period variable which is 30 in the example and the method which is exponential in the example.

The method (e) and the periods variable (30) must be the same at all groups

Each line in subwindow below has 6 different MA

Mov(((Mov(C,3,E)-Mov(C,10,E))+(Mov(C,5,E)-Mov(C,12,E))+(Mov(C,8,E)-Mov(C,15,E)/3)),30,E);

Mov(((Mov(C19,E)-Mov(C,31,E))+(Mov(C,23,E)-Mov(C,35,E))+(Mov(C,27,E)-Mov(C,41,E)/3)),30,E);

Mov(((Mov(C,44,E)-Mov(C,62,E))+(Mov(C,50,E)-Mov(C,68,E))+(Mov(C,56,E)-Mov(C,74,E)/3)),30,E);

Mov(((Mov(C,135,E)-Mov(C,160,E))+(Mov(C,145,E)-Mov(C,180,E))+(Mov(C,165,E)-Mov(C,200,E)/3)),30,E);

Mov(((Mov(C,170,E)-Mov(C,200,E))+(Mov(C,190,E)-Mov(C,220,E))+(Mov(C,210,E)-Mov(C,240,E)/3)),30,E);


Thanks for help



 
69696933:
Mov(((Mov(C,3,E)-Mov(C,10,E))+(Mov(C,5,E)-Mov(C,12,E))+(Mov(C,8,E)-Mov(C,15,E)/3)),30,E);
Mov(((Mov(C,3,E)-Mov(C,10,E))+(Mov(C,5,E)-Mov(C,12,E))+(Mov(C,8,E)-Mov(C,15,E)/3)),30,E);
Mov(((Mov(C,3,E)-Mov(C,10,E))+(Mov(C,5,E)-Mov(C,12,E))+(Mov(C,8,E)-Mov(C,15,E)/3)),30,E);
Mov(((Mov(C,3,E)-Mov(C,10,E))+(Mov(C,5,E)-Mov(C,12,E))+(Mov(C,8,E)-Mov(C,15,E)/3)),30,E);
Mov(((Mov(C,3,E)-Mov(C,10,E))+(Mov(C,5,E)-Mov(C,12,E))+(Mov(C,8,E)-Mov(C,15,E)/3)),30,E);

All those lines are identical. You are limited to 8 automatic (drawing) buffers on mql4.

create 1 non-display buffer and one displayed

//Mov(((Mov(C,3,E)-Mov(C,10,E))+(Mov(C,5,E)-Mov(C,12,E))+(Mov(C,8,E)-Mov(C,15,E)/3)),30,E);
double c3E =iMA(NULL,0, 3,0,MODE_EMA,PRICE_CLOSE,E),
       c5E =iMA(NULL,0, 5,0,MODE_EMA,PRICE_CLOSE,E),
       c8E =iMA(NULL,0, 8,0,MODE_EMA,PRICE_CLOSE,E),
       c10E=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,E),
       c15E=iMA(NULL,0,15,0,MODE_EMA,PRICE_CLOSE,E);
tmpBuffer[E] = (c3E-C10E+C5E-C12E+C8E-C15E)/3;
dspBuffer[E] = iMAOnArray(tmpBuffer,limit,30,0,MODE_EMA,E);
 
WHRoeder:

All those lines are identical. You are limited to 8 automatic (drawing) buffers on mql4.

create 1 non-display buffer and one displayed



I dont know mql4 and when i compile shows many errors check out. i dont know what do you mean by "create 1 non-display buffer and one displayed" please help

the full code is what you sent me;

 
No slaves here, either learn mql4 or pay someone
Reason: