dibujar una vela

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

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

    #222011 quote
    robertogozzirobertogozzi
    Moderator
    Legend

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

dibujar una vela


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

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

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