Skip to content
All library documents

Retrieving Candle Prices and Opening Time with CPrice

Article MQL5 code base

Summary

This brief description explains that a CPrice class instance can return common values from a market candle: bid, ask, open, high, low, and close prices. It can also return the candle's opening time. The values may correspond to the current candle or to another candle specified through the class parameters.

The text gives no examples, parameter definitions, platform details, or explanation of how the returned values should be used in a trading strategy. It does not describe pricing conventions, data availability, or whether values are finalized or changing while a candle is still forming. The useful point is limited to the class's apparent role as an interface for reading candle prices and timestamps; users would need fuller documentation to apply it safely in a system.

Key ideas

  • CPrice provides bid, ask, open, high, low, and close values for a candle.
  • The class can also return the candle's opening time.
  • Parameters can select the current candle or another candle.
  • The description omits parameter details and does not clarify how values behave during an unfinished candle.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.