Breakout im 15 Minuten chart

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #253045 quote
    axmichi
    Participant
    Senior

    Hallo

     

    ich möchte gern ein System mit einem Breakout umändern und weiß nicht wie das geht:

    Hier die Regeln, einiges passt anderes nicht:

    Es geht um den Ausbruch aus der Open Range von 15:30 – 16:30 Uhr auf 15 minuten basis

    Alle 4 kerzen der Range liegen über dem 350er EMA auf Stundenbasis

    Wenn diese Zeit abgelaufen ist kommt eine Stoporder auf das Hoch der Range.

    Der Trade soll wenn er nicht in den Stop läuft um 2130 geschlossen werden.

    Der Stopp loss kommt auf das Level von 20 % (Range) über das Tief der Range, siehe Bild orange Linie

    Läuft der Trade auf 40% der Range in den Gewinn, dann wird der Trade getrailt, siehe Bild orange Linie

    Hier mein Code, kann das bitte jemand ändern:

    DEFPARAM CumulateOrders = False
    //DEFPARAM flatbefore = 090000
    DEFPARAM flatafter= 213000

    Position=1 // KONSTANTE KONTRAKTANZAHL!!

    Startzeit=163000
    Endzeit=193000

    // Spanne 1530-1630 in Hi and Lo ermitteln
    // ————————
    once Bars=4 // 15 x 4 Minute
    once Hi=0
    once Lo=0
    If time = 163000 then // Das ist das Ende der 1545 Kerze. Also INCLUSIVE DIESER
    Hi=highest[Bars](high)
    Lo=lowest[Bars](low)
    endif
    Spannepoints=(Hi-Lo)/pointsize // Spanne in Punkten

    once Tradetag=0
    If onmarket then
    Tradetag=date
    endif

    OTD = Barindex – TradeIndex(1) > IntradayBarIndex //one trade X day

    If not onmarket and time>= Startzeit and time < Endzeit and OTD and Tradetag<>date then
    buy Position Lot AT Hi stop

    SET stop ploss spannepoints

    ENDIF

     

    Vielen Dank

    #253050 quote
    robertogozzi
    Moderator
    Master

    Versuchen Sie Folgendes:

    DEFPARAM CumulateOrders = False
    //DEFPARAM flatbefore = 090000
    DEFPARAM flatafter= 213000
    
    Timeframe(1h,UpdateOnClose)
    Ema350 = average[350,1](close)
    
    Timeframe(default)
    ONCE Position  = 1         // KONSTANTE KONTRAKTANZAHL!!
    ONCE Startzeit = 163000
    ONCE Endzeit   = 193000
    ONCE AboveEMA  = 0
    // Spanne 1530-1630 in Hi and Lo ermitteln
    // ————————
    once Bars=4 // 15 x 4 Minute
    once Hi=0
    once Lo=0
    If time = 163000 then // Das ist das Ende der 1545 Kerze. Also INCLUSIVE DIESER
       Hi=highest[Bars](high)
       Lo=lowest[Bars](low)
       AboveEMA = (summation[4](close > Ema350) = 4)
    endif
    Spannepoints=low + ((Hi-Lo)/pointsize * 0.20)      // Spanne in Punkten
    
    once Tradetag=0
    If onmarket then
       Tradetag=date
    endif
    
    OTD = Barindex - TradeIndex(1) > IntradayBarIndex //one trade X day
    
    If not onmarket and time>= Startzeit and time < Endzeit and OTD and Tradetag<>date AND AboveEMA and (close < Hi) then
       buy Position Lot AT Hi stop
       SET stop price spannepoints
    ENDIF

    Sie haben nicht angegeben, was Sie tun möchten, wenn der Preis 40 % der Spanne erreicht.

    Iván González thanked this post
    #253054 quote
    axmichi
    Participant
    Senior

    Danke, ja das habe ich vergessen

    Wenn die 40 % erreicht ist, dann soll der SL immer auf das tief der letzten 8 Kerzen nachgezogen werden. steigt der Kurs dann weiter, dann wieder auf das tief der letzten 8 Kerzen nachziehen.

    #253065 quote
    axmichi
    Participant
    Senior

    Mir ist noch etwas aufgefallen, der SL schließt die Trades schon oben in der range.

     

    In Zeile 23 müsste die Berechnung stimmen, jedoch werden die Trades falsch geschlossen.

     

    Wenn z. B die Range 100 Punkte ist, dann soll der Sl bei 20 % also 20 Punkte über dem Low schließen.

    Siehe Bild

    #253089 quote
    robertogozzi
    Moderator
    Master

    Probieren Sie diese modifizierte Version aus, bei der ich auch den Trailing Stop hinzugefügt habe:

    DEFPARAM CumulateOrders = False
    //DEFPARAM flatbefore = 090000
    DEFPARAM flatafter= 213000
    
    Timeframe(1h,UpdateOnClose)
    Ema350 = average[350,1](close)
    
    Timeframe(default)
    ONCE Position  = 1         // KONSTANTE KONTRAKTANZAHL!!
    ONCE Startzeit = 163000
    ONCE Endzeit   = 193000
    ONCE AboveEMA  = 0
    // Spanne 1530-1630 in Hi and Lo ermitteln
    // ————————
    once Bars=4 // 15 x 4 Minute
    once Hi=0
    once Lo=0
    If time = 163000 then // Das ist das Ende der 1545 Kerze. Also INCLUSIVE DIESER
    Hi=highest[Bars](high)
    Lo=lowest[Bars](low)
    AboveEMA = (summation[4](close > Ema350) = 4)
    IF Not OnMarket THEN
    Spannepoints=low  + ((Hi-Lo) * 0.20)      // Spanne in Punkten
    StartTrailing=low + ((Hi-Lo) * 0.40)      // Spanne in Punkten
    ENDIF
    endif
    
    once Tradetag=0
    If onmarket then
    Tradetag=date
    endif
    
    OTD = Barindex - TradeIndex(1) > IntradayBarIndex //one trade X day
    
    If not onmarket and time>= Startzeit and time < Endzeit and OTD and Tradetag<>date AND AboveEMA and (close < StartTrailing) and (close > Spannepoints) then
    buy Position Lot AT Hi stop
    SET stop price spannepoints
    TrailingSL = 0
    
    ENDIF
    IF OnMarket AND TrailingSL = 0 THEN
    IF close > StartTrailing THEN
    TrailingSL = lowest[8](low)
    SET stop price TrailingSL
    ENDIF
    ENDIF
    IF OnMarket AND TrailingSL THEN
    TrailingSL = max(TrailingSL,lowest[8](low))
    SET stop price TrailingSL
    ENDIF
    graphonprice StartTrailing coloured("Blue")
    graphonprice TrailingSL    coloured("Red")
    #253103 quote
    axmichi
    Participant
    Senior

    ja danke das funktioniert jetzt!!!

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

Breakout im 15 Minuten chart


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by axmichi
3 months, 2 weeks ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 10/26/2025
Status: Active
Attachments: 2 files
Logo Logo
Loading...