Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

one formula for more than one day Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
idlipman
Posted : Monday, February 14, 2005 3:09:57 PM
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?

Doug_H
Posted : Monday, February 14, 2005 3:15:52 PM


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!
idlipman
Posted : Monday, February 14, 2005 3:22:18 PM
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.
Doug_H
Posted : Monday, February 14, 2005 3:41:49 PM


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!
Craig_S
Posted : Monday, February 14, 2005 5:01:02 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
You may enjoy this video;


Backtesting Specific Symbols

- Craig
Here to Help!
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.