dibujar una vela

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

    como podria imitar una vela pero poder dibujarla en el barindex+1

    #222011 quote
    robertogozzi
    Moderator
    Master

    Las velas japonesas no se pueden imprimir ni en períodos anteriores ni en períodos futuros.
    Necesitamos simular una vela usando un rectángulo para el cuerpo y líneas para las sombras.

    DEFPARAM DrawOnLastBarOnly = true
    myOpen  = open
    myHigh  = high
    myLow   = low
    myClose = close
    r = 0
    g = 255
    b = 0
    t = 100
    IF close < open THEN
       r = 255
       g = 0
    ENDIF
    DrawSegment(BarIndex+1,myOpen,BarIndex+1,myClose)             style(line,5) coloured(r,g,b,t)
    DrawSegment(BarIndex+1,myHigh,BarIndex+1,max(myOpen,myClose)) style(line,1) coloured(r,g,b,t)
    DrawSegment(BarIndex+1,myLow, BarIndex+1,min(myOpen,myClose)) style(line,1) coloured(r,g,b,t)
    RETURN
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

dibujar una vela


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 10/03/2023
Status: Active
Attachments: No files
Logo Logo
Loading...