In FOREX CFD (Most commonly traded in Metatrader 4/5), the OHLC data is typically constructed with the bid.
In exchange-based trading (Futures, stocks), the OHLC data is typically constructed with the actual price traded, which would be the bid price when a trade happened with a sell market order or the ask when the trade happened with a buy market order.