Library "pNRTR"
Provides functions for calculating Nick Rypock Trailing Reverse (NRTR) trend values with higher precision offsets for both low, and high points rather than the standard single offset.

pnrtr(float low_offset = 0.2, float high_offset = 0.2, float value = close)

Offset used for nrtr low_point calculations. Default is 0.2.

Offset used for nrtr high_point calculations. Default is 0.2.

Variable used for nrtr point calculations. Default is close.

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

Want to use this library?

Copy the following line and paste it in your script.