Añadir flechas en "PRC_FractalsTrendLine"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #104100 quote
    Fr7
    Participant
    Master
    defparam drawonlastbaronly = true
    
    //fractals
    cp = lookback
    if high[cp] >= highest[(cp)*2+1](high) then
    LLH = 1
    else
    LLH = 0
    endif
    
    if low[cp] <= lowest[(cp)*2+1](low)  then
    LLL = -1
    else
    LLL = 0
    endif
    
    if LLH = 1 then
    oldLTOPy = LTOPy[1]
    oldLTOPx = LTOPx[1]
    LTOPy = high[cp]
    LTOPx = barindex[cp]
    endif
    
    if LLL = -1 then
    oldLBOTy = LBOTy[1]
    oldLBOTx = LBOTx[1]
    LBOTy = low[cp]
    LBOTx = barindex[cp]
    endif
    
    //trend line
    DRAWLINE(oldLTOPx,oldLTOPy,LTOPx,LTOPy)coloured(0,0,255)
    DRAWLINE(oldLBOTx,oldLBOTy,LBOTx,LBOTy)coloured(211,78,36)
    /////////////condition of arrow//////////////////////////////////////
    if close>LTOPy then
    drawarrowup(barindex,lowest[5](LTOPy)) coloured(0,51,255)
    endif
    ////////////////////////////////////////////////////////////////////////
    RETURN
    

    Hola,me gustarìa añadir una flecha hacia arriba cada vez que el precio cruza por encima de la lìnea de color azul como muestro en la imagen.

    La condiciòn serìa esta:

    close crosses over (DRAWLINE(oldLTOPx,oldLTOPy,LTOPx,LTOPy)coloured(0,0,255))

    No sè cómo codificarlo……Lo he intentado al final del código pero la flecha sale muy arriba….

    ¿Alguien me puede ayudar?

    Gracias.

    #104102 quote
    Fr7
    Participant
    Master

    Necesito ayuda en las líneas 35 y 36 para añadir una flecha hacia arriba cuando el precio cruce la línea de color azul como adjunto en la imagen anterior…….

    #104528 quote
    Fr7
    Participant
    Master

    ¿Alguien me puede ayudar?Por favor……..

    #104529 quote
    robertogozzi
    Moderator
    Master

    Intente reemplazar la línea 36 con

    drawarrowup(barindex,low - range) coloured(0,51,255)
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Añadir flechas en "PRC_FractalsTrendLine"


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
Fr7 @fr7 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 08/03/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...