Please assist

 

What causes failure to view buffer on chart window after declaring it. Or better still how can I view buffer data on indicator chart window. My indicator won't show me the buffers

 

Do you have any code so far ?

 
Tatenda Maswedza: What causes failure to view buffer on chart window after declaring it. My indicator won't show me the buffers
  1. You don't "declare" buffers. You declare a double array and in OnInit, make it a buffer:
    double b[];
    :
       SetIndexBuffer(0, b);

  2. In MT4 since build 1090 tell it the buffer type. (It no longer defaults to line.)

    #property   indicator_type1   DRAW_LINE                  // Bug 1090 must set.
    

    alternatively in OnInit()

    SetIndexStyle(0, DRAW_LINE);
Reason: