Problem In Comparing Volume of Special Queue In Depth Of Market

 
//+------------------------------------------------------------------+
//|                                                   Sell Queue.mq5 |
//|                                  Copyright 2020, Arash And Navid |
//|                                                             NULL |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, Arash And Navid"
#property link      "NULL"
#property version   "1.00"
input long Sell=4000000; //Sell Queue Amount
input double Percent=25; // Change Percentage
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
Comment("Sell Queue Filter Activated, See Results In Tool Box-Experts");

   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
Comment(" ");
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {

  }
//+------------------------------------------------------------------+
void OnBookEvent(const string &symbol)
  {

int Sym= SymbolsTotal(true);
   for(int i=0; i<Sym; i++)
     {
      string chart= SymbolName(i,true);
       MqlBookInfo queue[];
       MarketBookGet(chart, queue);

      if(ArraySize (queue)>0)
      {
      long queue0=queue[0].volume;
      long queue1=queue[1].volume;
      long queue2=queue[2].volume;
      long queue3=queue[3].volume;
      long queue4=queue[4].volume;
      long queue5=queue[5].volume;
      long queue6=queue[6].volume;
      long queue7=queue[7].volume;
      long queue8=queue[8].volume;
      long queue9=queue[9].volume;
      if(queue0=0 && queue5>Sell)
      {
      Print("x");
      }
      }
     }

  }

Hi Guys, I Am a Basic Coder, I Want To Check All Symbols in Stocks, Because I Want To Filter Them Via Their Queue's Volume In Depth Of Market

For Example I want To Check If There is a Symbol With Just One Line of Sell, And No Line Buy, First OF All The Volume Must Be Above 4,000,000 Then

If Volume Decreases By 25%

I Want To Show The Results in a Print();


So I Write This Code, But The Problem Is: When I Want To Compare For Example: queue0[0].volume>4000000

I Got To Errors: 1- This Is Bool And Can Not Be Compared.  2- I- Value Required

I Know That MqlBookInfo Is Bool,

But How Can I Use The Volume of Special Line And Compare It With The Number? Is There Any Way?

I Add The Picture And The Code, I Would Be Thankful For Everything

Thanks In Advance + Best Regards

Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Order Book Structure
Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Order Book Structure
  • www.mql5.com
Order Book Structure - Data Structures - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Files:
Untitled.jpg  52 kb