could some body please help me,, mql5

 
i'v modified custom simple moving average code, and try to display the average of open and close price.. but only the openbuffer displayed, and the closebuffer is always set to 0 value. please help me to fix it.. thanks alot..
Files:
000xxx.mq5  6 kb
 

Curly brackets.

You need more curly brackets.

if(this happens)
this will change;
this will not;

but 

if(there are curly brackets)
  {
   this will change;
   and this will change too;
  }
 
thank so much..
it work now...

i love you...
Reason: