Objects in foreign Chartwindow

 

Hi guys,

i' m running an EA, that searches all Symbols. Now the EA proofs if there is a chart window of this Symbol and Timeframe already opened by using windowhandle().

If it is true the EA should search in this Chart window how many Objects are inside. (this is a different chart window than the window in which the EA is running!)

if it is false, the next Symbol will be screened.


P.S. before running the EA i opened some interesting charts and drawed some lines in it.


Now my problem is that i can't find a way to let the EA know how many objects are in ths foreign chart window

Do you have any ideas?


Best regards

Mirko

 

That won't help, the Objects are on a different chart not the chart where the code is running.
 
RaptorUK: That won't help, the Objects are on a different chart not the chart where the code is running.

Yeah, global variables or file then.

https://docs.mql4.com/globals

https://docs.mql4.com/files/FileOpen

 
thx for your help
Reason: