vela dibujada + 1

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

    Buenas me gustaria saber como puedo dibujar una vela +1 en el grafico. Un saludo Algo asi tendria que ser pero no se como es el codigo DRAWCANDLE(BarIndex+1,0 ,0, 0) COLOURED(0,0,255)

    #220088 quote
    robertogozzi
    Moderator
    Master

    No puede configurar un BarIndex para trazar velas y barras, ya que solo se trazan en el BarIndex actual.
    Puedes simular un Candelabro usando una línea gruesa como máximo 5) para el cuerpo y líneas más delgadas para las mechas:

    defparam DrawOnLastBarOnly = true
    r = 0
    g = 175
    b = 0
    t = 255
    IF close < open THEN
       r = 255
       g = 0
    ENDIF
    DrawSegment(BarIndex+1,open,BarIndex+1,close) style(line,5) coloured(r,g,b,t)
    DrawSegment(BarIndex+1,high,BarIndex+1,max(open,close)) style(line,1) coloured(r,g,b,t)
    DrawSegment(BarIndex+1,low,BarIndex+1, min(open,close)) 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.

vela dibujada + 1


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

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

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