TradingView
RafaelZioni
2018년 7월 21일 오전 8시 4분

Vpricesar 

Bitcoin / TetherUSBinance

설명

this VPrice SAR
seems to look good:)
VPRICE is a volume indicator that I made when I was bored at job:)
now we put to action with SAR :)

alerts inside

릴리즈 노트

I hope this one will fix the issue other coins that in early version. I had to make it smother

릴리즈 노트

add a strong buy point (blue) and fix some issue with exit
코멘트
bsafindi
Hello friend
Just a simple question....I copied the script to txt file. What should be the ext of file to save it then copy it to Script folder of MT4.
Am I right?
BenevolentStockCharts
Interesting script!
RafaelZioni
study(title=" Vpricesar", shorttitle="vpricesar")
window1 = input(title='lookback window 1:', type=integer, defval=8)
window2 = input(title='lookback window 2:', type=integer, defval=21)

top1 = valuewhen(high >= highest(high, window1), high, 0)
bot1 = valuewhen(low <= lowest(low, window1), low, 0)
top2 = valuewhen(high >= highest(high, window2), high, 0)
bot2 = valuewhen(low <= lowest(low, window2), low, 0)





src = close
window_len = input(28, defval=28, minval=1, title='Window Lenght')
zibi_len = input(14, defval=14, minval=1, title='ZIBI smooth Lenght')
price_spread = stdev(high-low, window_len)

zibi = (volume*close - volume*open/volume*high - volume*low)/-1
smooth = sma(zibi, zibi_len)
zibi_spread = stdev(zibi - smooth, window_len)
shadow = (zibi - smooth) / zibi_spread * price_spread

out = shadow > 0 ? high + shadow : low + shadow
color = shadow > 0 ? green : red
plot(out, style=line, color=color)
// out = close > close[1] ? shadow : -shadow
// plotarrow(out, colorup=green, colordown=red, transp=50, title='Volume Shadow')



start = input(3, minval=0, maxval=10, title="Start - Default = 2 - Multiplied by .01")
increment = input(3, minval=0, maxval=10, title="Step Setting (Sensitivity) - Default = 2 - Multiplied by .01" )
maximum = input(3, minval=1, maxval=10, title="Maximum Step (Sensitivity) - Default = 2 - Multiplied by .10")
sus = input(true, "Show Up Trending Parabolic Sar")
sds = input(true, "Show Down Trending Parabolic Sar")
disc = input(false, title="Start and Step settings are *.01 so 2 = .02 etc, Maximum Step is *.10 so 2 = .2")


startCalc = start * .01
incrementCalc = increment * .01
maximumCalc = maximum * .10

sarUp = sar(startCalc, incrementCalc, maximumCalc)
sarDown = sar(startCalc, incrementCalc, maximumCalc)

colUp = close >= sarDown ? lime : na
colDown = close <= sarUp ? red : na

plot(sus and sarUp ? sarUp : na, title="Up Trending SAR", style=circles, linewidth=2,color=colUp)
plot(sds and sarDown ? sarDown : na, title="Up Trending SAR", style=circles, linewidth=2,color=colDown)


down=crossunder(out,sarDown) and crossunder(out,top1)
up=crossover(out,sarUp) and sus and sarUp ? sarUp : na
up1=crossover(out,sarUp) and crossover(out,bot2)
plotshape(down, title="down", style=shape.triangledown,location=location.abovebar, color=red, transp=0, size=size.tiny)
plotshape(up, title="up", style=shape.triangleup,location=location.belowbar, color=green, transp=0, size=size.tiny)
plotshape(up1, title="up1", style=shape.triangleup,location=location.belowbar, color=blue, transp=0, size=size.small)

alertcondition(up1, title='go long1', message='go long1')
alertcondition(up, title='go long', message='go long')
alertcondition(down, title='go short', message='go short')
RafaelZioni
I made fix I hope now it will be better:)
RafaelZioni
it only working on btc , sorry I did not check for other coins before I put it
RafaelZioni
shit , this stupid one only work on BTC 4 hours and bellow, I need to fix that it will work on other as well. stupid...
더보기