Kombination zwischen Urzeit und Balkenwerte

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #227685 quote
    Vjper
    Participant
    Junior

    Hallo,

    ich stehe vor einer Herausforderung! Ich möchte beispielsweise das Hoch um 12:00 vom Hoch um 14 subtrahieren.

    Hab hierzu keine Idee!

    Gruß

    #227688 quote
    GraHal
    Participant
    Master

    Wie wäre es mit ..

    Wenn Zeit = 120000 dann
    Hi12 = Hoch
    Endif

    Wenn Zeit = 140000 dann
    Hi14 = Hoch
    Endif

    HiDiff = Hi14 – Hi12

    robertogozzi thanked this post
    #227701 quote
    Vjper
    Participant
    Junior

    Guten Morgen,

    vielen Dank für die schnelle Antwort.

    Hat sehr gut geglappt.

     

    Gruß

    #227902 quote
    Vjper
    Participant
    Junior
    LowShort = Time = 090000
    if LowShort then
    LowShort=low
    endif
    
    x = Time > 090000
    if x Then
    x = close
    endif
    
    z = x < lowshort
    if z then
    z = 16980
    endif
    

    LowShort ist ein Fester Wert um 9 Uhr. Von diesem Wert soll der Erste close Kleine LowShort abgezogen werden. Dieser Wert Z soll ausgegeben werden.

    komme leider nicht weiter

    #227903 quote
    GraHal
    Participant
    Master
    If Time = 090000 Then
    LowShort=low
    endif
    
    if Time > 090000 Then
    x = close
    endif
    
    if x < lowshort then
    z = 16980
    endif
    #227919 quote
    Vjper
    Participant
    Junior

    super vielen Dank,

     

    gibt es ein code der mir nur ein Trade pro Tag ausgibt?

     

    Gruß

    #227924 quote
    robertogozzi
    Moderator
    Master

    Da ist er:

    OTD = Barindex - TradeIndex(1) > IntradayBarIndex

    Nutzen Sie die OTD-Variable als Bedingung für den Markteintritt.
    Wenn dies der Fall ist, bedeutet dies, dass noch keine Position eröffnet wurde.

    #227935 quote
    Vjper
    Participant
    Junior

    Hallo,

     

    vielen Dank. Es ist Sonntag und Sie antworten superschnell. Respekt

    Gruß Michael

    #228089 quote
    Vjper
    Participant
    Junior

    Wie kann ich zwischen zwei Uhrzeiten den maximalen und minimalen wert angeben.

    Höchster Hoch zwichen 8 Uhr und 9 Uhr

    tiefster Tief zwischen 8 Uhr und 9 Uhr

    x=time >= 080000 and time <=090000
    if x then
    x= highest [x](high)
    endif
    
     y = time >= 080000 and time <=090000  
    if y then
    y= lowest [y](low)
    endif
    return x
    #228093 quote
    GraHal
    Participant
    Master
    If time >= 080000 and time <=090000 Then
    Hi = highest [x](high)
    endif
     
    If time >= 080000 and time <=090000 Then 
    Lo = lowest [y](low)
    endif
    return Hi and Lo
    #228105 quote
    Vjper
    Participant
    Junior

    Danke,

    damit sind aber die Variablen x und y nicht definiert. was soll ich für x und y ensetzen, damit ich den Hoch und den Tief im Bereich von 8 uhr bis 9 Uhr bekomme.

    Es kann in dem Bereich zwischen 8 und 9 nur maximales Hoch und ein Minimales Tief existieren.

    Ich komme nicht weiter …

    #228112 quote
    GraHal
    Participant
    Master

    x = Zeit >= 080000 und Zeit <= 090000
    Oben wäre x 0 oder 1

    x = höchstes [ x ] ( hoch )
    oben, x könnte 38.000 sein (Preis von DJI)

    Sie können x (und y) nicht so verwenden, wie Sie es in Ihrem Code zeigen … aus dem oben genannten Grund.

    sodass ich die Höchst- und Tiefstwerte im Bereich von 8 bis 9 Uhr erhalte

    Verwenden Sie in meinem Code Hi und Lo.

    #228122 quote
    Vjper
    Participant
    Junior
    x=time >=080000 and time <=090000 
    If time >= 080000 and time <=090000 then
    x = highest[1](high)
    endif
    
    y=time >=080000 and time <=090000
    If time >= 080000 and time <=090000 Then
    y = lowest[1](low)
    endif
    
    return x,y

    ich habe ein Screenshot angehängt. Es soll nur die Maximalwerte Hi und Lo im Bereich ausgeben.

    Entschuldigung

    #228172 quote
    GraHal
    Participant
    Master

    Aber Sie verwenden in Ihrem oben gezeigten Code nicht einmal Hi und Lo (wie in meinem Code gezeigt).

    Sie können x nicht als x = Zeit >= 080000 und Zeit <= 090000 verwenden

    UND auch im gleichen Code …

    Sie können x nicht verwenden, da x = most[1](high)

    X kann nicht gleichzeitig zwei Dinge / zwei Werte im selben Code sein. 

    #228173 quote
    GraHal
    Participant
    Master
    TimeCond = Time >= 080000 and time <=090000
    If TimeCond Then
    Hi = highest [2](high)
    endif
     
    If TimeCond Then 
    Lo = lowest [2](low)
    endif
    return Hi and Lo
Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.

Kombination zwischen Urzeit und Balkenwerte


ProOrder Support

New Reply
Author
author-avatar
Vjper @vjper Participant
Summary

This topic contains 20 replies,
has 3 voices, and was last updated by GraHal
1 year, 11 months ago.

Topic Details
Forum: ProOrder Support
Language: German
Started: 02/08/2024
Status: Active
Attachments: 2 files
Logo Logo
Loading...