repo32

Volume Bomb

I am republishing to use a clean chart. Previous one had too much of a mess. Idea for TradingView: Please allow us to change out the charts after publishing.

I like to know when volume spikes (only when it spikes). I am not interested in seeing the rest of the volume bars. I created this indicator to show me when it explodes (i.e. the name "Volume Bomb" , plus it sounds cool).
This indicator only shows you when volume exceeds the EMA of volume by whatever multiplier you set.
Default settings are the current volume with 10 EMA . Yellow arrowup will appear when volume is at 1.5x the 10 EMA .
Adjust it to your liking and particular stock.
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 đồ?
//Created by Robert N. 033015
// This indicator only shows you when volume exceeds the EMA of volume by whatever multiplier you set
// Default settings are the current volume with 10 EMA.  Yellow arrowup will appear when volume is at 1.5x the 10 EMA

study(title="Volume Bomb", precision=0, overlay = false)
EMovingAvg = ema(volume,input(10))
Multiplier=(volume >= (EMovingAvg * input(1.5)))
plotshape(Multiplier, title="Vol", text='Vol', style=shape.arrowup, location=location.bottom, color=yellow)

Bình luận

any tip for alarm
Phản hồi
repo32 rainrain
@rainrain, Your trading setup would be up to you. If you are asking how to do it, you can set alarm under the indicator with a greater than .01
Phản hồi
would you please explain how to set up an alarm on that indicator
Phản hồi
rainrain rainrain
@rainrain, ıs there any way for you to answer
Phản hồi
Dear Sir, below is volume indicator code in version 4, I am trying to club with other indicator which is in version 3, so I am getting error. Can you pls suggest what changes I need to make in below code to work:

BarsVisible = input(title="Bars Visible", type=input.bool, defval=true)

SmoothPeriod = input(30, title="Smooth Period")
SmoothMAType = input(title="Smooth MA Type", defval="HMA", options=)
SmoothVisible = input(title="Smooth MA Visible", type=input.bool, defval=true)

AbsoluteEffectiveness = input(title="Absolute Effectiveness", type=input.bool, defval=false)

VolumePower = if(AbsoluteEffectiveness)
abs((((close / open) - 1) * 100)/volume)
else
(((close / open) - 1) * 100)/volume

ma(MAType, MASource, MAPeriod) =>
if MAType == "SMA"
sma(MASource, MAPeriod)
else
if MAType == "EMA"
ema(MASource, MAPeriod)
else
if MAType == "WMA"
wma(MASource, MAPeriod)
else
if MAType == "RMA"
rma(MASource, MAPeriod)
else
if MAType == "HMA"
wma(2*wma(MASource, MAPeriod/2)-wma(MASource, MAPeriod), round(sqrt(MAPeriod)))
else
if MAType == "DEMA"
e = ema(MASource, MAPeriod)
2 * e - ema(e, MAPeriod)
else
if MAType == "TEMA"
e = ema(MASource, MAPeriod)
3 * (e - ema(e, MAPeriod)) + ema(ema(e, MAPeriod), MAPeriod)
else
if MAType == "VWMA"
vwma(MASource, MAPeriod)

MA = ma(SmoothMAType, VolumePower, SmoothPeriod)

plot(BarsVisible ? VolumePower : na, color=(VolumePower>=0 ? color.green : color.red), style=plot.style_columns, transp=50 )
plot(SmoothVisible ? MA : na, color=color.black, style=plot.style_line)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------

Regards,
Vishwanath
Phản hồi
Catchy Name :) I like it and the indicator as well
Phản hồi