PureBytes Links
Trading Reference Links
|
<FONT face=Arial color=#0000ff
size=2>William,
Yes I
see it but if I do x/cum(v) explorer reports them all as 1.00. I think Mark may
be correct in that we are seeing a difference in the rounding. I am really just
noodling around trying to learn the use of loops. Dennis had posed a question
regarding float turn over earlier today and I thought his solution would be a
good exercise for me. By incrementing the volume each day until its sum reaches
the float value then resetting the value to 0 and starting over we should be
able to add a plotshape to each zero (starting point).
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: William Peters
[mailto:williampeters@xxxxxxxxxxxx]Sent: Sunday, December 07, 2003
11:49 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE:
[amibroker] Re: Looping question
Jayson,
After running this code I have
found there are differences for some of the tickers. Do you get the same
result?
<FONT face="Courier New" color=#008000
size=2>//SetBarsRequired(10000,10000);<FONT
size=2> x=<FONT
color=#ff00ff>0<FONT
color=#000000>; for<FONT
color=#000000>( i = 0; i
< BarCount<FONT
face="Courier New">; i++ ) { x = x
+ Volume<FONT
face="Courier New">[i]; }
Filter =
1<FONT
size=2>; <FONT
color=#0000ff>AddColumn( x, <FONT
color=#ff00ff>"LoopVol "<FONT
face="Courier New"> ); <FONT
color=#0000ff>AddColumn( <FONT
color=#0000ff>Cum(<FONT
color=#000000>V), <FONT
color=#ff00ff>"CumVol "<FONT
face="Courier New"> ); <FONT
color=#0000ff>AddColumn( x - <FONT
color=#0000ff>Cum(<FONT
color=#000000>V) , <FONT
color=#ff00ff>"Difference"<FONT
face="Courier New"> );
Regards,William Peters<A
href="">www.amitools.com
<FONT face=Tahoma
size=2>-----Original Message-----From: Jayson
[mailto:jcasavant@xxxxxxxxxxx]Sent: Sunday December 7, 2003 11:42
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker]
Re: Looping question
Thanks
Jitu...... did not mean to forget you :)
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: jtelang
[mailto:jtelang@xxxxxxxxx]Sent: Sunday, December 07, 2003 11:29
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re:
Looping questioni should go from 0 instead of 1, and
-> x = x +Volume;should look like -> x = x +
Volume[i];That should work, but not tried it
myself.Jitu--- In amibroker@xxxxxxxxxxxxxxx, "Jayson"
<jcasavant@xxxx> wrote:> I am trying to get my mind wrapped around
looping could some please explain> to me why the following code does
not reflect the same thing as cum(v)?> > x=0;> >
for( i =1; i <BarCount ; i++ )> > {> > x = x
+Volume;> > }> > plot(x,"Test",5);> >
It "seems" like I am saying " x= the last value of x plus volume" and
that> would continue to increment by each days volume until the last bar.
Of> course that is not happening at all. I am sure I am missing
something> simple...any help appreciated> >
Regards,> JaysonSend BUG REPORTS to
bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|