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


Re: Volume Price Change

Postby minifire18 » Tue Dec 11, 2018 12:14 pm

Hi guys I have just found this site and thinks its amazing and the all the information people and developers share and help build indicators. I have a request can you add a horizontal line on the zero line without the (tag), I have done this manually and saved template and noticed that zero lines are different on different timeframes and another request if you can get alerts when indicator is below zero and signal line for shorts and above zero line and signal line for longs and have a visual label as a dot with colour options
Thanks in advance
minifire18
 
Posts: 9
Joined: Tue Dec 11, 2018 8:43 am


Re: Volume Price Change

Postby minifire18 » Wed Dec 12, 2018 10:30 am

works fine could you possible to change line colour to white and can you still do the alerts for shorts below zero & signal line and longs above zero & signal line with colour options and label size please
thanks
minifire18
 
Posts: 9
Joined: Tue Dec 11, 2018 8:43 am

Re: Volume Price Change

Postby Apprentice » Tue Dec 18, 2018 8:58 am

Volume Price Change with Alert added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 20370
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

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