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

[amibroker] Ranking Stock Performance Against Index


  • Date: Wed, 24 Feb 2010 03:41:20 -0000
  • From: "Pete H" <dryheat3@xxxxxxx>
  • Subject: [amibroker] Ranking Stock Performance Against Index

PureBytes Links

Trading Reference Links

To be truly honest, I just figured I would try pressing the 'easy' button and post here to see if anyone had coded this already (and was willing to share).
The concept is to take the S$P100 index and use troughbars(), peakbars(), and zig() to create reference points on the index. 

Then use those reference points to compare the relative performance of each stock in the index against the index itself. 

Specifically:
Measure the percentage increase/decrease, ROC(), of the index from one peak to the next trough (and vice-versa). Then use the same peak and trough of the index to measure the percentage increase/decrease of an individual stock. The result is to compare each stock's performance to the index as the index is hitting pivot highs and lows. 

Simple enough. I'll surely be able to figure this out on my own but it sure would be nice if someone could save me a bit of elbow grease.

I figure the barindex() function will be a useful tool for this but haven't worked out the details.

  Pete  :-)



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

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