Stop Loss gestaffelt nachziehen

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #169935 quote
    Andy
    Participant
    Junior

    Liebe Community,

    ich bin auf der Suche nach folgender Lösung:

    Ich möchte gerne meine Stop Loss gestaffelt nachziehen. Und zwar so:

    Wenn 10 Punkte im Plus, dann Stop Loss auf Einstand + 1pkt.

    Wenn 70 Punkte im Plus, dann Stop Loss auf Entry + 35pkt.

    Ich habe sehr viel probiert und getestet, es ist mir leider nicht gelungen.

    Wie man einmal einen Stop Loss nachzieht, weiß ich. Aber wie kann man einen Stop Loss 2 mal oder 3 mal nachziehen, um möglichst lange an einem Trend zu partizipieren?

    Ich freue über Expertenratschläge.

    Ich bedanke mich schon mal und wünsche allen einen erfolgreichen Handelstag.

    Andy

    #169938 quote
    robertogozzi
    Moderator
    Master

    Da ist er:

    IF Not OnMarket THEN
       StopLoss = 0
    ENDIF
    MyGain = PositionPerf * PositionPrice / PipSize
    IF MyGain >= 70 * PipSize THEN
       StopLoss = max(StopLoss, PositionPrice + 35 * PipSize)
    IF MyGain >= 10 * PipSize THEN
       StopLoss = max(StopLoss, PositionPrice + 1 * PipSize)
    ENDIF
    IF StopLoss > 0 THEN
       IF LongOnMarket THEN
          SELL AT StopLoss STOP
       ELSIF ShortOnMarket THEN
          EXITSHORT AT StopLoss STOP
       ENDIF
    ENDIF
    #169960 quote
    Andy
    Participant
    Junior

    Vielen Dank für den schnellen Support robertogozzi

    Ich werde das testen und gebe Rückmeldung.

    Bis dahin..

    einen schönen Abend.

    Andy

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

Stop Loss gestaffelt nachziehen


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
Andy @hansi Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Andy
4 years, 8 months ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 05/18/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...