Registered User Joined: 3/14/2006 Posts: 78
|
Hello,
I want to look back in time and find all MACD xovers (for example) that ocurred 3 manths ago (for example) so I can examine the charts and see what happened next.
It would be really nice if TC2007 had a way of setting the "active date" for the application such that sorts and EasyScans would be based on that "active date". (I.E. change the meaning of "Today"...) But it appears there is not.
Can I get there via writing a PCF? Can PCFs access specific indicator values on specific days?
I hope I'm being clear.
Thanks!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
There are two distinct ways to use historical data with Personal Criteria Formulas.
Any criteria can be used to scan X number of days back by adding “.XX” where XX is equal to the number of market days past to calculate for. An example of this is (AVGC21.21), which is a 21 day moving average 21 of close, 21 days ago. This use of historical data always refers to the market day XX number of days ago (in this case, 21). If you wish to use a specific date’s data, use the option detailed below.
The other method of using historical data is by specifying a precise date in history to use. For example, (AVGC21’12/31/97’) will provide a 21 day moving average of close for December 31, 1997. In this particular case, December 31 is the last trading day of that specific year. This will not always be the case. Always confirm that the date you wish to use using this parameter was a market day.
You may also wish to review the following:
Visually Backtesting Specific Symbols
-Bruce Personal Criteria Formulas TC2000 Support Articles
|