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: 64
Joined: Mon May 29, 2017 3:36 pm

Re: Volume Price Change

Postby Apprentice » Mon Feb 12, 2018 10:20 am

User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18697
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 7 guests