Indicatore ATR con due periodi

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

    Buongiorno,

     

    volevo chiedere se è possibile avere un indicatore ATR, settabile in modo che mostri contemporaneamente  la volatilità sia a 4 periodi che a 30.

    Ho provato a guardare in libreria ma salvo errori, non mi sembra di averlo trovato.

     

    Grazie

    #230099 quote
    Iván González
    Moderator
    Master

    Pronto, sì, è possibile. Ecco un esempio. Devi solo modificare le variabili n1 e n2 per regolare i periodi di entrambi.

    n1 = 4
    n2 = 30
    
    ATR1 = averagetruerange[n1](close)
    ATR2 = averagetruerange[n2](close)
    
    return ATR1 as "ATR1"coloured("red"), ATR2 as "ATR2"coloured("blue")
    Msport71 thanked this post
    #230110 quote
    Msport71
    Participant
    Junior

    Grazie e mille

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

Indicatore ATR con due periodi


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Msport71 @carlo-pasca Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Msport71
1 year, 10 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 03/20/2024
Status: Active
Attachments: 1 files
Logo Logo
Loading...