Filter = 1;
AddColumn( Close, "Close", styleLine, IIf( Close < Ref( MA( Close,
25 ), -1 ), colorRed,colorGreen));
AddColumn( Close, "Close " );
AddColumn( MA( C, 25), "Moving Average Value");
AddColumn( Open, "Open " );
AddColumn( High, "High " );
AddColumn( Low, "Low " );
AddColumn( Volume, "Volume " );
AddColumn( DateTime(), "Date / Time", formatDateTime );
AddColumn( ROC( C, 30 ), "Performance");
////////////////////////////////////////////////////////////////
Values = Close < Ref( MA( Close, 25 ), -1 );
Buy = 0; // do not generate signals
AddToComposite( Values, "~RydexCTM", "V" );
Graph0 = Foreign("~RydexCTM", "V");
Im using the Rydex 15 family in the current issue of Stks and Comm.
What I am trying to code is the ROC in the S&P 500 depending on the
number of funds that are < their 25 day moving average.
Any better ideas or help would be greatly appreciated.
Regards,
Chris
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/