ATR Breakout System

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33112 quote
    superkolleechsuperkolleech
    Participant
    New

    Hallo,

    ich habe ein Handelssystem, dass ich bisher nur in Excel manuell gebacktestet habe. Nun möchte ich das gerne in PRT tun. Leider sind meine Programmierkenntnisse nicht vorhanden. Evtl. kann mir jemand helfen. Das System ist ganz simpel.

    Long: Wenn Hoch + (ATR[14]*0,10)

    Short: Wenn Tief – (ATR[14]*0,10)

    Stop Long: Tief – (ATR[14]*0,25)

    Stop Short: Hoch + (ATR[14]*0,25)

    Take Profit Long: Hoch + (ATR[14]*0,5)

    Take Profit Short: Tief – (ATR[14]*0,5)

    Alle Werte sind EndofDay und betreffen den Tag den Tag der Positionseroeffnung.

    Vielen Dank schon mal.

    #33127 quote
    NicolasNicolas
    Keymaster
    Legend

    Wenn ich richtig verstanden habe, sind die Hoch- und Tiefsten die vom Tageszeitpunkt und vom Vortag?

    #33252 quote
    superkolleechsuperkolleech
    Participant
    New

    Hallo Nicolas, ja das stimmt.

    #33304 quote
    NicolasNicolas
    Keymaster
    Legend

    Danke, ich denke, das Programm sollte Ihre Anfrage entsprechen. Bedingte Aufträge dauern nur einen Tag, ist das Programm „täglich“ auf eine Zeiteinheit zu verwenden.

    defparam cumulateorders=false
    
    if not onmarket then 
    atr=averagetruerange[14]
    buy 1 contract at dhigh(1)+atr*0.1 STOP
    sellshort 1 contract at dlow(1)-atr*0.1 STOP
    buytp = (dhigh(1)+atr*0.5)-dhigh(1)
    selltp = dlow(1)-(dlow(1)-atr*0.5)
    buysl = dlow(1)-(dlow(1)-atr*0.25)
    sellsl = (dhigh(1)+atr*0.25)-dhigh(1)
    endif
    
    if longonmarket then 
    set target profit buytp
    set stop loss buysl
    endif
    
    if shortonmarket then 
    set target profit selltp
    set stop loss sellsl
    endif
    ATR-breakout-trading-system.png ATR-breakout-trading-system.png
Viewing 4 posts - 1 through 4 (of 4 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

ATR Breakout System


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 04/24/2017
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...