Welcome to the Traders Laboratory Forums.
Market Profile Are you a market profile trader? Post here.

Reply
Old 08-29-2007, 01:28 AM   #89

Join Date: Jul 2007
Location: Mumbai
Posts: 44
Ignore this user

Thanks: 189
Thanked 23 Times in 10 Posts

Re: Trading with Market Statistics. IV Standard Deviation

Can somebody please advise me on this code.
I am a newbie to Easylanguage.
I am using this code on mullticharts
Comments appreciated

Naveen


vars: vwap(0),
pv(0),
Totalvolume(0),
Barfromstart(0),
Squareddeviations(0),
Probabilityweighteddeviat ions(0),
deviationsum(0),
standarddeviation(0);
If date > date[1]
then
begin
Barfromstart=0;
pv=AvgPrice*volume;
Totalvolume=volume;
vwap=pv/totalvolume;
end
else
begin
Barfromstart=Barfromstart[1]+1;
pv=pv[1] + AvgPrice*Volume;
Totalvolume=Totalvolume[1] + Volume;
vwap=pv/Totalvolume;
end;
deviationsum=0;
for value1= 0 to Barfromstart
begin
Squareddeviations=Square( vwap-avgprice[value1]);
Probabilityweighteddeviat ions=volume[value1]*Squareddeviations/Totalvolume;
deviationsum=deviationsum +Probabilityweighteddevia tions;
end;

standarddeviation=SquareR oot(deviationsum);
plot1(vwap);
plot2(vwap+standarddeviat ion);
plot3(vwap+2*standarddevi ation);
plot4(vwap-standarddeviation);
plot5(vwap-2*standarddeviation);
NAVEEVIa is offline  
Reply With Quote
The Following User Says Thank You to NAVEEVIa For This Useful Post:
Chouca (12-08-2009)
Old 08-29-2007, 05:04 AM   #90

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: Trading with Market Statistics. IV Standard Deviation

From just a cursory look seems Ok to me....I'll try plotting it in a bit.

Cheers
BlowFish is offline  
Reply With Quote
Old 08-29-2007, 06:50 AM   #91

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: Trading with Market Statistics. IV Standard Deviation

HI NAVEEVIa,

I tried your code and it looks fine (as far as I can tell). It does suffer from being pretty processor intensive though.

Cheers.
BlowFish is offline  
Reply With Quote
Old 08-29-2007, 07:27 AM   #92
cooter

Status: Guest
Posts: n/a
Ignore this user


Re: Trading with Market Statistics. IV Standard Deviation

Quote:
Originally Posted by BlowFish »
HI NAVEEVIa,

I tried your code and it looks fine (as far as I can tell). It does suffer from being pretty processor intensive though.

Cheers.
Looking at all the VWAP, SD and PVP code on this forum, can you help us determine which one is least processor intensive then, while still as accurate as possible?
 
Reply With Quote
Old 08-29-2007, 10:23 AM   #93

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: Trading with Market Statistics. IV Standard Deviation

Hi Cooter,

To be honest my whole interest in the code side of things came from being slightly disappointed with the performance of traditional algorithms. All have noticeable delays when first applying and make my charts feel a little sluggish.

I have code that I believe is now accurate, actually more accurate as it avoids some rounding errors associated with continuously summing. (you then have to be careful with overflow errors, no sign of that but I guess I should try it on the Nikkei & forex to be sure). It also runs pretty darn fast instantaneous for all intents and purposes. There are no loops in it at all. I just havent got round to posting it for a couple of reasons-

a) I am still running it against various instruments conditions etc.

b) Still running it against other code to make sure it is consistent.

c) I have it in multicharts (which imports .ELD but wont export). Seems kind of naff to post it as a text file if I'm going to do it properly.

d) Hasn't been that much interest (yours was the first enquiry) so I guess people are reasonably satisfied with what's out there.

e) There is still something puzzling me with the VWAP and the algorithm that seems to be commonly used. No biggy but like a dog with a bone I am not ready to let go just yet.

Cheers,
Nick.
BlowFish is offline  
Reply With Quote
Old 08-29-2007, 01:18 PM   #94
cooter

Status: Guest
Posts: n/a
Ignore this user


Re: Trading with Market Statistics. IV Standard Deviation

Quote:
Originally Posted by BlowFish »
Hi Cooter,

To be honest my whole interest in the code side of things came from being slightly disappointed with the performance of traditional algorithms. All have noticeable delays when first applying and make my charts feel a little sluggish.

I have code that I believe is now accurate, actually more accurate as it avoids some rounding errors associated with continuously summing. (you then have to be careful with overflow errors, no sign of that but I guess I should try it on the Nikkei & forex to be sure). It also runs pretty darn fast instantaneous for all intents and purposes. There are no loops in it at all. I just havent got round to posting it for a couple of reasons-

a) I am still running it against various instruments conditions etc.

b) Still running it against other code to make sure it is consistent.

c) I have it in multicharts (which imports .ELD but wont export). Seems kind of naff to post it as a text file if I'm going to do it properly.

d) Hasn't been that much interest (yours was the first enquiry) so I guess people are reasonably satisfied with what's out there.

e) There is still something puzzling me with the VWAP and the algorithm that seems to be commonly used. No biggy but like a dog with a bone I am not ready to let go just yet.

Cheers,
Nick.
I'd like to test what you have in TS, when you're ready to share it.

How does Multicharts compare to TS, by the way?
 
Reply With Quote
Old 08-30-2007, 04:12 AM   #95

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: Trading with Market Statistics. IV Standard Deviation

My relationship with MC is kind of love hate. It has great potential (which is like those school report cards ....could do better...)

The good - its a one of payment when I grandfathered in it was only a coule of hundred bucks. It compiles easy language and even supports there API for .DLL's. I have had no compatibility issues though some do (mainly with systems I think). Support is pretty good too. (Needs to be sometimes)!

The bad some basic things are poorly implemented or just feel un polished. There are numerous little irritating bugs and stuff that is a wee bit more serious (less and less). This in itself isn't so bad but it's taken a long long time to get round to fixing these things. Some of the things they think are 'acceptable' or just don't get are annoying in the extreme. For example there drawing tools are inconsistent in operation and just plain poor. There attitude is that no one ever made any money with drawing tools. Basic data handling and rasterisation (display) of charts have a couple of 'wrinkles'. For me these have to be rock solid before you add bells and whistles. Often they break stuff with new releases, fair enough caca happens, trouble is they often take a month or more to repair it again. Releases are very infrequent and 'hotfixes' almost non existent. Compared to Ensign for example they are streets apart.

They have just made there forums customers only, other wise I could point you at a couple of amusing threads.

I put an enormous amount of time and energy into MC for myself and providing feedback for them. I am loath to throw that all away. To be honest it is better now, even though it has been released for some months now I have seen more robust and polished software that is beta testing.

I think there are a couple of people using it here quite happily (brownsfan springs to mind). I do wonder if he is still as happy the Open Ecry imterface has broken for the last 3 weeks and I believe he was using OEC too.

Cheers.
BlowFish is offline  
Reply With Quote
Old 08-30-2007, 09:23 AM   #96
cooter

Status: Guest
Posts: n/a
Ignore this user


Re: Trading with Market Statistics. IV Standard Deviation

Quote:
Originally Posted by BlowFish »
They have just made there forums customers only, other wise I could point you at a couple of amusing threads.
Yeah, I'd like to read these, just to get a feel for whether they are serious about supporting their software. PM is OK if you don't want to clutter up this thread.
Thanks.
 
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
Trading With Market Statistics.II The Volume Weighted Average Price (VWAP). jperl Market Profile 65 02-25-2012 04:02 PM
Trading With Market Statistics I. Volume Histogram jperl Market Profile 36 02-21-2012 06:23 PM
Trading with Market Statistics III. Basics of VWAP Trading jperl Market Profile 73 01-03-2012 08:06 AM
Standard deviations & Odds rayk Market Profile 2 10-07-2006 11:13 AM
Trading in a Dull Market Soultrader Technical Analysis 0 09-06-2006 11:44 AM

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