HIGH / LOW A MINUTI PREFISSATI

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

    Buongiorno,

    sto cercando di realizzare un semplice indicatore che mi evidenzi high e low ad un minuto prefissato su grafico a 5 minuti. Ad esempio:

    IF (HOUR=8 AND MINUTE=0) THEN
    EUBH=HIGH
    EUBL=LOW
    ENDIF

    RETURN EUBH,EUBL

    Vorrei però che l’indicatore si annullasse a fine giornata di contrattazione (ad es. Hour=22 and minute=0) ed ho provato con

    IF (HOUR=8 AND MINUTE=0) THEN
    EUBH=HIGH
    EUBL=LOW
    ENDIF

    IF (HOUR=22 AND MINUTE=0) THEN
    EUBH=UNDEFINED
    EUBL=UNDEFINED
    ENDIF

    RETURN EUBH,EUBL

    ma il programma pare non leggere il comando UNDEFINED in questo caso. Potete aiutarmi?

    Grazie!

    #173693 quote
    robertogozzi
    Moderator
    Master

    Metti 0, non Undefined.

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

HIGH / LOW A MINUTI PREFISSATI


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
zero @zero Participant
Summary

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

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