Stop Loss gestaffelt nachziehen

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #169935 quote
    AndyAndy
    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

    Stop-Loss-gestaffelt-nachziehen.jpg Stop-Loss-gestaffelt-nachziehen.jpg
    #169938 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    AndyAndy
    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.
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

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 AndyAndy
5 years, 4 months ago.

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