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

Re: Group Moving Average Code



PureBytes Links

Trading Reference Links

>Is there any code (or whatever) to use in TS that would provide
>moving average information through scanning? For example, a
>code that will allow me to track a group of pre-defined stocks
>and determine what percentage of these stocks had a positive(or
>negative) MA, an average where the short term moving average was
>above the long term moving average and heading up (or shorter
>period MA below the longer period moving average and heading down)?

I did something like this once for the Dow 30, storing each stock in
data1, data2, data3, etc.  This works up to 50 stocks.  I had arrays
that kept track of things for each stock, such as moving average, linear
regression slope, and so on.

Not sure how you'd do it if you had more than 50 stocks.  WealthLab
might be a better tool for this.

-Alex