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.

Hilfe zu Orderfunktionen

Ich habe noch ein wenig Probleme mit den Orderfunktionen.

 

Gibt es eine Funktion "Gebe mir alle beim Broker laufenden Trades zurück"?

 

Was genau ist eine Magic Number? Eine einfache ID die ich im im EA anlege um später damit meine

offenen Trades verwalten zu können? Ist das das gleiche wie die Unique Number?

 

Viele Grüße,

Rumpel

Featured Replies

Ich habe noch ein wenig Probleme mit den Orderfunktionen.

 

Gibt es eine Funktion "Gebe mir alle beim Broker laufenden Trades zurück"?

 

Was genau ist eine Magic Number? Eine einfache ID die ich im im EA anlege um später damit meine

offenen Trades verwalten zu können? Ist das das gleiche wie die Unique Number?

 

Viele Grüße,

Rumpel

 

for(int k = 0; k < OrdersTotal(); k++) {   // <-- was du suchst ist also OrdersTotal()
   if(OrderSelect(k, SELECT_BY_POS, MODE_TRADES) == true) {
       if((OrderSymbol() == Symbol()) &&
          (OrderMagicNumber() == MagicNumber) &&
          (OrderType() == OP_BUY || OrderType() == OP_SELL)) {
...

so könnte es aussehen, sich alle Orders zu holen, die entweder Buy- oder Sell-Orders sind, das aktuell dargestellte Symbol als Underlying haben und die mit der MagicNumber in 'MagicNumber' erstellt wurden.

 

In der Softwareentwicklung wird sehr häufig eine MagicNumber genutzt, um bestimmte Dinge eineindeutig identifizieren zu können, deine Vermutung ist also korrekt!

  • Author

Hi Maerl,

danke für deinen Code. Ich werd ihn mir mal genauer ansehen.

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.