Retrieving price from top and bottom levels of a rectangle

 

Hi, I'm just new to MT5 coding and wondering how to retrieve the price from both top and bottom levels of a rectangle? I can use the OBJPROP_PRICE to get one of the edges but how do I get the other? I've been try for hours to work it out!

Thanks in advance

block7775

 
block7775 I can use the OBJPROP_PRICE to get one of the edges 

Wrong. Reread the documentation. ObjectGetDouble