ayuda al dibujar regtangulo en velas

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #56732 quote
    JOSAN1984
    Participant
    Junior

    Buenas tardes, felicidades por tan grato foro.

    Necesitaria ayuda para poder pintar un regtangulo en una vela,  cuando el volumen sea mayor que una cifra x  y solo me la pinte en la vela de mayor volumen a sus antecesoras y predecesoras.

     

    adjunto imagenes de como quiero que lo pinte y como me lo esta haciendo

     

    el codigo que estoy utilizando es el siguiente:

     

    pattern = volume[0]>500
    
    if pattern then
    drawrectangle(barindex[2],close[0],barindex[0],low[0])
    hh = close
    ll = low
    drawtext("#hh#",barindex,high+range/10)
    drawtext("#ll#",barindex,low-range/10)
    endif
    
    return
    grafico.png grafico.png
    #57161 quote
    Nicolas
    Keymaster
    Master

    Su código está funcionando bien e identifica correctamente su variable ‘patrón’ (cuando el Volumen es superior a 500, dibuje un rectángulo). Si desea dibujar un rectángulo solo sobre aquellos que marca en su imagen, debe refinar su condición de detección.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

ayuda al dibujar regtangulo en velas


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
JOSAN1984 @josan1984 Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 12/28/2017
Status: Active
Attachments: 1 files
Logo Logo
Loading...