Anzahl Bars zwischen 2 Ereignissen zählen

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #53342 quote
    Van Salt
    Participant
    Junior

    Hat jemand eine Idee, wie man die Anzahl der Bars (Kerzen) zwischen 2 Ereignissen zählen kann?

    #53350 quote
    Despair
    Blocked
    Master

    Jede Kerze hat einen Barindex… 🙂

    Van Salt thanked this post
    #53507 quote
    Van Salt
    Participant
    Junior

    Hallo Despair,

    ja diesen Gedanken hatte ich auch, aber wie weise ich den Barindex dem Ereignis zu? Kannst du ein kleines Beispiel nennen?

    Danke für deine Unterstützung.

    #53508 quote
    Despair
    Blocked
    Master

    Weiss ja nicht was du vor hast. Wenn du z.B. einen Trade nach 5 Kerzen schliessen willst, sähe das so aus (tradeindex gibt dir den barindex des letzten trades):

    if longonmarket and barindex-tradeindex=5 then
      sell at market
    endif

     

     

    Van Salt thanked this post
    #53936 quote
    Van Salt
    Participant
    Junior

    Ich habe folgendes vor.

    Es soll die Anzahl der Bars von Ereignis 1 zu Ereignis 2 gezählt werden.

    Ausgabe des Ergenisses von Barindex (Ereignis1) – Barindex (Ereignis2)

    Geht so etwas? Das ganze benötige ich für die Basis zur Berechnung der Fibo-Time.

    #53948 quote
    Despair
    Blocked
    Master

    Das geht. Ist so allgemein recht abstrakt, aber du musst einfach den barindex bei den Ereignissen in einer Variable speichern, dann kannst du später darauf zurückgreifen.

    Van Salt thanked this post
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Anzahl Bars zwischen 2 Ereignissen zählen


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
Van Salt @van-salt Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Despair
8 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 11/20/2017
Status: Active
Attachments: No files
Logo Logo
Loading...