[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: Formula check



PureBytes Links

Trading Reference Links

Clyde,

Load into AA....select apply to....all quotations  ....use filter....select
Watchlist that contains the Dow30 tickers

click scan....

//Composite ADV /DECL DOW30

Advv = IIf(C>Ref(C,-1),V,0);//advance volume

Decv = IIf(C<Ref(C,-1),V,0);//Declining volume

AdvI = IIf(C>Ref(C,-1),1,0);//advancing issues

DecI = IIf(C<Ref(C,-1),1,0);//declining issues

Unchanged=IIf(C == Ref(C,-1),1,0);//unchanged issues

NewHighs=IIf(H > Ref(H,260),1,0);//New highs

Newlows=IIf(L < Ref(L,260),1,0);//new lows

AddToComposite(NewHighs,"~DOW30NewHighs","h");

AddToComposite(NewLows,"~DOW30NewLows","l");

AddToComposite( Advv, "~DOW30AdvV", "x",1);

AddToComposite( DecV, "~DOW30DecV", "x",1);

AddToComposite( AdvI, "~DOW30AdvI", "x");

AddToComposite( DecI, "~DOW30DecI", "x");

AddToComposite( Unchanged,"~DOW30Unchanged","x");

Buy=0;



//For Indicator builder

Difference = Foreign("~DOW30AdvI", "x")-Foreign( "~DOW30DecI", "x")/
(Foreign("~DOW30Unchanged","x")+ 1 );

DiffSqrt = IIf( Difference > 0, sqrt( Difference ), - sqrt( - Difference )

);

ADLine1 = Cum( DiffSqrt );

Plot(ADLine1,"adline",colorRed,styleLine);


Anthony
----- Original Message -----
From: "nb9trade" <clyde@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, January 15, 2004 6:07 AM
Subject: [amibroker] Advance Declone Line


> Is it possible to make an advance decline line using Amibroker?
>
> If it can be done, can it be done, for just one watch list like the
> Dow 30?
>
> Does anybody know how to do it?
>
> Thanks
>
> Clyde
>
>
>
>
> 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
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
>  http://groups.yahoo.com/group/amibroker/
>
> To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> Your use of Yahoo! Groups is subject to:
>  http://docs.yahoo.com/info/terms/
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.560 / Virus Database: 352 - Release Date: 1/9/2004


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 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/amibroker/

To unsubscribe from this group, send an email to:
 amibroker-unsubscribe@xxxxxxxxxxxxxxx

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/