William William #: An open candle only has the Open price which is the last candle's Close price in most of the cases(forex/xauusd). So in the open candle, you only have 3 properties Open price which is Close[1], Ask price and Bid price.
No, the open price of a candle is rarely the same as the close price of the previous candle. It may be very similar but it is rarely the same for any symbol.
Yinglin Tang #: An open candle only has the Open price which is the last candle's Close price in most of the cases(forex/xauusd). So in the open candle, you only have 3 properties Open price which is Close[1], Ask price and Bid price. Maybe the language cannot return a candle for you unless it has all components, open,close, high, low. There's another work around is that you set a time interval and wait for that time interval after Close[1] if it's a stock CFD, or use a much smaller timeframe to get the most recent iClose().
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
No, the open price of a candle is rarely the same as the close price of the previous candle. It may be very similar but it is rarely the same for any symbol.
An open candle only has the Open price which is the last candle's Close price in most of the cases(forex/xauusd). So in the open candle, you only have 3 properties Open price which is Close[1], Ask price and Bid price. Maybe the language cannot return a candle for you unless it has all components, open,close, high, low. There's another work around is that you set a time interval and wait for that time interval after Close[1] if it's a stock CFD, or use a much smaller timeframe to get the most recent iClose().