PureBytes Links
Trading Reference Links
|
hello jayson,
Thank you very much for your reply. I'll give it a try to-day.
:))
johnny
--- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
>
> Johnny,
>
> 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........
>
>
> Buy=1;
> Avol=IIf(C>Ref(C,-1),V,0);
> Dvol=IIf(C<Ref(C,-1),V,0);
>
> AddToComposite(Avol,"~advol","H");
> AddToComposite(dvol,"~advol","L");
>
> AddColumn(Avol,"Advance");
> AddColumn(dvol,"Decline");
> Plot(H-L,"AD Vol",IIf(H-L>0,colorGreen,colorRed),2);
>
>
>
>
> Jayson
> -----Original Message-----
> From: kailash pareek [mailto:johnnypareek@x...]
> Sent: Saturday, February 08, 2003 2:27 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] total volume of advance/decline stock
>
>
> hello,
> 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?
>
> regards
> johnny
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> 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.
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 http://docs.yahoo.com/info/terms/
|