Allow EA access to supply and demand levels run from an indicator

 
Pretty much as it says in the subject line.  I found a supply and demand indicator online that draws rectangular supply and resistance boxes on the chart.  I want to use these levels as take profits and stop losses for trades opened in an EA.  How can I access these indicator levels in this EA?
 
Read the Book, look for Simple Programs in MLQ4
 
Read in the documentation about ObjectGet with OBJPROP_PRICE1 and OBJPROP_PRICE2