Zum Inhalt springen
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.

Multitimeframe entry/exit

Geschrieben

Eventuell weiß jemand die Antwort zu meinem Problem.

data1 = Tageschart einer Aktie

data2 = Minutenchart der selben Aktie

Wenn etwas im Minutenchart passiert will ich dort einsteigen. Position glattstellen will ich am Ende des Handelstags.

if ... then
buy this bar on close of data2;
sell this bar on close of data1;

Leider nimmt er diesen code nicht an. Er stört sich am "close of data1" bzw. "close of data2.

Kennt jemand eine Lösung?

Eine feste Uhrzeit als Ende anzugeben wollte ich eigentlich vermeiden

Featured Replies

Geschrieben
  • Autor

danke dir.

Hab es jetzt data1 und 2 getauscht und mit festen ExitUhrzeiten dingfest gemacht. Wollte ich eigentlich vermeiden aber mir fällt zZ nichts anderes ein.

Thx Henrik nochmal für die Hilfe

Geschrieben

Stell das mal um nach

 

condition1 = XYZ data1;
condition = ABC data2;

if condition1 = buy 123 shares at market;
if condition2 = sell 123 shares at market;

 

 

So wird sichergestellt, dass immer auf Data 1 gehandelt wird und der Code liest sich leichter, und es sollte gehen mit den verschiedenen TF.

Trotzdem aber das kleinste TF als data1 nehmen. Dann werden die Trades genauer.

Dein Kommentar

Du kannst jetzt schreiben und Dich später registrieren. Wenn Du ein Konto hast, melde Dich jetzt an, um unter Deinem Benutzernamen zu schreiben.

Gast
Auf dieses Thema antworten...

Account

Navigation

Suche

Suche

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.