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

Re: [amibroker] Advancing Stocks Scan or Exploration


  • Date: Fri, 20 Nov 2009 20:51:04 +0530
  • From: "Prashanth" <prash454.ta@xxxxxxxxx>
  • Subject: Re: [amibroker] Advancing Stocks Scan or Exploration

PureBytes Links

Trading Reference Links

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" <alan@xxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
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
>
>
>



------------------------------------

**** 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

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/