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

RE: [amibroker] Bugs?-only in my head



PureBytes Links

Trading Reference Links

Thanks William.

This is an attempt to recreate a feature in VectorVest they call QuickTest.

This works fine.



/* This script reports the gain of the stocks in a portfolio*/
/*use Parameters to set number of days*/

Filter=1;
Filter = Ref( C,-1 ) != C;
StartClose = Ref( Close, -Param( "Days", 21, 1, 50, 1 ));
//Gain = Ref (C - StartClose);
AddColumn( C, "Close" );
AddColumn( StartClose, "StartClose" );
AddColumn(C - StartClose, "Gain");
AddColumn((((C-StartClose)/C)) *100, "% Gain");




Next thing I would like to do is add a row with averages for each column for
the entire portfolio.


Thanks for the help.

Rik Rasmussen
stockanalyzer Yahoo Group Moderator
http://groups.yahoo.com/group/stockanalyzer/



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/