vela dibujada + 1

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #220085 quote
    PatrickgarridooPatrickgarridoo
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

vela dibujada + 1


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

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

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