Volume Price Change

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Volume Price Change

Postby isamegrelo » Fri Feb 09, 2018 7:57 am

Source: https://www.tradingview.com/script/DLwW ... ice-Change

this is code:

//@version=3
study(title='[RS]Volume Price Change', shorttitle='VPC')
price_smoothing = input(0)
length = input(15)
signal = input(0)

vpc = change(close, length) * sma(volume, length)
if price_smoothing > 0
vpc := change(ema(close, price_smoothing), length) * sma(ema(volume, price_smoothing), length)

signal_line = na
signal_color = na
if signal > 0
signal_line := ema(vpc, signal)
signal_color := vpc > signal_line ? lime : vpc < signal_line ? red : gray


plot(series=vpc, title='VPC', color=black, linewidth=1, style=line, transp=0)
plot(series=signal_line, title='Signal', color=signal_color, linewidth=1, style=line, transp=0)

hline(0)
isamegrelo
 
Posts: 95
Joined: Mon May 29, 2017 3:36 pm



Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 7 guests