PureBytes Links
Trading Reference Links
|
<SPAN
class=738082620-08022003>Johnny,
<SPAN
class=738082620-08022003>
Since
you can assign calculated data to any standard field in Addtocomposite you could
combine your 2 composites like this where the advancing volume is stored to "H"
and the Declining Vol to "L". You can scan a watchlist or the entire database.
To plot the indicator we simply select the composite (~advol) then run your
calculation . This will result in a fairly "Twitchy" indicator but you
could also smooth the data with an MA........
<SPAN
class=738082620-08022003>
<FONT
color=#000000 size=2>
Buy=1<FONT
color=#282828 size=2>;
Avol=IIf(<FONT
size=2>C>Ref<FONT
size=2>(C,-<FONT
size=2>1),V<FONT
size=2>,0<FONT
color=#0000ff>);
Dvol=IIf(<FONT
size=2>C<Ref<FONT
size=2>(C,-<FONT
size=2>1),V<FONT
size=2>,0<FONT
color=#0000ff>);
AddToComposite(Avol,<FONT
color=#ff00ff size=2>"~advol",<FONT
color=#ff00ff size=2>"H");<FONT
color=#0000ff size=2>
AddToComposite(dvol,<FONT
color=#ff00ff size=2>"~advol",<FONT
color=#ff00ff size=2>"L");
AddColumn(Avol,<FONT color=#ff00ff
size=2>"Advance");<FONT color=#0000ff
size=2>
AddColumn(dvol,<FONT color=#ff00ff
size=2>"Decline");
Plot(<FONT color=#000000
size=2>H-<FONT color=#000000
size=2>L,<FONT color=#ff00ff
size=2>"AD Vol",<FONT color=#0000ff
size=2>IIf(<FONT color=#000000
size=2>H-<FONT color=#000000
size=2>L><FONT color=#ff00ff
size=2>0,<FONT color=#000000
size=2>colorGreen,<FONT
color=#000000 size=2>colorRed<FONT color=#282828
size=2>),2);
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: kailash pareek
[mailto:johnnypareek@xxxxxxxxx]Sent: Saturday, February 08, 2003 2:27
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] total
volume of advance/decline stockhello,I want to
creat ticker for total volume of advance &decline. I tried to code,
which is given
below:-Avol=IIf(ROC(C,1)>0,V,-1e10);dvol=IIf(ROC(C,1)<0,V,-1e10);AddToComposite(Avol,"~avol","X");
AddToComposite(dvol,"~dvol","X"); Is it correct? Can someone help
me?regardsjohnny__________________________________________________Do
you Yahoo!?Yahoo! Mail Plus - Powerful. Affordable. Sign up now.<A
href="">http://mailplus.yahoo.comPost
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
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.
|