Page 1 of 1

Market Spike Detector

PostPosted: Mon Feb 19, 2018 4:58 pm
by isamegrelo
please add alert to this indicator

//@version=2
study("Market Spike Detector", overlay=false)
//

//srcl = input(low, title="Blue Spike Start", type=source)
//srch = input(high, title="Blue Spike End", type=source)


sl252 = ema(open,1)
sh252 = ema(close,1)

sl25 = ema(low,1)
sh25 = ema(high,1)

volllPlot = ( ((sh25 - sl25) * 1000) * ((sh25 - sl25) * 1000) * ((sh25 - sl25) * 1000))
volllPlot2 = ( ((sh252 - sl252) * 1000) * ((sh252 - sl252) * 1000) * ((sh252 - sl252) * 1000))

plot(volllPlot,"Market Spike / Volatility" , blue , 4)
plot(volllPlot2,"Price Spike Resting Direction" , red , 4)