ATR Pips [LazyBear]

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

"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."

I have added options to show a BB around ATR, as well as normal ATR (not in PIPs). All the parameters are configurable.

List of my public indicators:
List of my app-store indicators:



// @author LazyBear 
// List of my public indicators: 
// List of my app-store indicators: 
study("ATR Pips [LazyBear]", shorttitle="ATRPIPS_LB", overlay=false, precision=6)
length=input(20, title="ATR Length")
mult=input(0.7, title="Percentage Multiplier (for ex., 0.7 = 70%)", step=0.1, minval=0.1, maxval=1.0)
sb=input(true, 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")
s=ii?na:oa?atr(length):floor(syminfo.pointvalue * mult * atr(length))
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")
List of my free indicators:
List of my indicators at Appstore:


Does anyone know what happened to Lazybear?
+6 回覆
HI, what. is the LB_RSLR indicator you use to find the support/resistance line. I couldn't find it in your library
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 關於 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特