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.

Dataseries an einen Indikator übergeben

Geschrieben

Ich möchte in einer Strategie zwei Timeframes nutzten, wobei jeder Timeframe einem Indikator zugeordnet werden soll.

 

Ich bekomme das nicht hin. Hier ein kurzes Beispiel:

 

Der Indikator heißt I123. dataseries_2 soll die 60 Min. Periode sein. Hierfür habe ich Inputs[0] bzw. Inputs[1] probiert.

Der Chart ist ein 10 Min. Chart.

 

protected override void Initialize()
{
  Add(PeriodType.Minute, 60); 
  I123 i123A = I123(1);
  I123 i123B = I123(dataseries_2, 2);
...

 

Im Indikator drucke ich die Periode mit

Print ("TF: " + tf + " / BarsPeriod.BasePeriodType: " + BarsPeriod.BasePeriodType 
+ " / BarsPeriod.Value: " + BarsPeriod.Value);

 

Inputs[0] und Inputs[1] als Parameter liefern die Ausgabe:

 

TF: 1 / BarsPeriod.BasePeriodType: Minute / BarsPeriod.Value: 10
TF: 2 / BarsPeriod.BasePeriodType: Minute / BarsPeriod.Value: 10

 

Hat jemand eine Idee wie man das Problem löst?

 

Eddy

Bearbeitet von Eddy

Featured Replies

Geschrieben
  • Autor

Ich habe eine Lösung gefunden. Muss allerdings noch prüfen, ob es irgendwelche Probleme damit gibt.

 

protected override void OnBarUpdate()
{
  bool doI123B = true;;
  if (doI123B)
  {
i123B = I123(Inputs[1],	2);
doI123B = false;
  }

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.