29 Januar 2026
29 Januar 2026


uint ColorToPRGB( color clr, // the color to be converted, in 'color' format uchar alpha=255 // the alpha channel that controls color transparency );Die PRGB-Farbe wird nach der folgenden Formel berechnet:
// Function forward declaration double CalcLot(double risk, double stop);Datei expert.mq5:
#include "utils.mqh" double CalcLot(double risk, double stop) { return risk / stop; }Bisher konnte der Compiler eine Warnung ausgeben, dass der Funktion CalcLot in utils.mqh die Direktive #import fehlt, obwohl die Funktion nutzerdefiniert und im Projektcode implementiert ist. Dieser Code wird nun ohne Warnungen kompiliert. Die #import-Direktive ist nur für Funktionen erforderlich, die tatsächlich aus externen DLLs importiert werden.
