Get Price Levels of Rectangle

 

Hi, I have rectangles on my chart and I want to be able to grab their price levels in my EA but I cannot seem to extract that from the existing object. I can only change them.


Does anyone know how to get the price levels of an existing rectangle? The following returns "Name: Rectangle 789   Price: 1"


Thanks

ObjectFind(ChartID(), ObjectName(0));

Comment("Name: ",ObjectName(0), "  Price: ", OBJPROP_PRICE1);
 
Did you try ObjectGetDouble() ? OBJPROP_PRICE ?
 
Marco vd Heijden:
Oh, My bad. I wasn't using that right. This worked thanks.