DTR vs ATR w RVol

DTR vs ART along with Relative Volume in Percentage. So if you see RVol as 200% with input length of 10 days, today's volume is 2x compared to past 10 days. It helps if today's volume is already reached 20% or 30% within 30mins of market open, etc.
Phát hành các Ghi chú: Added an option to choose Smoothing for ATR
Phát hành các Ghi chú: Updated some notes
Phát hành các Ghi chú: Updating function to work better
Phát hành các Ghi chú: cleaning up stuff
Phát hành các Ghi chú: There was a mis-calculation on the script where if you change chart resolution, the RVol changes. But the intention of this script is, both DTR vs ATR value and RVol should be same for the day whether you're on 1Hr chart or 3min chart or Daily chart. The idea is, we want to see what is today's DTR vs ATR and what is today's Relative Volume.
Phát hành các Ghi chú: Update Notes:
Couple of features added:
1. When chart resolution is Daily or Intraday (D, 4H, 1H, 5min, etc), both True Range and Relative Volume shows value based on DAILY.
2. When resolution is changed to Weekly or Monthly, then both True Range and Relative Volume shows corresponding value. i.e. Weekly shows weekly true range vs past 'N' weekly ATR. Weekly Relative Volume shows relative volume of this week compared to past 'N' weeks. Likewise for Monthly. You would see change in label name. Like, Weekly chart shows WTR (Weekly True Range) and W_RVol (Weekly Relative Volume). Likewise, Daily & Intraday shows DTR & D_RVol. Monthly shows MTR (Monthly True Range) and M_RVol (Monthly Relative Volume).
3. Added a plot (by default hidden) for this specific reason: When you move the cursor to focus specific candle, then Indicator Value displays relative volume of that specific candle. This applies to Intraday as well. So if you're in 1HR chart and move the cursor to a specific candle, Indicator Value shows relative volume for that specific candlestick bar.

Hope you find this useful.
Phát hành các Ghi chú: Introducing Table with this release. Here are the features:
1. You can choose location of the panel/table from settings
2. You can choose to hide table Header

If you still like to use older version (label), I think you can still change to previous version of this script.

Hope this helps with multiple charts layout as well.
Mã nguồn mở

Với tinh thần của TradingView, tác giả đã xuất bản tập lệnh theo mã nguồn mở, vì thế trader có thể dễ dàng hiểu và tùy chỉnh được. Bạn có thể sử dụng miễn phí, hoặc tùy chỉnh lại mã đã được cấp phép bởi Quy tắc Chung. Bạn có thể sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Bình luận

Can someone please explain how dtr vs atr vs rvol works? what it means and how I can use it
+5 Phản hồi
Spaydz decimalPaella
@decimalPaella, agreed can someone plz explain... this seems interesting and nice to have
+2 Phản hồi
Phản hồi
Thanks for the script, is it possible to have the label at Top left most position .What does y=10e10 specify ?
Phản hồi
ssksubam prap4stocks
@prap4stocks, y=10e10 is nothing but y-axis value. Y-axis is price. So highest price the chart is showing. That’s why the label is showing on the top. If you want show label on left, which is x-axis (nothing but time). So you can’t define a time or bar on left side. All you could do is, how bars left or right you want label to be placed. Negative value is left. Positive value is right. I set to -5, so it’s placed at 5 bard from last bar. Thanks.
+1 Phản hồi
ssksubam prap4stocks
@prap4stocks, Just to be sure I answer your question better. How do you define left? Is 2019 left or 2010 is left? It really depends on how far you want to go to left. Make sense. So the x-axis position of the label is based on current time and/or current bar. I have set my "BarsRight" value to -5 (negative 5). That means it is 5 bars left from last bar (last bar is nothing but current time active bar). Hope this helps. There is no better way to place labels using pine script currently. Like we do in TOS. But I heard some feature is coming in the future. Then we may be able to place the label in a much better way. Thanks!
+1 Phản hồi
prap4stocks ssksubam
@ssksubam, Thanks for reply i was looking to place this label in far left of any chart near stock Symbol and price is displayed.
I was able it with (barsRight = input(-35) and y-axis 10e10)

but its not working properly if i have multiple charts in same panel like shown in image below
+1 Phản hồi
ssksubam prap4stocks
@prap4stocks, yes sir. BarRight value is the only way to control x-axis location effectively for now. You got it. Thanks
Phản hồi
prap4stocks ssksubam
@ssksubam, I got x-axis part but struggling with fixed y-axis portion if i use 10e10 the label values are not visible with multi-chart layout

as shown here:

I have to use y=close and the problem is the label is not at a fixed location

Ideally i want my label to be at left-most top side near Stock symbol label
Phản hồi
Sukhavasi prap4stocks
@prap4stocks, Hi, Could you please share the indicator name you are using to generate fib values ?
Phản hồi