TradingView
oberon2007
9 Th05 2019 07:20

TP/SL calculator (ATR) 

Bitcoin / United States DollarCoinbase

Mô tả

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

Phát hành các Ghi chú

Add offset to print price target one bar forward.

Phát hành các Ghi chú

Added second take profit target.

Phát hành các Ghi chú

fresh chart

Phát hành các Ghi chú

- added take profit 3 (ATR * 3)
- thinner lines by default

Phát hành các Ghi chú

Update to pine script v4

- introduce "switch resolution"
- introduce "show last" option to set number of values to show
- make offset configurable
Bình luận
Deane1995
hello mate, does this repaint?
oberon2007
@Deane1995, I'm not really sure what you mean. After a candle has closed there isn't anything to repaint, as the ATR won't change. While a candle hasn't closed, yes of course the current print will be adjusted realtime. Just try it out and it will be obvious... ;)
mpolokenggomolemo08
Good
Thêm nữa