Read Rectangle

 

Hello, I have a problem.

I wrote an indicator that draws different rectangles, on the chart, in green and in red.

Now I want my EA to identify these (indicator already implemented) and know which price is eg at the bottom and bottom. Is there a similar program here that can be optimized, or does someone have a code for me?

Kind regards, Jan

 
Yango:

Hallo, ich habe ein Problem. 

ich habe einen Indikator geschrieben, der verschiedene Rechtecke setzt, auf dem Chart, in grün und in Rot.

 

Jetzt will ich, dass mein EA diese identifiziert (Indikator bereits implementiert) und weiß, welcher Preis z.B. an der Unter- und Unterkante ist. Gibt es hier ein ähnliches Programm, dass sich optimieren lässt, oder hat jemand einen Code für mich? 



Liebe Grüße, Jan 

try this code :

ObjectSetDouble(ChartID(),"Object_Name",OBJPROP_PRICE,0);//Price of rect
ObjectSetInteger(ChartID(),"Object_Name",OBJPROP_TIME,0);//tim0 of rect

and this for point 2 of rect :

ObjectSetDouble(ChartID(),"Object_Name",OBJPROP_PRICE,1);//Price 1 of rect
ObjectSetInteger(ChartID(),"Object_Name",OBJPROP_TIME,1);//tim 1 of rect
 
Abdullah Alrai # :

try this code :

and this for point 2 of rect :

thank you very much, i will try that :)
 
You will need to use ObjectGet, not ObjectSet....


 
Dominik Christian Egert #:
You will need to use ObjectGet, not ObjectSet....


thank you :)