|
Programmierung MQL4 Hier gehts rund ums Programmieren in MQL4. |
|
Themen-Optionen | Thema durchsuchen | Ansicht |
|
|||
Fehler: "... bytes of leaked memory"
da bin ich mal wieder mit einem neuen Problem...
Und zwar bekomme ich o.g. Fehlermeldung im Experten-Log. Der Fehler tritt nur auf, wenn ich den "Slope Direction Line"-Indikator auslese. Im Netz habe ich folgende Lösung dazu gefunden, möchte mich aber nochmal vergewissern, dass diese Lösung in Ordnung ist. Um das Problem zu beheben soll man einfach die Zeile "int e = Bars - counted_bars + period + 1;" durch diese Zeile ersetzen "int e = Bars - MathMax(counted_bars, period);" Wenn ich das mache, ist der Fehler weg, aber ist das auch richtig so? Kann mal einer von den Profis noch mal ein Auge drauf werfen... Anbei der Slope-Indikator Gruß Dick
__________________
Was ist das Verrückteste, dass du je für Geld gemacht hast? - Arbeiten |
|
|||
Wenns funkt wirds wohl korrekt sein.
|
|
|||
ja, die Werte der beiden SDL stimmen, bis auf gelegentliche Unterschiede in den Nachkommastellen, überein (SDL=alt SDn=neu):
Bar 0 >>> SDL_Up_M5_B0: 2147483647.0000000000 SDL_Dn_M5_B0: 141.1243009430 SDL_Map_M5_B0: 141.1243009430 Bar 0 >>> SDn_Up_M5_B0: 2147483647.0000000000 SDn_Dn_M5_B0: 141.1246410009 SDn_Map_M5_B0: 141.1246410009 Bar 1 >>> SDL_Up_M5_B1: 2147483647.0000000000 SDL_Dn_M5_B1: 141.1385249506 SDL_Map_M5_B1: 141.1385249506 Bar 1 >>> SDn_Up_M5_B1: 2147483647.0000000000 SDn_Dn_M5_B1: 141.1385249502 SDn_Map_M5_B1: 141.1385249502 Bar 0 >>> SDL_Up_M5_B0: 2147483647.0000000000 SDL_Dn_M5_B0: 141.1242685565 SDL_Map_M5_B0: 141.1242685565 Bar 0 >>> SDn_Up_M5_B0: 2147483647.0000000000 SDn_Dn_M5_B0: 141.1246410009 SDn_Map_M5_B0: 141.1246410009 Bar 1 >>> SDL_Up_M5_B1: 2147483647.0000000000 SDL_Dn_M5_B1: 141.1385249506 SDL_Map_M5_B1: 141.1385249506 Bar 1 >>> SDn_Up_M5_B1: 2147483647.0000000000 SDn_Dn_M5_B1: 141.1385249502 SDn_Map_M5_B1: 141.1385249502 Bar 0 >>> SDL_Up_M5_B0: 2147483647.0000000000 SDL_Dn_M5_B0: 141.1242523632 SDL_Map_M5_B0: 141.1242523632 Bar 0 >>> SDn_Up_M5_B0: 2147483647.0000000000 SDn_Dn_M5_B0: 141.1246410009 SDn_Map_M5_B0: 141.1246410009 Bar 1 >>> SDL_Up_M5_B1: 2147483647.0000000000 SDL_Dn_M5_B1: 141.1385249506 SDL_Map_M5_B1: 141.1385249506 Bar 1 >>> SDn_Up_M5_B1: 2147483647.0000000000 SDn_Dn_M5_B1: 141.1385249502 SDn_Map_M5_B1: 141.1385249502 Übrigens, der Memory-Leak-Fehler tritt nicht auf allen PC's auf?!?! Gruß Dick
__________________
Was ist das Verrückteste, dass du je für Geld gemacht hast? - Arbeiten |
Lesezeichen |
Stichworte |
bytes of leaked memory, mql4, programmierung, programmierung metatrader, programmierung mql4, slope direction line, slope direction line indikator |
|
|