Download MetaTrader 5

How to tell when a chart has closed?

To add comments, please log in or register
olddirtypipster
27
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.

Alain Verleyen
Moderator
31460
Alain Verleyen  
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  
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
40833
Rogerio Figurelli  
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
31460
Alain Verleyen  
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