shmateyev

_CM_VolumeAlert_2

100 0 16
Volume impuls alert
Remove from Favorite Scripts Add to Favorite Scripts
study(title="_CM_VolumeAlert", shorttitle="_CM_Vol_Alert", precision=0)
showMA = input(true)
ma = input(20, title="Moving Average")
vm = input(2, title="Volume Multiple")

volma = sma(volume, ma)
volextreme = volume > volma * 2

//Volume is greater than Multiple of the moving average
col = volume > volma * vm ? red : silver
//Signals based on the multiple compared to the previous bar
col2 = volume > volume[1] * vm ? red : yellow
//signals based on the multiple of the highest volume for X bars back...Here you have to change the 10 for bars back.
col3 = volume > ((highest(volume[1], 10)) * vm) ? red : yellow

plot(volume, color = open > close ? red : green, style=columns, title="Volume MA", transp=65)
plot(volume, color=col, style=histogram, linewidth=3)
//plot(highest(volume, 20)[1], style=line, linewidth=3, color=white)

plot(showMA ? sma(volume,ma) : na, style=area, color=aqua, title="Volume", transp=65)
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out