How to discover how many assets are opened?

 

Hello everybody!

There are any way to discover how many graphics are opened on the Metatrader 4 ?

 

You can find out how many objects are on a chart with Ctrl B

You could count all the objects on all the charts in a profile with code. 

 

i think the OP meant to ask how many charts are open, and not graphical objects (but i might be wrong, as always)

if so, there is an example here 

 
qjol:

i think the OP meant to ask how many charts are open, and not graphical objects (but i might be wrong, as always)

if so, there is an example here 

I think that you are probably right,  still I won't delete my reply.
 

Hi, all.. Yes, i need to know how man asset windows (charts) are opened... sorry for my poor english... graphic or chart translating to portuguese are the same thing but i cannnot know the difference... now i know.


Yes, ChartNext and ChartFirst is what i need... tx.. 

 

Thanks guys.

 
WindowsTotal()
 
eevviill:
WindowsTotal()
That returns the total of the main chart + indicator sub-windows on a single chart, but as it is not clear what the OP is asking, it could be what he is looking for.
 
GumRai:
That returns the total of the main chart + indicator sub-windows on a single chart, but as it is not clear what the OP is asking, it could be what he is looking for.

No i do not want the subwindows... only the count of charts opened... the solution presented qjol  is working fine! 

Reason: