Massimo e Minimo dell’Anno Corrente

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #198884 quote
    byT77
    Participant
    New

    Buongiorno a tutti,

    Chiedo gentilmente il vostro supporto, necessito identificare il prezzo “High” e “Low” dell’anno corrente.

    x = MAX(YEAR[N])

    y = MIN(YEAR[N])

    Vorrei che “N” riconoscesse l’anno in essere.

    Ringrazio i anticipo

    #198891 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    Timeframe(Yearly,default)
    Anno = 2021
    IF Anno <= 1980 THEN
       Anno = OpenYear
    ENDIF
    N       = max(0,OpenYear - Anno)
    Massimo = high[N]
    Minimo  = low[N]
    Timeframe(default)
    return Massimo AS "Massimo",Minimo AS "Minimo"

    Ovviamente se indichi un certo anno passato, sul Timeframe ad 1 ora ad esempio, dovrai avere un numero di barre sufficiente a coprire questi anni.

    #198908 quote
    byT77
    Participant
    New

    Grazie mille.

    Gentile come sempre.

    Buon proseguimento

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Massimo e Minimo dell’Anno Corrente


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
byT77 @byt77 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by byT77
3 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 08/10/2022
Status: Active
Attachments: No files
Logo Logo
Loading...