Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/28/2004 Posts: 15
|
I want to write a formula and have it run for several days. There are a lot of variables and a lot of days that I want it run for. Can I write one formula ((C10>=AVGC20.10*.95ANDC10>=AVGC50.10*.95)AND(OBV10.10>=OBV10.11) and tell TC2005 to run that for several days back or do I have to write ((C10>=AVGC20.10*.95ANDC10>=AVGC50.10*.95)AND(OBV10.10>=OBV10.11)) OR ((C11>=AVGC20.11*.95ANDC11>=AVGC50.11*.95)AND(OBV10.11>=OBV10.12)) OR ((C12>=AVGC20.12*.95ANDC12>=AVGC50.12*.95)AND(OBV10.12>=OBV10.13)) The second way will be a much longer formula but if the same stock appears in all 3 days, it will not be duplicated in the easyscan, right? Is there a maximum length for a formula?
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 4,308
|
You'll have to do it the longer way. There is no facility in the program to write a generic formula and then specify that it be run on various days in the past. You'll have to use the days ago parameters as you have in your longer version above.
There is no limit to the length of a formula (to my knowledge). However, the longer or more complex the formula, the more it could slow your system down, particularly if you plot the formula as a custom indicator on your chart.
- Doug Teaching Online!
|
|
Registered User Joined: 12/28/2004 Posts: 15
|
thanks, are you thinking of implementing a way to write a generic formula and have it run for X number of days back. that would be very helpful.
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 4,308
|
I don't know if something like this is being considered. You might consider posting such a request in our Product Suggestion forum. Those posts are viewed by our development team for their review and consideration.
- Doug Teaching Online!
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
You may enjoy this video;
Backtesting Specific Symbols
- Craig Here to Help!
|
|
Guest-1 |