Skip to content
View in the app

A better way to browse. Learn more.

#T/N/X/T

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wie gehe ich mit "#trade context is busy" um?

Mein EA hat heute in einem sich stark bewegenden Markt die Meldung von Metatrader bekommen, bzw. vom Broker:

 

"OrderSend SELL failed with error #trade context is busy"

und die Sell-Order nicht ausgeführt.

 

- woher kommt diese Meldung genau? Das ist doch eine Meldung vom Broker - oder?

- wie geht ihr in einem EA damit um? Ist eine Schleife sinnvoll bis der Trade ausgeführt wurde? Muss ich "requote" verwenden?

 

Bin für jeden Tipp dankbar

 

wingman

Featured Replies

Bin für jeden Tipp dankbar

Kann dem nicht mehr beitragen als:

zu ähnlichen Problemen:

busy

Edited by Vola

  • Author

Kann dem nicht mehr beitragen als:

zu ähnlichen Problemen:

busy

 

 

Danke. Das hilft mir schonmal - da werde ich morgen wohl ein paaaaaaaaar Zeilen Code einbauen müssen (ich bin eigentlich ein Verfechter von schlankem effizienten Code) :plorar1:

 

Mich würde interessieren, warum es zu diesem "Trade is not allowed" kommt? Vielleicht weiss da jemand etwas aus Broker-Sicht.

 

Danke

  int loopcount= 0;
  Ticket=OrderSend(symbol,cmd,volume,price,slippage,stoploss,takeprofit,comment,magic,expiration,arrow_color);
  while(Ticket == -1)
  {
     Sleep(300);
     loopcount++;
     if(loopcount > 100) break;
     RefreshRates();
     if(cmd == OP_BUY)  price= Ask;
     if(cmd == OP_SELL) price= Bid;

     Ticket=OrderSend(symbol,cmd,volume,price,slippage,stoploss,takeprofit,comment,magic,expiration,arrow_color);
  }

Ich habe es bei mir so gelöst - eventuell hilft es Dir. Ich lasse ihn also 100x versuchen, eine Order abzuschicken und ihn jeweils 300ms vor dem nächsten Durchgang warten. Es gibt sicher noch elegantere Lösungen, aber es ist besser als nichts :wink:.

Edited by conglom-o

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.