aiuto per indicatore distanza tra prezzo e SMA 50

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

    Buongiorno,

     

    volevo sapere se è possibile realizzare un indicatore che rappresenti la distanza in punti tra il valore di  chiusura corrente di un asset e la SMA 50.

    Grazie per il consueto aiuto.

    #232420 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Ecco cosa hai:

    sma = average[50,0](close)
    
    dist = close-sma
    distP = dist/sma * 100
    
    return distP as "Distance %"
    #232426 quote
    Msport71Msport71
    Participant
    Senior

    Grazie e mille, lo provo!

    #232435 quote
    Msport71Msport71
    Participant
    Senior

    Buon pomeriggio,

     

    è possibile modificare l’indicatore in modo che nella scala appaiano i punti di distanza e non la percentuale?

    Allego foto con esempio di altro indicatore (BBands distance) che esprime la distanza come desidero.

    Grazie

    Schermata-2024-05-07-alle-17.35.43.png Schermata-2024-05-07-alle-17.35.43.png
    #232448 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Sì. Basta cambiare l'ultima riga e invece di eseguire il rendering distp renderizzare dist

    #232450 quote
    Msport71Msport71
    Participant
    Senior

    Ottimmo, grazie.

Viewing 6 posts - 1 through 6 (of 6 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

aiuto per indicatore distanza tra prezzo e SMA 50


ProBuilder: Indicatori & Strumenti Personalizzati

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

This topic contains 5 replies,
has 2 voices, and was last updated by Msport71Msport71
2 years, 4 months ago.

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