How to get buy/sell prices from the depth of market using code?

 

How do I get buy/sell prices from the depth of market in the following picture so I'll able to find like 5 or maybe 10 best buy/sell prices? 

I want like 10 of these.

 tl;dr I'm relatively new dont even know how to attach a picture so I attached it as a file.

Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
  • www.mql5.com
Symbol Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Files:
picture.png  16 kb
 
Nimoonphob noobiris: How do I get buy/sell prices from the depth of market in the following picture so I'll able to find like 5 or maybe 10 best buy/sell prices? I want like 10 of these.

 tl;dr I'm relatively new dont even know how to attach a picture so I attached it as a file.

I gave you an answer in a related thread of yours ... MqlBookInfo

Forum on trading, automated trading systems and testing trading strategies

How to get Bid/Ask volume.

Fernando Carreiro, 2022.05.22 11:33

By using the SymbolInfoTick functin you can obtain MqlTick information, which includes volume, paying careful attention to the flags.

You can also obtain MqlBookInfo information with the MarketBookGet function, and react to OnBookEvent() events subscribed to with MarketBookAdd().