| View previous topic :: View next topic |
| Anyone getting a similar problem? |
| Y = Yes |
|
0% |
[ 0 ] |
| N = No |
|
0% |
[ 0 ] |
|
| Total Votes : 0 |
|
| Author |
Message |
TGWrenn Guest
Joined: 27 Mar 2008 Posts: 22
|
Posted: Sat Mar 20, 2010 10:13 pm Post subject: Last Run Question |
|
|
What exactly is the condition of my Tradestation strategy when TS.G2.Next returns a 1 (last run)?
Is TS.G2 returning the best record?
Or, is the run finished?
What does Tradestation think?
Is there one more record to process?
Or, no more records to process?
I recently added GlobalVariable to my strategy and now I get a Dll error at the end of my optimizations.
Any help appreciated. _________________ TbirdHawwaii |
|
| Back to top |
|
 |
TGWrenn Guest
Joined: 27 Mar 2008 Posts: 22
|
Posted: Sun Mar 28, 2010 1:45 pm Post subject: Extra Record |
|
|
After a lot of testing, I've found that an extra record is returned after the optimization. If I optimize 1:100:1, record 101 is also returned. It also appears the TS.G2.Gen never returns a 1 (lastrun).
I have found that I can test for the last extra record by doing the following:
1. Have a condition that tells the strategy to optimize: TSGOUSE.
2. Check that the strategy is optimizing:
vOptimizing = GetAppInfo(AiOptimizing);
3. If TSGOUSE=true and vOptimizing <> 1 then the extra record is being processed _________________ TbirdHawwaii |
|
| Back to top |
|
 |
|