admin管理员组

文章数量:1122846

I am trying to write a script that reflects the inverse close on my chart, simular to the blue line on the attached image. The white line represents my code. As you can see the two lines differs alot and I need help to get my white line to match the blue line

My best effort so far is the following code:

    //@version=6
    indicator('Inverse PA', overlay = true)

    len = input(5)
    c = 1 / (ta.sma(close,len))

    plot(c,color = color.white,linewidth = 2)

本文标签: pine script v6Inverse Price ActionStack Overflow