Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 08-08-2010, 11:35 AM   #1

Join Date: Aug 2010
Posts: 23
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Cool Up - Down Volume Ratio

hi guys, i'm a newbie in TS and cant find a way to have the $UVOLvs$DVOL ratio
i sued to have it in mt thinkorswim charts and it was very usefull
the code in thinkorswim is:
# TS_AdvanceDeclineBox
# thinkscripter@gmail.com
# Last Update 03 JAN 2010

def UV = close("$UVOL");
def DV = close ("$DVOL");
def ADL = UV - DV;
def ADR = if UV > DV then UV / DV else -DV / UV;
input mode = {default Ratio, Issues};
def modeSwitch = if mode == mode.Ratio then 1 else 0;

AddChartLabel(yes, concat(
if modeSwitch then ADR else ADL, concat(" ",
if modeSwitch then ":1 NYSE UV/DV" else " NYSE UV/DV")),
if modeSwitch then if ADR > ADR[1] then color.green else color.red else if ADL > ADL[1] then color.green else color.red);
plot null = double.nan;

anyone out there coudl help me out???
thanks!,
binthere is offline  
Reply With Quote
Old 08-12-2010, 09:11 AM   #2

zapisy's Avatar

Join Date: Jan 2009
Location: New York
Posts: 81
Ignore this user

Thanks: 6
Thanked 26 Times in 17 Posts

Re: Up - Down Volume Ratio

var: UVol (0);
var: DVol (0);
var: TheVol (0);

UVol = Close data1;
DVol = Close data2;

TheVol = UVol - DVol;

if TheVol>0 then plot1(TheVol, "Vol", Green, 0,0);
if TheVol<0 then plot1(TheVol, "Vol", Red, 0,0);

plot2(0, "0", White, 0,0)
zapisy is offline  
Reply With Quote
Old 08-12-2010, 11:17 AM   #3

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: Up - Down Volume Ratio

Quote:
Originally Posted by binthere »
hi guys, i'm a newbie in TS and cant find a way to have the $UVOLvs$DVOL ratio
i sued to have it in mt thinkorswim charts and it was very usefull
the code in thinkorswim is:
# TS_AdvanceDeclineBox
# thinkscripter@gmail.com
# Last Update 03 JAN 2010

def UV = close("$UVOL");
def DV = close ("$DVOL");
def ADL = UV - DV;
def ADR = if UV > DV then UV / DV else -DV / UV;
input mode = {default Ratio, Issues};
def modeSwitch = if mode == mode.Ratio then 1 else 0;

AddChartLabel(yes, concat(
if modeSwitch then ADR else ADL, concat(" ",
if modeSwitch then ":1 NYSE UV/DV" else " NYSE UV/DV")),
if modeSwitch then if ADR > ADR[1] then color.green else color.red else if ADL > ADL[1] then color.green else color.red);
plot null = double.nan;

anyone out there coudl help me out???
thanks!,
..... .......... do you have a chart?
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 08-12-2010, 11:23 AM   #4

zapisy's Avatar

Join Date: Jan 2009
Location: New York
Posts: 81
Ignore this user

Thanks: 6
Thanked 26 Times in 17 Posts

Re: Up - Down Volume Ratio

Files attached.

Lukas
Attached Files
File Type: eld Forum.ELD (3.4 KB, 26 views)
File Type: zip Forum.zip (3.2 KB, 24 views)
zapisy is offline  
Reply With Quote
Old 08-12-2010, 02:07 PM   #5

Join Date: Aug 2010
Posts: 23
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Re: Up - Down Volume Ratio

Hi guys, attached a screen shot of my thinkorswim, as you can see in the upper left corner i have a box thar reads the NYSE uvol ratio and the NASD uvol ratio
i find it very usefull to have them expresed as a ratio and displayed in the graph!!
thank you
Attached Files
File Type: pdf screen shot.pdf (350.5 KB, 61 views)
binthere is offline  
Reply With Quote
Old 08-13-2010, 10:49 AM   #6

Join Date: Aug 2010
Posts: 23
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Re: Up - Down Volume Ratio

zapisy, thank you for the eld!
looks very good
what i'm really looking for is a whay to place a small window in my charts that would express the up - down valume ratio
please look at the screen shot i posted
thanks again for your help!
binthere
binthere is offline  
Reply With Quote
Old 08-13-2010, 11:45 AM   #7

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: Up - Down Volume Ratio

Quote:
Originally Posted by binthere »
Hi guys, attached a screen shot of my thinkorswim, as you can see in the upper left corner i have a box thar reads the NYSE uvol ratio and the NASD uvol ratio
i find it very usefull to have them expresed as a ratio and displayed in the graph!!
thank you
you mean something like this?
http://www.traderslaboratory.com/for...bias-6519.html
102.214.133
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
clmacdougall (08-13-2010)
Old 08-13-2010, 12:19 PM   #8

clmacdougall's Avatar

Join Date: Jan 2009
Location: halifax
Posts: 433
Ignore this user

Thanks: 199
Thanked 179 Times in 125 Posts

Re: Up - Down Volume Ratio

Tams, would it be possible for you to make that usable in the esignal efs code? I'm just learning to be literate when it comes to writing code. If it's too much please don't bother. Tams, could you recommend any publication that would help when it comes to writing efs code. Thanks for any help you can offer.
clmacdougall is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tradestation Has Just Added 96 New Indexes, Including $ADD and $VOLD thrunner Brokers and Data Feeds 8 05-01-2012 02:23 PM
VSA Official Summary Part 2 Soultrader Volume Spread Analysis 8 12-25-2010 03:36 PM
VSA Official Summary Part 1 Soultrader Volume Spread Analysis 1 08-01-2008 05:29 AM
The Basics of Volume Part 1 Martin Pring Trading Articles 13 02-28-2008 05:50 PM
Jperl's Trading With Market Statistics Summary Soultrader Day Trading and Scalping 0 01-27-2008 03:56 AM

All times are GMT -4. The time now is 09:55 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.