Rettangolo giorni settimana

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #228445 quote
    EdisoneEdisone
    Participant
    Average

    Salve, sto cercando un modo per disegnare un rettangolo in un grafico daily che mi contenga tutti i giorni della settimana come da grafico allegato. Mentre se il grafico è weekly un rettangolo che mi contenga tutte le settimane del mese

    Grazie mille

    Screenshot-2024-02-20-at-12-27-11.jpg Screenshot-2024-02-20-at-12-27-11.jpg
    #228448 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    ONCE TF = gettimeframe
    IF TF = 604800 THEN                            //Weekly
       IF OpenMonth <> OpenMonth[1] THEN
          IF cc > oo THEN
             DrawRectangle(Barra,Massimo,BarIndex-1,Minimo) coloured("Blue",30) bordercolor("white",0)
          ELSE
             DrawRectangle(Barra,Massimo,BarIndex-1,Minimo) coloured("Red",30)  bordercolor("white",0)
          ENDIF
          Barra   = BarIndex
          Massimo = high
          Minimo  = low
          OO      = open
       ENDIF
    ELSIF TF = 86400 THEN                          //Daily
       IF OpenDayOfWeek < OpenDayOfWeek[1] THEN
          IF cc > oo THEN
             DrawRectangle(Barra,Massimo,BarIndex-1,Minimo) coloured("Blue",30) bordercolor("white",0)
          ELSE
             DrawRectangle(Barra,Massimo,BarIndex-1,Minimo) coloured("Red",30)  bordercolor("white",0)
          ENDIF
          Barra   = BarIndex
          Massimo = high
          Minimo  = low
          OO      = open
       ENDIF
    ENDIF
    Massimo = max(Massimo,high)
    Minimo  = min(Minimo,low)
    cc      = close
    DrawRectangle(Barra,Massimo,BarIndex,Minimo) coloured("Grey",10) bordercolor("grey",0)
    RETURN
    Edisone thanked this post
    x-10.jpg x-10.jpg
Viewing 2 posts - 1 through 2 (of 2 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

Rettangolo giorni settimana


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Edisone @edisone Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
2 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/20/2024
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...