OPEN-SOURCE SCRIPT
PnL Ruler [NLR]

Know your dollar targets at a glance — no mental math.
PnL Ruler overlays a dollar-value scale on your chart, anchored to an ATR-based trailing trend line.
The trend line marks your ideal entry zone ($0 reference) — to plan high-quality entry. Labeled levels above and below show exactly where each profit and loss target sits in price terms.
Having dollar targets defined before the trade removes the guesswork and the emotional pressure of deciding in the moment.
Futures-aware: automatically detects tick value per instrument, so dollar levels are accurate out of the box on ES, NQ, MES, MNQ, CL, GC, and others.
Also plots the extreme close of the current trend leg — the highest close in an uptrend, lowest in a downtrend — as a visual reference for how far price has extended.
Settings
Credits
Trend line based on the Follow Line Indicator by Dreadblitz.
PnL Ruler overlays a dollar-value scale on your chart, anchored to an ATR-based trailing trend line.
The trend line marks your ideal entry zone ($0 reference) — to plan high-quality entry. Labeled levels above and below show exactly where each profit and loss target sits in price terms.
Having dollar targets defined before the trade removes the guesswork and the emotional pressure of deciding in the moment.
Futures-aware: automatically detects tick value per instrument, so dollar levels are accurate out of the box on ES, NQ, MES, MNQ, CL, GC, and others.
Also plots the extreme close of the current trend leg — the highest close in an uptrend, lowest in a downtrend — as a visual reference for how far price has extended.
Settings
- ATR Length / Trend Factor / Error Margin — controls the ATR-based trailing trend line
- Contracts — scales all PnL levels by your position size
- PnL Step ($) — dollar increment between levels (e.g. $200 → shows ±$200, ±$400…)
- Levels Each Side — how many levels above and below zero (max 20)
- Lookback Bars — how far left the lines extend into past price action
- EMA Length / HMA Length — period for each moving average. EMA follows trend direction color (dashed); HMA uses blue/orange based on its own slope
Credits
Trend line based on the Follow Line Indicator by Dreadblitz.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.