Kombination zwischen Urzeit und Balkenwerte

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #227685 quote
    VjperVjper
    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
    GraHalGraHal
    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
    VjperVjper
    Participant
    Junior

    Guten Morgen,

    vielen Dank für die schnelle Antwort.

    Hat sehr gut geglappt.

     

    Gruß

    #227902 quote
    VjperVjper
    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
    GraHalGraHal
    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
    VjperVjper
    Participant
    Junior

    super vielen Dank,

     

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

     

    Gruß

    #227924 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    VjperVjper
    Participant
    Junior

    Hallo,

     

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

    Gruß Michael

    #228089 quote
    VjperVjper
    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
    GraHalGraHal
    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
    VjperVjper
    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
    GraHalGraHal
    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
    VjperVjper
    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

    Screenshot2.png Screenshot2.png
    #228172 quote
    GraHalGraHal
    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
    GraHalGraHal
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Kombination zwischen Urzeit und Balkenwerte


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
Vjper @vjper Participant
Summary

This topic contains 20 replies,
has 3 voices, and was last updated by GraHalGraHal
2 years, 7 months ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 02/08/2024
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...