Vela de 1 hora y dentro las 5 de 15 minutos

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #235768 quote
    JAVIERGJAVIERG
    Participant
    New

    Hola, me gustaría tener un indicador donde dibuje por ejemplo en 4 velas de 15 minutos, lo que supone en una hora, es decir, que la vela de 1 hora envuelva las 4 de 15 minutos, sin relleno, ya que el relleno de la vela de 1 hora son las 4 de 15 minutos.

    Creí verlo en algún indicador de aquí, pero ahora no lo encuentro.

    Gracias.

    #235785 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Hola,
    te refieres a algo como esto?

    if barindex>1 then
    if openhour<>openhour[1] then
    close1h=close[1]
    open1h=open[bar+1]
    high1h=highest[bar+1](high)[1]
    low1h=lowest[bar+1](low)[1]
    drawrectangle(barindex[bar[1]+1],close1h,barindex[1],open1h)coloured("blue")
    drawsegment(barindex[2],high1h,barindex[2],low1h)coloured("blue")
    bar=0
    else
    bar=1+bar
    endif
    endif
    
    return
    #235787 quote
    JAVIERGJAVIERG
    Participant
    New

    Muchísimas gracias Iván,

    y si quisiera el relleno de la ‘vela’ de 1 hora por ejemplo en verde, ¿ cuál es la instrucción para el relleno de la vela?

    Un placer como siempre.

    Eres un grande entre los grandes.

    #235790 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Buenas!!
    Puedes añadir al final de la línea de dibujar el rectángulo la expresión fillcolor("green",alpha) donde alpha va de 0 a 255 siendo la intensidad del color.

    drawrectangle(barindex[bar[1]+1],close1h,barindex[1],open1h)coloured("blue")fillcolor("green",150)

    En lugar de green puedes poner 0,255,0 (r,g,b)

    #235798 quote
    JAVIERGJAVIERG
    Participant
    New

    Gracias de nuevo.

    Tengo un sistema ‘manual’ con un indicador tuyo de tendencia y bollinguer que funciona de maravilla.

    Quería juntar 1 hora y 15 minutos como lo has hecho en el indicador que me has facilitado.

    Gracias.

Viewing 5 posts - 1 through 5 (of 5 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 de 1 hora y dentro las 5 de 15 minutos


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
JAVIERG @javierg Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by JAVIERGJAVIERG
2 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 07/25/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...