Chart_id numbering system

 

Hello everyone,

Are chart_id's random numbers generated by forex/MQL4/5?

 
They aren't defined in the documentation. Don't assume, anything could change. Just use the API.
          ChartNext - Chart Operations - MQL4 Reference
 

Hello again,

I am trying to delete/replace the first symbol in watch window. I have been doing this, but it closes the window, not delete it from watch window.

   Close_Chart   = ChartClose(chartid);
 
GrumpyDuckMan: it closes the window, not delete it from watch window.
  1. Don't post a single line of code without context. There are no mind readers here.
  2. Of course. Closing a window has nothing to do with the Market Watch list.
  3. Look at SymbolSelect - Market Info - MQL4 Reference
 

Hello again,

Thank you whroeder1,

Is there a minimum number of charts in watch window?

I can delete all of them except the last 3 pairs. 

 
  1. There aren't any charts in the Market Watch. Only symbols.
  2. Did you read where the link talks about ten minutes?
 
whroeder1:
  1. There aren't any charts in the Market Watch. Only symbols.
  2. Did you read where the link talks about ten minutes?

Hello again,

I am trying to remove the symbol from the watch window, but three symbols remain in the watch window. I only want one symbol in watch window. The other two symbols don't remove or delete, even with SymbolSelect().

some ideas please.