how to open trade on open trade of new candle - page 2

 
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(). 
https://youtu.be/dtvNMmBDxLE?si=QrajYWOqF9dEVv5Z