Codice per avere il Momentum in percentuale

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #165815 quote
    AndreaC
    Participant
    New

    Sto facendo un semplice screener con vari momentum che vorrei avere come percentuale e non come unità.

    Non riesco a trovare il codice, quello di default

    MOM1 = Momentum[4](close)

    lo esprime in unità.

    Grazie per l’aiuto

    #165816 quote
    robertogozzi
    Moderator
    Master

    Puoi farlo così:

    Periodi = 12
    Diff    = close - close[Periodi]
    Perc    = (Diff * 100) / close[Periodi]
    RETURN Perc AS "Momentum %"
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Codice per avere il Momentum in percentuale


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
AndreaC @andreac Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 03/31/2021
Status: Active
Attachments: No files
Logo Logo
Loading...