Forum

Chart operations in an Expert Advisor

Hi all, I have a simple question! I just want to know whether it is possible to use chart index as chart ID in an expert advisor when I call the function ChartSetInteger to change chart's properties such as color? I have tried to use index assuming 0 is the current chart which is not closed yet and

How to check a bar (candle) is closed?

Hi all, I am using MetaTrader 4 to implement my indicator using mql4. In my code I would like to check whether a candle or if it called a bar is closed with the defined resolution. For instance if each bar's duration is one minute, I would like to read its values when it is closed not while it is