Strategy working slower than other
Author: gbullr
Creation Date: 3/7/2011 9:51 PM
profile picture

gbullr

#1
The following strategy compiles fine. When I run a backtest on dataset it takes about 10x as long to spit out and answer than my other ones yet it does not seem that complex.

Thoughts? Improvements? Thanks

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Here's your problem:
CODE:
Please log in to see this code.

And here's the fix:
CODE:
Please log in to see this code.
profile picture

gbullr

#3
Tks.

profile picture

gbullr

#4
I have the same problem w/ this one even though I have not committed the same mistake as I have on the one above. Thoughts/Help?

Thanks.

CODE:
Please log in to see this code.
profile picture

Eugene

#5
For sure, it is a different, unrelated problem.

The more clearly you identify the key components of your environment as per this checklist and describe the problem, the more effective will be our help.
profile picture

Cone

#6
After creating a symbol for ^STOXX in a Y! DataSet, the script runs pretty fast for me (about 200msec on 2500 bars).
profile picture

Eugene

#7
Good hint Robert, that might be another case of synchronicity in the form of a previously resolved issue (here; post by wbzhang dated 5/17/2011 3:54 PM).
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).