retcode=10013 deal=0 order=0 OrderSend error 4756 failed prices for GBPUSD 0 [Invalid request] bei Position Modify via MQLRequest - Seite 2
Sie verpassen Handelsmöglichkeiten:
- Freie Handelsapplikationen
- Über 8.000 Signale zum Kopieren
- Wirtschaftsnachrichten für die Lage an den Finanzmärkte
Registrierung
Einloggen
Sie stimmen der Website-Richtlinie und den Nutzungsbedingungen zu.
Wenn Sie kein Benutzerkonto haben, registrieren Sie sich
Dein sl und tp stimmt nicht, solange beim order senden da 300 und 600 steht wird das nix
du hast deinen neuen sl und multiplizierst ihn dann bei der position odify noch mal mit _Point?
was hast du vor?
Venerell hast du das problem schon vorher, weil zum order odify kommst du gar nicht, weil sl und tp beim order send nicht stimmen
Du musst den Namen der Variablen angeben, nicht den Typ, also NewStopLoss und nicht double.
Deine Sl und TP musst Du von Punkten 900 in Preise umrechnen 900.0*_Point - aber wie so etwas lege artis gemacht wird, findest ganz schnell in den Beispielen des Terminals auf Deinem PC: ..\Experts\Examples\MACD
Dein sl und tp stimmt nicht, solange beim order senden da 300 und 600 steht wird das nix
du hast deinen neuen sl und multiplizierst ihn dann bei der position odify noch mal mit _Point?
was hast du vor?
Venerell hast du das problem schon vorher, weil zum order odify kommst du gar nicht, weil sl und tp beim order send nicht stimmen
Du musst den Namen der Variablen angeben, nicht den Typ, also NewStopLoss und nicht double.
Deine Sl und TP musst Du von Punkten 900 in Preise umrechnen 900.0*_Point - aber wie so etwas lege artis gemacht wird, findest ganz schnell in den Beispielen des Terminals auf Deinem PC: ..\Experts\Examples\MACD
Das Umrechnen in preise mach ich ja hier :
So hab paar Änderungen vorgenommen. Newsl wird ja vorher berechnent daher wir der jetzt einfach übergeben. Takeprofit wird jetzt aus der bestehenden Position ausgelesen und ebenfalls übergeben.
Jetzt bekomme ich im Journal schon etwas andere Meldungen:
2021.04.05 00:05:57.135 2021.01.04 00:20:02 #2 GBPUSD ORDER_TYPE_BUY 0.01 1.36581 sl: 1.36281 tp: 1.37481 [123476556987]
kann ich eigentlich raus nehmen da der doch die Position ändert und später via PositionGetDouble ja neu ausliest...2021.04.05 00:05:57.135 2021.01.04 00:20:02 failed prices for GBPUSD 0 [Invalid request]
2021.04.05 00:05:57.135 2021.01.04 00:20:02 OrderSend error 4756
2021.04.05 00:05:57.135 2021.01.04 00:20:02 retcode=10013 deal=0 order=0
Das Umrechnen in preise mach ich ja hier :
So hab paar Änderungen vorgenommen. Newsl wird ja vorher berechnent daher wir der jetzt einfach übergeben. Takeprofit wird jetzt aus der bestehenden Position ausgelesen und ebenfalls übergeben.
Jetzt bekomme ich im Journal schon etwas andere Meldungen:
2021.04.05 00:05:57.135 2021.01.04 00:20:02 #2 GBPUSD ORDER_TYPE_BUY 0.01 1.36581 sl: 1.36281 tp: 1.37481 [123476556987]
kann ich eigentlich raus nehmen da der doch die Position ändert und später via PositionGetDouble ja neu ausliest...2021.04.05 00:05:57.135 2021.01.04 00:20:02 failed prices for GBPUSD 0 [Invalid request]
2021.04.05 00:05:57.135 2021.01.04 00:20:02 OrderSend error 4756
2021.04.05 00:05:57.135 2021.01.04 00:20:02 retcode=10013 deal=0 order=0
Du bist da falsch, das problem ist ja beim order setzen nicht beim modify
Du bist da falsch, das problem ist ja beim order setzen nicht beim modify
Also folglich an der stelle,
tp, sl rechne ich doch aber so um zu einer Preisangabe.
myrequest.tp = ask +tp * _Point;
Also folglich an der stelle,
tp, sl rechne ich doch aber so um zu einer Preisangabe.
Probiers mal mit dem debugger wo er sich aufhängt
und schau dir mal das beispiel in der doku an
https://www.mql5.com/de/docs/constants/tradingconstants/enum_trade_request_actions
Probiers mal mit dem debugger wo er sich aufhängt
und schau dir mal das beispiel in der doku an
https://www.mql5.com/de/docs/constants/tradingconstants/enum_trade_request_actions
das ist es ja, da hängt nix... Position wird erstellt ohne irgend welche Fehler.
2021.04.05 20:49:59.146 GBPUSD,H1: testing of Experts\Advisors\Request Trailingstop.ex5 from 2021.01.01 00:00 to 2021.04.03 00:00 started
2021.04.05 20:50:13.552 2021.01.04 00:00:02 market buy 0.01 GBPUSD sl: 1.36281 tp: 1.37481 (1.36474 / 1.36581 / 1.36474)
2021.04.05 20:50:13.552 2021.01.04 00:00:02 deal #2 buy 0.01 GBPUSD at 1.36581 done (based on order #2)
2021.04.05 20:50:13.552 2021.01.04 00:00:02 deal performed [#2 buy 0.01 GBPUSD at 1.36581]
2021.04.05 20:50:13.552 2021.01.04 00:00:02 order performed buy 0.01 at 1.36581 [#2 buy 0.01 GBPUSD at 1.36581]
der fehler kommt erst sobald er im Modify ist
das ist es ja, da hängt nix... Position wird erstellt ohne irgend welche Fehler.
2021.04.05 20:49:59.146 GBPUSD,H1: testing of Experts\Advisors\Request Trailingstop.ex5 from 2021.01.01 00:00 to 2021.04.03 00:00 started
2021.04.05 20:50:13.552 2021.01.04 00:00:02 market buy 0.01 GBPUSD sl: 1.36281 tp: 1.37481 (1.36474 / 1.36581 / 1.36474)
2021.04.05 20:50:13.552 2021.01.04 00:00:02 deal #2 buy 0.01 GBPUSD at 1.36581 done (based on order #2)
2021.04.05 20:50:13.552 2021.01.04 00:00:02 deal performed [#2 buy 0.01 GBPUSD at 1.36581]
2021.04.05 20:50:13.552 2021.01.04 00:00:02 order performed buy 0.01 at 1.36581 [#2 buy 0.01 GBPUSD at 1.36581]
der fehler kommt erst sobald er im Modify ist
Sorry, aber entweder du beschneidest die screenshots oder du verstehst es nicht. Bei den vorigen screenshots war der fehler beim setzen der order
in dem screenshot geht die order durch
jetzt hast scheinbar das problem mit order setzen gelöst, jetzt kannst den nächsten schritt machen
Sorry, aber entweder du beschneidest die screenshots oder du verstehst es nicht. Bei den vorigen screenshots war der fehler beim setzen der order
in dem screenshot geht die order durch
jetzt hast scheinbar das problem mit order setzen gelöst, jetzt kannst den nächsten schritt machen
Kannst ja mal schauen was das Programm bei dir macht. Wahrscheinlicher ist das ich langsam aber sicher nicht durchblicke.