Hello,

If you are looking to get the figure of Advancing Stocks (stocks that have 
closed above yesterday's close) and Declining Stocks, you could use Add to 
Composite to create a ticker so that you can co-relate today's figure with 
historical figure.

To do this, just place the following in a AFL and hit Scan (All Symbols, All 
Quotations). When the scan finishes, you should be able to get 2 tickers for 
Advancing, Declining stocks.

Filter = 1;
// ==================== Adv Issues/Decliners==============
AddToComposite(IIf(Close - Ref(Close, -1) > 0, 1, 0), "~Adv", "X" );
AddToComposite(IIf(Ref(Close, -1) - Close > 0, 1, 0), "~Dec", "X" );

Cheers

Prashanth




----- Original Message ----- 
From: "Alan Northam" <[email protected]>
To: <[email protected]>
Sent: Friday, November 20, 2009 20:30 PM
Subject: [amibroker] Advancing Stocks Scan or Exploration


>
> I am new to writing Scans and Explorations.  Infact I don't know if I
> want a Scan or an Exploration so I hope that you all will be patient
> with me.
>
> I want to create a Scan or Exploration (which ever is the most proper)
> to determine how many stocks are still advancing in my database.
> However, I don't have a clue as to how to write the code.  Can someone
> please provide this code for me so that I can study it and learn from it?
>
> Thanks!
> Alan
>
>
>
> ------------------------------------
>
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> Yahoo! Groups Links
>
>
>

Reply via email to