Codice per avere il Momentum in percentuale

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #165815 quote
    AndreaCAndreaC
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

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 robertogozzirobertogozzi
5 years, 5 months ago.

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