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

Reply
Old 05-06-2009, 10:21 PM   #65

Join Date: Oct 2007
Location: New York
Posts: 3
Ignore this user

Thanks: 0
Thanked 1 Time in 1 Post

Re: Volume Splitter

Bob,
Would you mind posting the combined code? I can't get it to run.
Much Thanks,
wlbw is offline  
Reply With Quote
The Following User Says Thank You to wlbw For This Useful Post:
Laurel (05-27-2009)
Old 05-06-2009, 11:04 PM   #66

pimind's Avatar

Join Date: Dec 2008
Location: Portsmouth
Posts: 98
Ignore this user

Thanks: 25
Thanked 107 Times in 53 Posts

Re: Volume Splitter

Thanks I really appreciate it and i'm sure other users do as well. I'm having a little trouble following you.

The second code you posted looks like a function. It looks very similar to the function that is already in tradestation. I guess the problem I'm having and I believe wlnw is having is incorporating the function into the first code you posted. Thanks again for your input.

Last edited by pimind; 05-06-2009 at 11:10 PM.
pimind is offline  
Reply With Quote
Old 05-07-2009, 01:26 AM   #67

Join Date: Apr 2007
Location: chicago
Posts: 35
Ignore this user

Thanks: 46
Thanked 11 Times in 4 Posts

Re: Volume Splitter

Robotman, ty for sharing something you have worked long and hard on. If you hang around here I think you will find what you give you get back in spades. This is by far the most professional and trader friendly forum you will find on the internet.

In regards to the volume splitter, I had seen the EOT site about 6 weeks ago and finally needed to see it live. They have a free trial and show all the indicators live. I have been trading a long time and this was one of the best indicators I have seen. I am a firm believer in reading price action and this thing is good. With time and sales being the closest thing to a real time indicator, this splitter runs a close second. They know people are trying to copy it and joke around that it will not be duplicated. This forum has some very sharp people in it, I will put my money on TL.
cooper59 is offline  
Reply With Quote
The Following 2 Users Say Thank You to cooper59 For This Useful Post:
Laurel (05-27-2009)
Old 05-07-2009, 03:49 AM   #68

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,292
Ignore this user

Thanks: 129
Thanked 1,054 Times in 702 Posts

Re: Volume Splitter

Quote:
Originally Posted by flyingdutchmen »
that is correct the problem is within the comparing of those 2 value's
by using a statement like value1-value1[1] you will get nothing as there
are no historical value's saved in intrabarpersist variables but you will need
to use the intrabarpersist variables in order to recieve all value's within
each timeframe

the calculation sounds indeed easy but how to compare both values
im trying to figure out
There is no way to do it on historical data. It has to run live or run live and save data into its own file/database. You could of course make an approximation based on assumptions, this can work well. Rather than repeat myself http://www.traderslaboratory.com/for...html#post63931

btw dont use [1] use

if newvalue - oldvalue > block do something.
oldvalue = newvalue
BlowFish is offline  
Reply With Quote
The Following User Says Thank You to BlowFish For This Useful Post:
Laurel (05-27-2009)
Old 05-07-2009, 06:45 AM   #69

Join Date: May 2007
Location: Toronto
Posts: 264
Ignore this user

Thanks: 9
Thanked 153 Times in 56 Posts

Re: Volume Splitter

Quote:
Originally Posted by BlowFish »
There is no way to do it on historical data. It has to run live ...

Not true my friend. You can build anything you want with a 1 tick file.
bakrob99 is offline  
Reply With Quote
The Following User Says Thank You to bakrob99 For This Useful Post:
Laurel (05-27-2009)
Old 05-07-2009, 08:01 AM   #70
Robert70

Status: Guest
Posts: n/a
Ignore this user


Re: Volume Splitter

Quote:
Originally Posted by pimind »
Thanks I really appreciate it and i'm sure other users do as well. I'm having a little trouble following you.

The second code you posted looks like a function. It looks very similar to the function that is already in tradestation. I guess the problem I'm having and I believe wlnw is having is incorporating the function into the first code you posted. Thanks again for your input.
I did not test this but this should do it. Please correct me if I'm wrong.

Code:
//Bob Fulks 8/07, Bob Perry 09/07, 12/07, 05/09 

Inputs: MinLotSize(1), MaxLotSize(9999), TrixLen(9);
Var: TRIXValue(0);
Var: intrabarpersist LTicks(0); 
Var: intrabarpersist TSize(0); 
Var: intrabarpersist UpSum(0); 
Var: intrabarpersist DnSum(0); 
Var: intrabarpersist CumSum(0); 

if LastBarOnChart then begin TSize = Ticks - LTicks; 
If TSize >= MinLotSize and TSize <= MaxLotSize then Begin if Close = CurrentBid then DnSum = DnSum + TSize;
if Close = CurrentAsk then UpSum = UpSum + TSize; End; 

LTicks = Ticks; 
if BarStatus(1) = 2 then begin CumSum = CumSum + UpSum - DnSum ;

TRIXValue = TRIX( CumSum, TrixLen ) ;
Plot1(TRIXValue, "CumSum");
Plot2(0,"zeroline"); 

LTicks = 0; UpSum = 0; DnSum = 0; 
end;
End;
 
Reply With Quote
The Following 2 Users Say Thank You to For This Useful Post:
Laurel (05-27-2009), pimind (05-07-2009)
Old 05-07-2009, 08:36 AM   #71

Tams's Avatar

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

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

Re: Volume Splitter

Quote:
Originally Posted by bakrob99 »
Not true my friend. You can build anything you want with a 1 tick file.

if you take a screen shot of your live 1-tick chart,
then close down the charting software, reboot the computer.
When you re-start your computer and call up the same 1-tick chart again,
the chart might look different than the screen shot you have taken earlier.

:-(
Tams is offline  
Reply With Quote
Old 05-07-2009, 08:53 AM   #72

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,292
Ignore this user

Thanks: 129
Thanked 1,054 Times in 702 Posts

Re: Volume Splitter

Quote:
Originally Posted by bakrob99 »
Not true my friend. You can build anything you want with a 1 tick file.
No you can not. You also need all the bid and ask changes as tick streams too. I do routinely build stuff from 1 tick files but you need to make assumptions about the order book and inside bid and ask unless you have recorded the order book (previously in real time) yourself. Neoticker is the only package I am aware of that does this (and that needs a kludge). Apparently ninja version 7 will have this feature too.

The problem is not the trades (the tick stream) it's the order book changes. How do you know a tick is at the bid or the ask? You can not know though you can guess if its an uptick its at ask and a downtick is at bid. Best bid and best ask areavailable real time but not historically and there is the problem.
BlowFish is offline  
Reply With Quote

Reply

Tags
eot, volume splitter

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
Retest on Lower Volume with Volume Gradient walterw Technical Analysis 3 04-16-2009 12:10 AM
NYSE Up Volume($UVOL)/Down Volume ($DVOL) Comparison MC Market Internals 23 02-09-2009 09:18 AM

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