Elixium

ATR Pips [LazyBear] [Fixed by Elixium]

This is ATR in pips. This was requested by user @ElixiumCapital on Twitter. ATRPIPs in his words:

How to use: Change the chart to the Daily time frame. The indicators value e.g. 0.0105 means that the average daily range of the past 5 trading days is 105 pips. (On standard pairs like EURUSD, GBPUSD)

"ATR PIPs is useful for finding markets with your desired amount of volatility, for example I prefer to trade forex pairs with the highest amount of volatility in the past 5 days, setting the length parameter to 5 days. And setting my stop loss at 25% to 33% of the the indicators value."

Fixed: Default parameters and a critical bug.

오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
//
// @author LazyBear 
// 
// List of my public indicators: http://bit.ly/1LQaPK8 
// List of my app-store indicators: http://blog.tradingview.com/?p=970 
//
study("ATR Pips [LazyBear] [Fixed by Elixium]", shorttitle="ATRPIPS_LB [Fixed by Elixium]", overlay=false, precision=4)
length=input(5, title="ATR Length")
mult=input(1.0, title="Percentage Multiplier (for ex., 0.7 = 70%)", step=0.1, minval=0.1, maxval=1.0)
sb=input(false, title="Show Enclosing BB")
l = input(34, minval=1, title="Enclosing BB Length")
m = input(2.0, minval=1, maxval=50, title="Enclosing BB Multiplier")
oa=input(false, title="Show actual ATR")
p=mult*100
ii=syminfo.pointvalue==0
s=ii?na:oa?atr(length):(syminfo.pointvalue * mult * atr(length))
x=ii?(nz(x[1])+0.7)%3.0:na
plotshape(ii?x:na, style=shape.cross, color=red, text="Invalid", location=location.absolute, title="ErrorText")
basis = sb?sma(s, l):na
dev = sb?m * stdev(s, l):na
upper = sb ? (basis + dev) : na
lower = sb ? (basis - dev) : na
plot(upper, color=gray, linewidth=2, title="Upper")
plot(lower, color=gray, linewidth=2, title="Lower")
plot(basis, color=orange, linewidth=2, title="Middle")
plot(ii?na:s, color=blue, linewidth=2, title="ATR")