drawcandles H4 in 30 min

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #241268 quote
    Edisone
    Participant
    Average

    Salve se è possibile avrei la necessità di disegnare/rappresentare le candele H4, (usando drawrectangle sia per il body che per le shadows)  in un time frame inferiore esempio 30 minuti come da foto allegata.

    Grazie mille.

    #241280 quote
    robertogozzi
    Moderator
    Master

    Ecco fatto:

    ONCE Size1 = 1.01
    ONCE Size2 = 0.99
    ONCE t     = 40
    DRAWCANDLE(High*Size1,High*Size1,Low*Size2,Low*Size2) COLOURED(255,255,255,1) BORDERCOLOR(255,255,255,1)
    IF (OpenHour MOD 4 = 1) AND (OpenHour <> OpenHour[1]) THEN
       r = 255
       b = 0
       IF C4 > O4 THEN
          r = 0
          b = 255
       ENDIF
       DrawRectangle(Bar4,O4,BarIndex[1],C4)             coloured(r,0,b,t) bordercolor("Red",1)
       DrawRectangle(Bar4+3,H4,BarIndex[1]-3,max(O4,C4)) coloured(r,0,b,t) bordercolor("Red",1)
       DrawRectangle(Bar4+3,L4,BarIndex[1]-3,min(O4,C4)) coloured(r,0,b,t) bordercolor("Red",1)
       O4   = open
       H4   = high
       L4   = low
       Bar4 = BarIndex
    ENDIF
    C4 = close
    H4 = max(H4,high)
    L4 = min(L4,low)
    RETURN
    Edisone and Iván González thanked this post
    #244432 quote
    Edisone
    Participant
    Average

    Salve, le candele non mi corrispondono, allego grafico esplicativo.

    Saluti

    #244488 quote
    robertogozzi
    Moderator
    Master

    Purtroppo con gli strumenti dove c’è una candela (quella delle 090000 su 30 minuti, è alle 080000 su 4 ore) con aperture diverse non funziona.

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

drawcandles H4 in 30 min


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Edisone @edisone Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzi
11 months, 1 week ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 12/09/2024
Status: Active
Attachments: 5 files
Logo Logo
Loading...