string NameTypePrice(ENUM_APPLIED_PRICE f_typePrice) // typ ceny { switch(f_typePrice) { case PRICE_CLOSE: return "Close"; case PRICE_OPEN: return "Open"; case PRICE_HIGH: return "High"; case PRICE_LOW: return "Low"; case PRICE_MEDIAN: return "Median"; case PRICE_TYPICAL: return "Typical"; case PRICE_WEIGHTED: return "Weighted"; default: return "Unknown type of price"; } }