Indicatore ATR con due periodi

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

    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

    Screenshot-2024-03-20-.jpg Screenshot-2024-03-20-.jpg
    #230099 quote
    Iván GonzálezIván González
    Moderator
    Legend

    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
    Msport71Msport71
    Participant
    Senior

    Grazie e mille

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

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 Msport71Msport71
2 years, 6 months ago.

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