ROUND THE CROSSPOINT

Forums ProRealTime English forum ProBuilder support ROUND THE CROSSPOINT

Viewing 5 posts - 1 through 5 (of 5 total)
  • #191343

    Hi there!

    Just in case any  programmer may help me. In the indicator shared below, I am trying to round the point where the F line crosses up the level 810 and down the level 410. I understand that I need two points as a reference, namely x and y. For  Y the value is clearly 810 but in the case of X, I do not really know what value to use. Do you guys know if there is a change to use TIME as value for X? If not possible, any idea how to do it? Thanks in advance to the community.

    Ind1=ROC[24](close)
    Ind2=ROC[40](close)
    Ind3=averagetruerange[61](close)
    Ind4=average[61](close)
    Ind5=Ind3/Ind4

    rem F contiene la Inercia Alcista
    F=((Ind1*0.4+Ind2*0.2)/(Ind5*0.4))

    rem Mostramos el indicador para la toma de decisiones
    PasoUp=810
    PasoDown=420
    Cero=0
    IAentrada=F crosses over PasoUp
    IAsalida= F crosses under PasoDown

    if IAentrada then
    drawpoint(F[1],810,5)coloured(0,255,0,50) bordercolor(0,255,25)
    elsif IAsalida then
    drawpoint(F[1],420,5)coloured(0,255,0,50) bordercolor(255,0,0)
    endif

    return cero as “cero”, PasoUp as “PasoUp”, PasoDown as “PasoDown”, F as “Fuerza Alcista”

    #191346

    Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.

    I moved this topic from the Spanish support.

    Thank you 🙂

    Change the DRAWPOINT lines to:

     

    #191350

    Hi Robert!

    Thanks for changing my post to the english forum. In regards with your answer first of all thank you. The point is that I dont have the intention to open the indicator in the price graph but  alone so I  cant use the “barIndex” as an X value. That is the reason I suggested if it was possible to use some sort of “time” instruction for the X value

    #191356

    No, it can only be a bar ID.

     

    #191357

    Ups. what an inconvenient! anyway, thank you for the support

    Have a blast!

Viewing 5 posts - 1 through 5 (of 5 total)
Similar topics:

Create your free account now and post your request to benefit from the help of the community
Register or Login