PROTECTED SOURCE SCRIPT
Updated

TP/SL calculator (ATR)

21 130
This calculates takeprofits and stoploss based on current ATR (average true range) and plots the targets as an overlay

oberon.at/oberon/src/Screenshot from 2019-05-09 08-58-26.png

Alternatively it can display a trailing stop loss target

oberon.at/oberon/src/Screenshot from 2019-05-09 09-00-45.png
Release Notes
Add offset to print price target one bar forward.
Release Notes
Added second take profit target.
Release Notes
fresh chart
Release Notes
- added take profit 3 (ATR * 3)
- thinner lines by default
Release Notes
Update to pine script v4

- introduce "switch resolution"
- introduce "show last" option to set number of values to show
- make offset configurable

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.