how to get the price of two edges of rectangular in mql5?

 

Hi everyone

i want to know there is a way to get both edge price of a rectangular in mql5?

i tried the ObjectGetDouble(0,Rec1,OBJPROP_PRICE)  but it just give me one of them 

 
Seyedmasoud Hashemi:

Hi everyone

i want to know there is a way to get both edge price of a rectangular in mql5?

i tried the ObjectGetDouble(0,Rec1,OBJPROP_PRICE)  but it just give me one of them 

Read manualObjectGetDouble

double  ObjectGetDouble(
   long                            chart_id,          // chart identifier
   string                          name,              // object name
   ENUM_OBJECT_PROPERTY_DOUBLE     prop_id,           // property identifier
   int                             prop_modifier=0    // property modifier, if required
   );
Documentation on MQL5: Object Functions / ObjectGetDouble
Documentation on MQL5: Object Functions / ObjectGetDouble
  • www.mql5.com
ObjectGetDouble - Object Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Vladimir Karputov:

Read manualObjectGetDouble

thanks a lot it worked