Massimi e Minimi della notte

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #181551 quote
    robertogozzi
    Moderator
    Master

    200 unità da 3 minuti sono insufficienti (ogni ora ci sono 20 barre).

    Hai verificato che sul 5 minuti i dati siano corretti con 200 unità?

    Per il tasto del codice leggi questo https://www.prorealcode.com/topic/insert-prt-code-button-ctrlf5-to-bring-it-back-if-missing/.

    Per le istruzioni, nel menù di help c’è il riferimento alla documentazione, che comunque è questo https://www.prorealcode.com/prorealtime-documentation/.

    #181564 quote
    robertodocc
    Participant
    Average

    Si, il 5 minuti è corretto

    Nelle specifiche del glossario in DRAWRECTANGLE la voce borderecolor però non è specificata….

    PS: se volessi aggiungere anche MAX e MIN del giorno precedente ancora come posso fare? Ho provato a cercare di anticipare il meccanismo usando OPENDATE ma non mi va

    Grazie Roberto

    #181575 quote
    robertogozzi
    Moderator
    Master

    Occorre usare altre due variabili:

    DEFPARAM DrawOnLastBarOnly = TRUE
    ONCE rh = 193   //Red          (rosso)
    ONCE gh = 255   //Green        (verde)
    ONCE bh = 193   //Blue         (blu')
    ONCE th = 4    //Transparency (trasparenza: 0=invisibile  255=massima visibilità)
    //
    ONCE rl = 255   //Red          (rosso)
    ONCE gl = 231   //Green        (verde)
    ONCE bl = 186   //Blue         (blu')
    ONCE tl = th    //Transparency (trasparenza: 0=invisibile  255=massima visibilità)
    //
    ONCE bf = 20    //20  barre da visualizzare nel futuro
    //
    IF (OpenTime = 000000) OR ((OpenTime > 000000) AND (OpenTime < OpenTime[1])) THEN
       Barra = BarIndex
       PPH   = PHH
       PPL   = PLL
       PHH   = HH2
       PLL   = LL2
       HH1   = high
       LL1   = low
       HH2   = high
       LL2   = low
    ENDIF
    IF OpenTime < 080000 THEN
       HH1   = max(HH1,high)
       LL1   = min(LL1,low)
    ENDIF
    HH2      = max(HH2,high)
    LL2      = min(LL2,low)
    DrawSegment(Barra,PPH,BarIndex+bf,PPH) coloured(0,128,0,155) style(DottedLine,2)//Punti per secondo giorno preced.
    DrawSegment(Barra,PPL,BarIndex+bf,PPL) coloured(0,128,0,155) style(DottedLine,2)//Punti per secondo giorno preced.
    DrawSegment(Barra,PHH,BarIndex+bf,PHH) coloured(0,0,255,255) style(DottedLine,2)//Punti per giorno preced.
    DrawSegment(Barra,PLL,BarIndex+bf,PLL) coloured(255,0,0,255) style(DottedLine,2)//Punti per giorno preced.
    DrawSegment(Barra,HH1,BarIndex+bf,HH1) coloured(0,0,255,255) style(Line,2)      //Linea per oggi
    DrawSegment(Barra,LL1,BarIndex+bf,LL1) coloured(255,0,0,255) style(Line,2)      //Linea per oggi
    FOR i = (BarIndex+bf) DOWNTO (Barra - 1)
       DrawRectangle(Barra,PHH,i,HH1) coloured(rh,gh,bh,th) bordercolor(0,0,0,0)
       DrawRectangle(Barra,PLL,i,LL1) coloured(rl,gl,bl,tl) bordercolor(0,0,0,0)
    NEXT
    RETURN
    #182279 quote
    Gabriele Battista
    Participant
    Senior

    prova ad aumentare il numero di unità del grafico, li ne vedo solo 200 ..

    #182372 quote
    robertodocc
    Participant
    Average

    Si, soluzione già suggerita da R.Gozzi. Funziona

    grazie

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.

Massimi e Minimi della notte


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

This topic contains 19 replies,
has 3 voices, and was last updated by robertodocc
4 years, 3 months ago.

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