Indicatore massimi minimi e apertura

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

    Buonasera avrei  bisogno  di un indicatore che  segnala il massimo il minino e  apertura con parametri variabili  e modificabili . Esempio indice dax massimo e minimo dalle 8,00 alle 22,00 attraverso linee orizzontali (colore , spessore  e stile modificabile )che seguono il passare del tempo piu  linea   di apertura  ore 8,00. Grazie.

    #213929 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    t       = 0
    IF (OpenTime >= 080000) AND (OpenTime <= 220000) THEN
       t = 255
       IF (OpenTime = 080000) OR ((OpenTime > 080000) AND ((OpenTime[1] < 080000) OR (OpenTime[1] >= 220000))) THEN
          HH = high
          LL = low
          OP = open
       ENDIF
       HH = max(HH,high)
       LL = min(LL,low)
    ENDIF
    x = t
    IF t[1] = 0 THEN
       x = 0
    ENDIF
    RETURN HH AS "Massimo" coloured("Blue",x),LL AS "Minimo" coloured("Red",x),OP AS "Apertura" coloured("SkyBlue",x)
    #213931 quote
    NAMBO40
    Participant
    New

    Perfetto era proprio quello che cercavo. Grazie molto.

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

Indicatore massimi minimi e apertura


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
NAMBO40 @nambo40 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by NAMBO40
2 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 04/24/2023
Status: Active
Attachments: No files
Logo Logo
Loading...