[ Duvida ] Plotar double

 

void OnBookEvent(const string &symbol){
double tbuy=0,tsell=0;
int ibuy=0, isell=0;
   MqlBookInfo book[];
   MarketBookGet(symbol, book);
   if(ArraySize(book) == 0)
   {
      printf("Failed load market book price. Reason: " + (string)GetLastError());
      return;
   }
   int bookSize = ArraySize(book);   
   for(int i = 0; i < bookSize; i++)
      {
         if((book[i].type == BOOK_TYPE_BUY) || (book[i].type == BOOK_TYPE_BUY_MARKET)){
         tbuy+= book[i].volume; 
         ibuy++;    
      }
         
         if((book[i].type == BOOK_TYPE_SELL) || (book[i].type == BOOK_TYPE_SELL_MARKET)){
         tsell+= book[i].volume; 
         isell++;    
         }      
         
      }
    
 //   SellBuffer[] ??????
 //   BuyBuffer[] ??????

}

Estou a pouco tempo utilizando o metatrader e estou tentando criar um indicador personalizado.

É algo bem simples, so vou comparar o volume no book de ofertas de cadas lado. Ja consigui obter os dados porem não consigo plotalos.

Tentei ja SellBuffer[0]=tsell; porem não deu certo. Alguém poderia me instruir no que esta errado?

Razão: