Volume in DOM of open position price

 

Hi, i´m trying to get the volume in the DOM at an open position price. I'm quite new to MQL5 and could not find a way to just get the volume of that specific price. 

Any idea would be very welcome

thank You

 

Use MarketBookGet to get the info which gives you an array of MqlBookInfo structures, find your price you will get your volume.

See the example in first link.

 
Enrique Dangeroux:

Use MarketBookGet to get the info which gives you an array of MqlBookInfo structures, find your price you will get your volume.

See the example in first link.

Thank You! Another concern is If I open the depth of market of one symbol in OnInit can I leave it opened since I'll only work with one dom?