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.

Frage zu MQ4 Schleife

Geschrieben

Frage zu MQ4: wird in unterer Schleife nach dem Maximum (hl_0) gesucht oder dem Wert (hl_0) von i-Candles zuvor?

Ich habe das nämlich übersetzt in ein anderes Programm und dort wird immer nach hl_0 der i-ten Candle gesucht.

 

.
. 
double hl_0;
double l_iatr_0 = ATR(Null, 0, 20, 1);
for (int i      = 1; i < per; i++) {
   hl_0        = High[i] - Low[i];
   if (hl_0   >= l_iatr_0 * mult) return (1);
}
.
.

 

Danke

Featured Replies

Geschrieben

Frage zu MQ4: wird in unterer Schleife nach dem Maximum (hl_0) gesucht oder dem Wert (hl_0) von i-Candles zuvor?

Ich habe das nämlich übersetzt in ein anderes Programm und dort wird immer nach hl_0 der i-ten Candle gesucht.

 

.
. 
double hl_0;
double l_iatr_0 = ATR(Null, 0, 20, 1);
for (int i      = 1; i < per; i++) {
   hl_0        = High[i] - Low[i];
   if (hl_0   >= l_iatr_0 * mult) return (1);
}
.
.

 

Danke

Die Schleife sucht den ersten Bar, dessen Range >= dem ATR vom Vorbar multipliziert mit einem Faktor (mult) ist und gibt dir in diesem Fall eine 1 zurück.

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.