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.

ATR auslesen nicht möglich

Geschrieben

Hi,

 

ich bekomme bei dem Versuch die ATR vom EURGBP auszulesen keinen Wert zurück, USDCHF geht, selbstverständlich auch EURUSD, so kann es schon mal nicht an der 0 vor dem Dezimalpunkt liegen. Wieso geht das nicht beim EURGBP?

 

double atr  = iATR(NULL, 1440, 20, 0);
Comment(atr);

Bearbeitet von ronner
Titel angepasst

Featured Replies

Geschrieben
Hast Du mal geguckt, ob Du überhaupt genug Tagesdaten im EURGBP hast? Einfach mal im EURGBP auf D1 klicken und danach nochmal den Indikator probieren.
Geschrieben
  • Autor

Kann mir jemand verraten wieso sich der Wert "rmuln" im Chart nicht verändert, sondern konstant bleibt?

 

double ATR = iATR(Symbol(),1440,20,0);
double RmUp = ATR-(iClose(Symbol(),1440,0)-iLow(Symbol(),1440,0));

double rmuln = iClose(Symbol(), 1440, 0) + RmUp;

Comment(rmuln);

Bearbeitet von remon

Geschrieben
  • Autor

Oder mal anders: Wieso sind die beiden unter Werte/Zeilen (rmuln und rmdln) stets konstant und verändern sich nicht?

 

  //------------------------
  int z1 = 10;
  if(Symbol() == "_US30"){
  z1 = 1;}
  else{
  z1 = 10;}
  //------------------------
  

  double point =MarketInfo(Symbol(),MODE_POINT);
  double bid   =MarketInfo(Symbol(),MODE_BID);
  double atr  = iATR(Symbol(), 1440, 20, 0)/point/z1;
  double tdyclose = iClose(Symbol(), 1440, 0)/point/z1;
  double tdyhigh = iHigh(Symbol(), 1440, 0)/point/z1;
  double tdylow = iLow(Symbol(), 1440, 0)/point/z1;

  double rmu = atr -(tdyclose - tdylow);
  double rmd = atr -(tdyhigh - tdyclose);
  
 
  double rmuln = Close[0] + (rmu*point*z1);
  double rmdln = Close[0] - (rmd*point*z1);
  

Geschrieben

double atr = iATR(Symbol(), 1440, 20, 0)/point/z1;

double tdyclose = iClose(Symbol(), 1440, 0)/point/z1;

double tdyhigh = iHigh(Symbol(), 1440, 0)/point/z1;

double tdylow = iLow(Symbol(), 1440, 0)/point/z1;

 

double rmu = atr -(tdyclose - tdylow);

double rmd = atr -(tdyhigh - tdyclose);

 

 

double rmuln = Close[0] + (rmu*point*z1);

double rmdln = Close[0] - (rmd*point*z1);

[/code]

Ist relativ einfach. So sieht es mathematisch aus (ich habe da schon im Kopf das mit point und z1 ausmultipliziert):

 

rmuln = Close[0] + (iATR - (iClose - iLow))

Da Close[0] immer auch gleich iClose(Symbol(), 1440, 0) ist, ergibt sich Folgendes:

rmuln = iATR + iLow;

 

Da iATR und iLow sich erst bspw. bei einem neuen Tagestief verändern, dürfte der Wert die meiste Zeit konstant aussehen.

Ähnliches gilt dann für rmdln in Verbindung mit iHigh.

 

P.S.: es schreibt sich conglom-o :cool:.

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.