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

[amibroker] Trying to calculated ROC of the S&P 500 using this exploration/Indicator



PureBytes Links

Trading Reference Links

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