Schau, wie man Roboter kostenlos herunterladen kann
Finden Sie uns auf Telegram!
und werden Sie Mitglied unserer Fangruppe
Interessantes Skript?
Veröffentliche einen Link auf das Skript, damit die anderen ihn auch nutzen können
Hat Ihnen das Skript gefallen?
Bewerten Sie es im Terminal MetaTrader 5
Ansichten:
1008
Rating:
(42)
Veröffentlicht:
2016.06.13 11:13
Aktualisiert:
2016.11.22 07:34
\MQL5\Include\
inccolors.mqh (20.48 KB) ansehen
Benötigen Sie einen Roboter oder Indikator, der auf diesem Code basiert? Bestellen Sie ihn im Freelance-Bereich Zum Freelance

Diese Klasse enthält Funktionen für die Arbeit mit Farben. Sie enthält Farbkonvertierungen und andere praktische Funktionen.

Conversion RGB nach HSV

void RGBtoHSV(double aR,double aG,double aB,double & oH,double & oS,double & oV)

Funktionen von http://www.easyrgb.com/index.php?X=MATH. Alle diese Funktionen haben 6 Argumente: die ersten 3 sind Parameter, die nächsten 3 sind Konvertierungsergebnisse, die als Referenz übergeben werden.

Konvertierung RGB nach XYZ

void RGBtoXYZ(double aR,double aG,double aB,double & oX,double & oY,double & oZ)
Konvertierung XYZ nach RGB
void XYZtoRGB(double aX,double aY,double aZ,double & oR,double & oG,double & oB)
Konvertierung XYZ nach Yxy
void XYZtoYxy(double aX,double aY,double aZ,double & oY,double & ox,double & oy)

Konvertierung Yxy nach XYZ

void XYZtoYxy(double aX,double aY,double aZ,double & oY,double & ox,double & oy)
Konvertierung XYZ nach HunterLab
void XYZtoHunterLab(double aX,double aY,double aZ,double & oL,double & oa,double & ob)
Konvertierung HunterLab nach XYZ
void HunterLabToXYZ(double aL,double aa,double ab,double & oX,double & oY,double & oZ)
Konvertierung XYZ nach CIELab
void XYZtoCIELab(double aX,double aY,double aZ,double & oCIEL,double & oCIEa,double & oCIEb)
Konvertierung CIELab nach ToXYZ
void CIELabToXYZ(double aCIEL,double aCIEa,double aCIEb,double & oX,double & oY,double & oZ)
Konvertierung CIELab nach CIELCH
void CIELabToCIELCH(double aCIEL,double aCIEa,double aCIEb,double & oCIEL,double & oCIEC,double & oCIEH)

Konvertierung CIELCH nach CIELab

void CIELCHtoCIELab(double aCIEL,double aCIEC,double aCIEH,double & oCIEL,double & oCIEa,double & oCIEb)

Konvertierung XYZ nach CIELuv

void XYZtoCIELuv(double aX,double aY,double aZ,double & oCIEL,double & oCIEu,double & oCIEv)
Konvertierung CIELuv nach XYZ
void CIELuvToXYZ(double aCIEL,double aCIEu,double aCIEv,double & oX,double & oY,double & oZ)
Konvertierung RGB nach HSL
void RGBtoHSL(double aR,double aG,double aB,double & oH,double & oS,double & oL)
Konvertierung HSL nach RGB
void HSLtoRGB(double aH,double aS,double aL,double & oR,double & oG,double & oB)

Conversion RGB nach HSV

void RGBtoHSV(double aR,double aG,double aB,double & oH,double & oS,double & oV) 
Konvertierung HSV nach RGB
void HSVtoRGB(double aH,double aS,double aV,double & oR,double & oG,double & oB)
Konvertierung RGB nach CMY
void RGBtoCMY(double aR,double aG,double aB,double & oC,double & oM,double & oY)
Konvertierung CMY nach RGB
void CMYtoRGB(double aC,double aM,double aY,double & oR,double & oG,double & oB)
Konvertierung CMY nach CMYK
void CMYtoCMYK(double aC,double aM,double aY,double & oC,double & oM,double & oY,double & oK)
Konvertierung CMYK nach CMY
void CMYKtoCMY(double aC,double aM,double aY,double aK,double & oC,double & oM,double & oY)

Weitere Merkmale

Hole RGB Komponenten

Erster Parameter - Farbe, die nächsten Argumente sind Farb-Komponenten, die per Referenz übergeben werden.

void ColorToRGB(color aColor,double & aR,double & aG,double & aB)
Hole R Komponente
double GetR(color aColor)
Hole G Komponente
double GetG(color aColor)
Hole B Komponente
double GetB(color aColor)

Konvertierung RGB nach Farbe

color RGBToColor(double aR,double aG,double aB)
Hole Farbmischung zwischen 2 Farben
color MixColors(color aCol1,color aCol2,double aK) // aK - from 0 to 1
Hole Array mit Farbverlauf
void Gradient( color & aColors[], // Liste der Farben
color & aOut[],                  // Ausgabe-Array
int aOutCount,                     // Größe des Ausgabe-Arrays
bool aCycle=false                  // zyklischer Verlauf (das Ausgabe-Array endete mit der Startfarbe)
)
Ein weitere einfache Konvertierung RGB -> XYZ und seine Umkehrung XYZ->RGB
void RGBtoXYZsimple(double aR,double aG,double aB,double & oX,double & oY,double & oZ)
void XYZtoRGBsimple(double aX,double aY,double aZ,double & oR,double & oG,double & oB)
Negative Farbe
color Negative(color aColor)

Findet die den Standard-Webfarben nächstegelegene Farbe

Erster Parameter - die Farbe, der zweite Parameter ist der Index aus der Farbmenge (übergeben als Referenz), die Funktion gibt die Farbe zurück
color StandardColor(color aColor,int & aIndex)
RGB -> Grau
double RGBtoGray(double aR,double aG,double aB)
RGB -> Grau (einfach)
double RGBtoGraySimple(double aR,double aG,double aB)

Übersetzt aus dem Russischen von MetaQuotes Ltd.
Originalpublikation: https://www.mql5.com/ru/code/888

MultiSignals_PCH MultiSignals_PCH

Dies ist die verbesserte Version des Price Channel Indikator. Zwei zusätzliche Preislevels, Handelssignale und Stop Loss/Take Profit Levels wurden hinzugefügt.

JPTrend Indikator JPTrend Indikator

Der Indikator berechnet die Widerstands- und Unterstützungslinien und zeigt Alerts, wenn der Preis diese erreicht.

IncGUI_ColorInput IncGUI_ColorInput

Graphik-Control für Farbauswahl.

Multi-Williams Percent Range Trend Indikator Multi-Williams Percent Range Trend Indikator

Multi-Williams Percent Range Trend Indikator