Code in Tradingview

This is a discussion on Code in Tradingview within the Trading Software forums, part of the Commercial category; Hi everyone, Does anyone know how to code in Tradingview? I used to use ProRealtime but i have move to ...

Reply
 
LinkBack Thread Tools Search this Thread
Old May 27, 2016, 1:26pm   #1
Joined Sep 2008
Code in Tradingview

Hi everyone,

Does anyone know how to code in Tradingview?

I used to use ProRealtime but i have move to tradingview that is free and it has all feature and realtime charts.

The only problem is that I knew how to programme in ProReal but not in Tradingview

The indicator that I need is very simple and if someone could help me I would really appreciated:

The Indicatior is:

If Volume is bigger than on the previous bar and bar closes in top half then the indicator shows a blue bar

If Volume is bigger than on the previous bar and bar closes in bottom half then the indicator shows a red bar

The indicator appear as an Histogram

That it

Thanks for the help in advance
Fran8 is offline   Reply With Quote
Old Jun 21, 2016, 3:18pm   #2
 
bhatia_ash's Avatar
 
5 Posts
Joined Dec 2004
I think this should do the trick:


//@version=2
study("volume_close")
vol_up = volume > volume[1]
//vol_dn = volume < volume[1]
close_up = close > (high+low)/2
close_dn = close < (high+low)/2
color = vol_up and close_up ? blue : vol_up and close_dn ? red : white
plot(volume, "vol_up_dn", color, 1, style=histogram )
bhatia_ash is offline   Reply With Quote
Old Jun 21, 2016, 3:54pm   #3
Joined Sep 2008
Fran8 started this thread thanks for your help, really appreciatedˇˇˇ
Fran8 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
TradingView Reuben Blamey Trading Software 1 Mar 4, 2016 10:06pm
Help with code sai20_2000 Trading Software 1 Jan 11, 2011 3:11pm
Help with code???? Rossini Trading Software 6 Jun 23, 2010 7:56am
Can anyone help with this code??? Rossini Trading Software 5 Feb 1, 2010 3:44pm
Code help please Trdr Trading Software 0 May 9, 2005 12:08am

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)