What is the Order Close Price fucntion in MQL5?

 
In MQL4 for closing price you would use the function OrderClosePrice(), I want to use the same function in MQL5. Is this the correct function POSITION_PRICE_CURRENT?
 
#property script_show_inputs

#include <HistoryPosition.mqh> // https://www.mql5.com/ru/blogs/post/755007

input long inTicket = 0; // Position Ticket

void OnStart()
{
  if (HistoryPositionSelect(inTicket))
    Alert(HistoryPositionGetDouble(POSITION_HISTORY_PRICE_CLOSE));
}
 
fxsaber #:

Thank you I'll use the function you posted for Price closing