Set Stop at Low previous candle?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #176686 quote
    F.Drebbin (Mittelfranken)F.Drebbin (Mittelfranken)
    Participant
    Junior

    How to Set a Stop Loss or Trailing SL at the low of the previous candle? Wie setze ich einen Stop oder Trailing Stop am Low der vorherigen Kerze?

    thx!!

    #176697 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Poste nur in der Sprache des Forums in dem du postest. Zum Beispiel Englisch nur in englischen Foren und Deutsch nur in deutschen Foren.

    Danke šŸ™‚

    #176767 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Los geht's:

    IF Not OnMarket THEN
       StopLoss = 0
    ENDIF
    IF LongOnMarket THEN
       StopLoss = max(StopLoss,low)
       SELL AT StopLoss STOP
    ENDIF
    F.Drebbin (Mittelfranken) thanked this post
    #176834 quote
    F.Drebbin (Mittelfranken)F.Drebbin (Mittelfranken)
    Participant
    Junior

    Wow! Das hilft mir weiter! toller Support! Vielen Dank RobertoGozzi! šŸ™‚

    robertogozzi thanked this post
    #176872 quote
    GraHalGraHal
    Participant
    Master

    Tiefststand der vorherigen Kerze

    Sollte Zeile 5 nicht lesen …

    Ich weiß … du testest uns gerade Roberto! šŸ™‚

    StopLoss = max(StopLoss,low[1])
    F.Drebbin (Mittelfranken) thanked this post
    #176873 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Lieber GraHal , du liegst absolut falsch!

    Ich wollte dich nicht testen… Ich habe gerade einen Fehler gemacht! šŸ™‚ šŸ™‚ šŸ™‚

    GraHal and F.Drebbin (Mittelfranken) thanked this post
    #176902 quote
    F.Drebbin (Mittelfranken)F.Drebbin (Mittelfranken)
    Participant
    Junior

    wƤre spƤtestens beim testen aufgefallen šŸ˜‰ trotzdem vielen Dank für die Unterstützung und toll dass hier im Forum doch einiges los ist und man Hilfe bekommt!Ā  Bin begeistert!

    GraHal thanked this post
Viewing 7 posts - 1 through 7 (of 7 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

Set Stop at Low previous candle?


ProOrder: Automatischer Handel & Backtesting

New Reply
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by F.Drebbin (Mittelfranken)F.Drebbin (Mittelfranken)
5 years ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 09/02/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...