MQL4 конвертация Color в String
MQL4 конвертация Color в String
Описание Color в справке - Набор Web-цветов
Конвертация цвета в формате Color в строку (_userColor.mqh):
#property strictКонвертация цвета в формате Color в строку (_userColor.mqh):
string mColorToString( color Color ){
switch( Color ){
case clrBlack: return "clrBlack";
case clrDarkGreen: return "clrDarkGreen";
case clrDarkSlateGray: return "clrDarkSlateGray";
case clrOlive: return "clrOlive";
case clrGreen: return "clrGreen";
case clrTeal: return "clrTeal";
case clrNavy: return "clrNavy";
case clrPurple: return "clrPurple";
case clrMaroon: return "clrMaroon";
case clrIndigo: return "clrIndigo";
case clrMidnightBlue: return "clrMidnightBlue";
case clrDarkBlue: return "clrDarkBlue";
case clrDarkOliveGreen: return "clrDarkOliveGreen";
case clrSaddleBrown: return "clrSaddleBrown";
case clrForestGreen: return "clrForestGreen";
case clrOliveDrab: return "clrOliveDrab";
case clrSeaGreen: return "clrSeaGreen";
case clrDarkGoldenrod: return "clrDarkGoldenrod";
case clrDarkSlateBlue: return "clrDarkSlateBlue";
case clrSienna: return "clrSienna";
case clrMediumBlue: return "clrMediumBlue";
case clrBrown: return "clrBrown";
case clrDarkTurquoise: return "clrDarkTurquoise";
case clrDimGray: return "clrDimGray";
case clrLightSeaGreen: return "clrLightSeaGreen";
case clrDarkViolet: return "clrDarkViolet";
case clrFireBrick: return "clrFireBrick";
case clrMediumVioletRed: return "clrMediumVioletRed";
case clrMediumSeaGreen: return "clrMediumSeaGreen";
case clrChocolate: return "clrChocolate";
case clrCrimson: return "clrCrimson";
case clrSteelBlue: return "clrSteelBlue";
case clrGoldenrod: return "clrGoldenrod";
case clrMediumSpringGreen: return "clrMediumSpringGreen";
case clrLawnGreen: return "clrLawnGreen";
case clrCadetBlue: return "clrCadetBlue";
case clrDarkOrchid: return "clrDarkOrchid";
case clrYellowGreen: return "clrYellowGreen";
case clrLimeGreen: return "clrLimeGreen";
case clrOrangeRed: return "clrOrangeRed";
case clrDarkOrange: return "clrDarkOrange";
case clrOrange: return "clrOrange";
case clrGold: return "clrGold";
case clrYellow: return "clrYellow";
case clrChartreuse: return "clrChartreuse";
case clrLime: return "clrLime";
case clrSpringGreen: return "clrSpringGreen";
case clrAqua: return "clrAqua";
case clrDeepSkyBlue: return "clrDeepSkyBlue";
case clrBlue: return "clrBlue";
case clrMagenta: return "clrMagenta";
case clrRed: return "clrRed";
case clrGray: return "clrGray";
case clrSlateGray: return "clrSlateGray";
case clrPeru: return "clrPeru";
case clrBlueViolet: return "clrBlueViolet";
case clrLightSlateGray: return "clrLightSlateGray";
case clrDeepPink: return "clrDeepPink";
case clrMediumTurquoise: return "clrMediumTurquoise";
case clrDodgerBlue: return "clrDodgerBlue";
case clrTurquoise: return "clrTurquoise";
case clrRoyalBlue: return "clrRoyalBlue";
case clrSlateBlue: return "clrSlateBlue";
case clrDarkKhaki: return "clrDarkKhaki";
case clrIndianRed: return "clrIndianRed";
case clrMediumOrchid: return "clrMediumOrchid";
case clrGreenYellow: return "clrGreenYellow";
case clrMediumAquamarine: return "clrMediumAquamarine";
case clrDarkSeaGreen: return "clrDarkSeaGreen";
case clrTomato: return "clrTomato";
case clrRosyBrown: return "clrRosyBrown";
case clrOrchid: return "clrOrchid";
case clrMediumPurple: return "clrMediumPurple";
case clrPaleVioletRed: return "clrPaleVioletRed";
case clrCoral: return "clrCoral";
case clrCornflowerBlue: return "clrCornflowerBlue";
case clrDarkGray: return "clrDarkGray";
case clrSandyBrown: return "clrSandyBrown";
case clrMediumSlateBlue: return "clrMediumSlateBlue";
case clrTan: return "clrTan";
case clrDarkSalmon: return "clrDarkSalmon";
case clrBurlyWood: return "clrBurlyWood";
case clrHotPink: return "clrHotPink";
case clrSalmon: return "clrSalmon";
case clrViolet: return "clrViolet";
case clrLightCoral: return "clrLightCoral";
case clrSkyBlue: return "clrSkyBlue";
case clrLightSalmon: return "clrLightSalmon";
case clrPlum: return "clrPlum";
case clrKhaki: return "clrKhaki";
case clrLightGreen: return "clrLightGreen";
case clrAquamarine: return "clrAquamarine";
case clrSilver: return "clrSilver";
case clrLightSkyBlue: return "clrLightSkyBlue";
case clrLightSteelBlue: return "clrLightSteelBlue";
case clrLightBlue: return "clrLightBlue";
case clrPaleGreen: return "clrPaleGreen";
case clrThistle: return "clrThistle";
case clrPowderBlue: return "clrPowderBlue";
case clrPaleGoldenrod: return "clrPaleGoldenrod";
case clrPaleTurquoise: return "clrPaleTurquoise";
case clrLightGray: return "clrLightGray";
case clrWheat: return "clrWheat";
case clrNavajoWhite: return "clrNavajoWhite";
case clrMoccasin: return "clrMoccasin";
case clrLightPink: return "clrLightPink";
case clrGainsboro: return "clrGainsboro";
case clrPeachPuff: return "clrPeachPuff";
case clrPink: return "clrPink";
case clrBisque: return "clrBisque";
case clrLightGoldenrod: return "clrLightGoldenrod";
case clrBlanchedAlmond: return "clrBlanchedAlmond";
case clrLemonChiffon: return "clrLemonChiffon";
case clrBeige: return "clrBeige";
case clrAntiqueWhite: return "clrAntiqueWhite";
case clrPapayaWhip: return "clrPapayaWhip";
case clrCornsilk: return "clrCornsilk";
case clrLightYellow: return "clrLightYellow";
case clrLightCyan: return "clrLightCyan";
case clrLinen: return "clrLinen";
case clrLavender: return "clrLavender";
case clrMistyRose: return "clrMistyRose";
case clrOldLace: return "clrOldLace";
case clrWhiteSmoke: return "clrWhiteSmoke";
case clrSeashell: return "clrSeashell";
case clrIvory: return "clrIvory";
case clrHoneydew: return "clrHoneydew";
case clrAliceBlue: return "clrAliceBlue";
case clrLavenderBlush: return "clrLavenderBlush";
case clrMintCream: return "clrMintCream";
case clrSnow: return "clrSnow";
case clrWhite: return "clrWhite";
default: return "Another Color";
}
}
Комментарии
Отправить комментарий