Download MetaTrader 5

How to tell when a chart has closed?

To add comments, please log in or register
Let your idle PCs do something useful. Join MQL5 Cloud Network!
olddirtypipster
27
olddirtypipster 2014.04.16 00:41 

Two things I would like to do.


1) I want to be able to tell when a chart window has closed. Is this possible? Is there something equivalent to OnChartClosed?

2) I want to be able to keep track of the number of instances a specific indicator has been used. Is this possible?

Thanks for your insights.


OldDirty P.

Alain Verleyen
Moderator
30755
Alain Verleyen 2014.04.16 00:50  
olddirtypipster:

Two things I would like to do.


1) I want to be able to tell when a chart window has closed. Is this possible? Is there something equivalent to OnChartClosed?

What to do ?

2) I want to be able to keep track of the number of instances a specific indicator has been used. Is this possible?

No, I don't think it's possible.

Thanks for your insights.


OldDirty P.

You are welcome.
olddirtypipster
27
olddirtypipster 2014.04.16 00:58  
angevoyageur:
What to do ?
No, I don't think it's possible.

You are welcome.

Am I to take it that none of these two things are possible then?


ODP.

Rogerio Figurelli
Moderator
39692
Rogerio Figurelli 2014.04.16 01:02  
olddirtypipster:

Two things I would like to do.


1) I want to be able to tell when a chart window has closed. Is this possible? Is there something equivalent to OnChartClosed?

2) I want to be able to keep track of the number of instances a specific indicator has been used. Is this possible?

Thanks for your insights.


OldDirty P.

Hi olddirtypipster, about 1) you can create a workaround checking all charts IDs and memorizing their state, take a look here https://www.mql5.com/en/docs/constants/chartconstants/charts_samples some function samples working with several charts.
Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Examples of Working with the Chart
Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Examples of Working with the Chart
  • www.mql5.com
Standard Constants, Enumerations and Structures / Chart Constants / Examples of Working with the Chart - Documentation on MQL5
Alain Verleyen
Moderator
30755
Alain Verleyen 2014.04.16 10:21  
olddirtypipster:

Am I to take it that none of these two things are possible then?


ODP.

Why not just answer my question ?

To add comments, please log in or register