Salita o Discesa nelle ultime X barre

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #86218 quote
    tradingprotradingpro
    Participant
    Senior

    e possibbile un indicatore che mi conta la percentuale scesa o salita di tot. barre ?

    esempio: nelle ultime 50 barre il prezzo e sceso o salito di tot %

    grazie

    #86220 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ho creato un nuovo Topic, trattandosi di un argomento diverso.

    Si, eccolo:

    x = close[50]
    y = close
    z = (x - y) * 100 / x
    RETURN z

    dalle proprietà puoi visualizzarlo come istogramma e colorarlo a tuo piacimento.

    x.jpg x.jpg
    #86242 quote
    tradingprotradingpro
    Participant
    Senior

    grazie

    e se voglio contarle da una data precisa i poi ?

    esempio ( dal 01/01/2018 in poi vedere come sta andando la percentuale?

    grazie

    #86245 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Basta mettere una condizione temporale per filtrare i risultati:

    z = 0
    IF date >= 20180101 THEN
       x = close[50]
       y = close
       z = (x - y) * 100 / x
    ENDIF
    RETURN z
    #86252 quote
    tradingprotradingpro
    Participant
    Senior

    grazie!!

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

Salita o Discesa nelle ultime X barre


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
tradingpro @tradingpro Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by tradingprotradingpro
7 years, 9 months ago.

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