TradingView
Nanda86
20 Th03 2020 18:34

HawkEye Volume With Volume Spike Alert 

STATE BK OF INDIANSE

Mô tả

Haweye volume is the leading volume indicator and can be used for Volume spread analysis and Volume Price Analysis.

Added Volume spike alert to identify Institutional activity.

When there is fourfold volume spike from 4 preceding price bar and the following price bar exceeds the high of the spike bar you can go long and reverse is true for shorts
Bình luận
itsmeanas
Hello, is there is any way to share the code with me? I would appreciate it! Pm me if you can!
Nanda86
//Part 2

u1 = mid1 + (high1-low1)/divisor
d1 = mid1 - (high1-low1)/divisor

r_enabled1 = (range > rangeAvg) and (close < d1) and volume > volumeA
r_enabled2 = close < mid1
r_enabled = r_enabled1 or r_enabled2

g_enabled1 = close > mid1
g_enabled2 = (range > rangeAvg) and (close > u1) and (volume > volumeA)
g_enabled3 = (high > high1) and (range < rangeAvg/1.5) and (volume < volumeA)
g_enabled4 = (low < low1) and (range < rangeAvg/1.5) and (volume > volumeA)
g_enabled = g_enabled1 or g_enabled2 or g_enabled3 or g_enabled4

gr_enabled1 = (range > rangeAvg) and (close > d1) and (close < u1) and (volume > volumeA) and (volume < volumeA*1.5) and (volume > volume[1])
gr_enabled2 = (range < rangeAvg/1.5) and (volume < volumeA/1.5)
gr_enabled3 = (close > d1) and (close < u1)
gr_enabled = gr_enabled1 or gr_enabled2 or gr_enabled3
Axelrom94
hello! i know this might be a bit late but how do i interpret the grey lines? i understand green is buying volume and red is selling but what type of volume are the grey lines?
spacetelecom123
how to interpretation grey bars pls comment...
Nanda86
//@version = 4
//
//
study("HawkEye Volume With Volume Spike Alert", shorttitle="HV_aam", overlay=false)
n_times = input(title="Must be N types bigger", minval=1, defval=4.0)
bars_back = input(title="Than average volume in the last X bars", minval=1, defval=4)
ma_type = input(title="Which moving average to use?", defval="SMA", options=["SMA", "WMA", "EMA"])

length=input(200)
range=high-low
rangeAvg=sma(range,length)
HV_ma = input(20)

durchschnitt = sma(volume, HV_ma)

volumeA=sma(volume, length)
divisor=input(3.6)

//Berechnungen
high1=high[1]
low1=low[1]
mid1=hl2[1]
Nanda86
Shared the code..

copy
part 1,Part2 and part3
penguin_
awesome!
saulvillarroel8
Best settings for 5m?
Tweezer_Karanam
Hi Nanda , Wonderful work ,thank you very much. You have labeled the part2 and part3 code. Which one is part 1 ? , I would appreciate if you share the entire code.
Nanda86
//Part 3

v_color=gr_enabled ? #696b70 : g_enabled ? #026b07 : r_enabled ? #d81515 : color.blue
plot(volume, style=plot.style_histogram, color=v_color, linewidth=5)
plot(durchschnitt, color = color.orange, linewidth = 2)

//spike

ma_func(x, length) =>
wma_1 = wma(x, length)
sma_1 = sma(x, length)
ema_1 = ema(x, length)
ma_type == "WMA" ? wma_1 : ma_type == "SMA" ? sma_1 : ema_1

volalert2 = volume > ma_func(volume[1], bars_back) * n_times

alert = volalert2
plotshape(volume > ma_func(volume[1], bars_back) * n_times ? volume : na, title="Spikes", location=location.absolute, style=shape.triangledown, text="Spike")
alertcondition(alert, title="Volume Spike Alert!", message="Volume signal for XXX")
Thêm nữa