https://docs.mql4.com/constants/indicatorconstants/prices#enum_applied_price_enum

change to 6 according to mql5