Offene Positionen die im Gewinn sind auf Einstand stellen / Open Positions

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #65454 quote
    Fabian
    Participant
    Master

    Hi Zusammen,

    gibt es eine Anweisung die meine offenen Positionen auf Einstand stellt, wenn diese im Plus sind? (Ergänzend zu meinem normalen Exit)

    Vielen Dank.

    Hi everyone,

    is there an instruction to debut my open positions when they are in the plus? (In addition to my normal exit)

    Thank you very much.

    #65472 quote
    Despair
    Blocked
    Master

    “Auf Einstand stellen” soll heissen einen stop loss auf deinen Eröffnungskurs setzen? Das geht natürlich, wenn dein Trade mindestens die minimum stop distance im Plus ist.

    Einen speziellen Befehl dafür gibt es nicht, du musst einfach eine stop order auf den gewünschten Kurs setzen.

    #65552 quote
    verdi55
    Participant
    Veteran

    Hi Zusammen, gibt es eine Anweisung die meine offenen Positionen auf Einstand stellt, wenn diese im Plus sind? (Ergänzend zu meinem normalen Exit) Vielen Dank.

     

     

    StopabstandEinstand = 20
    NormalerStop = 60
    
    nb = barindex - tradeindex
    ErreichtesTief = lowest[nb + 1](Low)
    ErreichtesHoch = highest[nb + 1](High)
    
    If longonmarket then
    If ErreichtesHoch >= positionprice + StopabstandEinstand then
    sell at positionprice stop
    else
    sell at positionprice - NormalerStop stop
    endif
    endif
    
    If shortonmarket then
    If ErreichtesTief <= positionprice - StopabstandEinstand then
    exitshort at positionprice stop
    else
    exitshort at positionprice + NormalerStop stop
    endif
    endif

     

    Dieser code macht folgendes :

    Wenn eine Long-Position offen ist, checkt er in jedem Bar, ob die Position (gesehen vom positionprice und gemessen bis zum höchsten Hoch seit Eröffnung der Position) 20 Punkte (= StopabstandEinstand) oder mehr im Plus war. Wenn ja, wird der Stop auf Einstand (= positionprice) nachgezogen, wenn nein, bleibt er in diesem Fall bei 60 Punkten (= NormalerStop).

    Dasselbe für Short-Positionen, nur andersherum.

    #66018 quote
    Fabian
    Participant
    Master

    Genau danach habe ich gesucht. Vielen Dank! 🙂

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

Offene Positionen die im Gewinn sind auf Einstand stellen / Open Positions


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
Fabian @heikinashi Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Fabian
7 years, 10 months ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 03/16/2018
Status: Active
Attachments: No files
Logo Logo
Loading...