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.

Frage zu OrderClose ()

Hallo :tongue: ,

 

kann ich einen OrderClose gleichzeitig für Long und Shorttrades benutzen?

 

Was trage ich dann bei price ein und wie wirken sich Eintragungen dort aus. In der Meta-Trader-Hilfe steht dort bevorzugter Preis, bedeutet dies wenn ich dort Close eintrage wird die Position erst geschlossen wenn die eingestellte Zeitperiode abgeschlossen ist?

Bisher ist bei mir unter price getrennt nach Long- und Shorttrades Bid und Ask eingetragen.

Featured Replies

Die OrderClose()-Funktion kannst Du für beide Positionen einsetzen.

Musst bloß auf den Preis achten, den Du angibst.

 


OrderClose(OrderTicket(),OrderLots(),Bid,Slippage,Color);

oder

OrderClose(OrderTicket(),OrderLots(),Ask,Slippage,Color);

 

Wenn Du eine Long-Position schließen willst, dann brauchst Du den Bid-Kurs...für das Schließen einer Short-Position brauchst Du den Ask-Kurs.

Wenn Du also eine Long-Position schließen willst und dafür den Bid brauchst, dann bringt es Dir nichts wenn Du den Ask schreibst, da sonst die Funktion nicht ausgeführt wird.

 

Hoffe ich konnte Dir helfen...

 

greetz NC

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.