"ATR from the Lows" TRAILING STOP

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #119677 quote
    Neromaori
    Participant
    New

    Buongiorno,

    ho provato a cercare nel forum qualcosa di simile, ma sicuramente non sono stato io in grado di individuarla..

    Ringrazio fin d’ora, quindi, chi vorrà aiutarmi, anche solo indirizzandomi verso post già usciti sull’argomento.

    Vorrei semplicemente disegnare sulla mia ProRealeTime una linea che rappresenti un “trailing stop” ad un multiplo ATR dai minimi recenti…

     

    Grazie!

    #119679 quote
    robertogozzi
    Moderator
    Master

    Cosa intendi per minimi recenti?

    #119715 quote
    Neromaori
    Participant
    New

    Hai ragione…non minimi recenti, ma l’ultimo minimo (chiaramente, essendo un trailing stop, la linea non deve scendere se il minimo più recente è più basso…)

    Forse questa immagine può esser d’aiuto:…

     

    Grazie

    1.5atr-from-the-lows.png 1.5atr-from-the-lows.png
    #119803 quote
    robertogozzi
    Moderator
    Master

    Prova a vedere se questo ti va bene:

    ONCE MyLow = low
    AtrPeriods = 14
    Multiplier = 2.5
    MyATR      = AverageTrueRange[AtrPeriods](close) * Multiplier
    IF low CROSSES UNDER MyStop THEN
       MyLow   = low
       MyStop  = MyLow - MyAtr
    ELSE
       MyLow   = max(low,MyLow)
    ENDIF
    IF MyLow > MyLow[1] THEN
       MyStop  = MyLow - MyAtr
    ENDIF
    RETURN MyStop
    #119896 quote
    Neromaori
    Participant
    New

    Mi sembra di si!

    Ho colorato in bianco i tratti “discendenti”, in modo da non vederli .

     

    Grazie!

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

"ATR from the Lows" TRAILING STOP


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Neromaori
6 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/15/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...