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

[amibroker] Progaming Help MAAD indicator


  • Date: Fri, 20 Nov 2009 16:28:43 -0000
  • From: "Richard" <areehoi@xxxxxxxxx>
  • Subject: [amibroker] Progaming Help MAAD indicator

PureBytes Links

Trading Reference Links

An article in Futures Magazine about the MAAD indicator is most interesting. The author is Robert McCurtain. Here's a brief outline:  Smart money is in the market for the most liquid and highly capitalized securities available. Those funds must go into and out of the market via large blocks of stock. It isn't practical for a multi-billion dollar hedge, or mutual fund, to attempt to buy $100 million worth of a low-cap stock selling for $2 a share. On a given trading day, the 20 most actively traded issues on the NYSE can constitute 30% to 50% of composite exchange volume. It follows that one should follow the volume leaders when creating a gauge of the internal strength or weakness of the market.  Once the volume leaders are recorded, a simple tally of the 20 most active positive issues vs. the negative issues will yield a net number that can be added to a classic advance/decline line. 
This advance/decline line is called the most actives advance/decline line (MAAD). To implement simply take the TOP 20 of the NYSE Most Actives (by volume) each day, or each week, and count the number of up issues and then the number of down issues. Unchanged issues are not counted. Then net the ups against the downs and plot that net difference into a cumulative advance decline line. That's it. There's no more.
So far so good ? now how to implement?  I modified the (below) an old ROC  "exploration' which can manually find  the top 20 NYSE stocks, by volume and the Up/Down issues.  How can I "automate this to give the results for only the top 20 stocks by volume and likewise the UP/Down number involved?? And to do it historically (going back a couple of years or more) ???  Any ideas will be most appreciated.

Dick H

basis = C; // ema(C, 9);

ROC20 = basis / Ref(basis, -20) * 100 - 100;
ROC62 = basis / Ref(basis, -62) * 100 - 100;
ROC125 = basis / Ref(basis, -125) * 100 - 100;
ROC250 = basis / Ref(basis, -250) * 100 - 100;
Difference = (Close-(Ref(Close,-1)));

result = (ROC20 + ROC62 + ROC125 + ROC250)/4;
AddTextColumn( FullName(), "FullName" );
AddColumn (Close, "Close",1.2);
AddColumn (Ref(Close,-1), "Close-1",1.2);
AddColumn(Difference,"CvsYDayC", 1.2, IIf( ROC(C, 1 ) >= 0,colorDarkGreen, colorRed));
AddColumn(ROC20, "ROC1Mo%", 1.2);
AddColumn(ROC62, "ROC3Mo%", 1.2);
AddColumn(ROC125, "ROC6Mo%", 1.2);
AddColumn(ROC250, "ROC1YR%", 1.2);
AddColumn(result, "Result%", 1.2);
AddColumn(Volume, "Volume", 1.0);
AddColumn(MA(V,10),"MA(V10*100",1.0);
Filter = 1; // dummy*/




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

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