Pivot Lines Trading view code conversion

Forums ProRealTime English forum ProBuilder support Pivot Lines Trading view code conversion

Viewing 2 posts - 1 through 2 (of 2 total)
  • #204235
    Hi Guys
    Need some help here, I have Trading view Pine script code which I need converting. I was able to get somewhere close but there is definately something I am missing which is making things little difficult.
    Pine Script
    indicator(“Pivot Lines”, overlay = true)
    source = close
    value = 14
    var plv = 0.0
    var phv = 0.0
    pl= ta.pivotlow(low,value,value)
    ph=ta.pivothigh(high,value,value)
    if(pl!=plv)
        plv:=pl
    if(ph!=phv)
        phv:=ph
    plot(phv, color=color.blue)
    plot(plv, color=color.red)
    #204263

    That’s a Fractal with a custom period, here you go:

Viewing 2 posts - 1 through 2 (of 2 total)

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