Lipi Reference
Lipi

Constants

math.rphi

The golden ratio conjugate: the reciprocal of the golden ratio. The contract records this constant's name and type only, so this edition does not print its value.

Example


          //@lipi=2
indicator("math.rphi Example", overlay=true)
// A 0.618 retracement of the 50-bar range
hi = talib.highest(high, 50)
lo = talib.lowest(low, 50)
plot(hi - (hi - lo) * math.rphi, title="0.618 Retracement", color=color.orange)
        

Type

const float