Massimo e Minimo dell’Anno Corrente

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

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

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 byT77byT77
4 years, 1 month ago.

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