Herman,
I haven’t thoroughly checked the results of this and this won’t show what you’d for the value in the AA Optimization list …
But it should do the job …
BegTime = 93000;
EndTime = 155900;
IncTime = 500;
j = -1;
for (i = 1; i < 999; i++)
{
if (i == 1)
TheTime[i] = BegTime;
else
{
TheTime[i] = TheTime[i-1] + IncTime;
TheMin = TheTime[i] - int(TheTime[i] / 10000) * 10000;
if (TheMin > 5900)
TheTime[i] = TheTime[i] + 4000;
}
if (TheTime[i] > 155900)
i = 99999;
else
j = j + 1;
}
StartTimeX = Optimize("Start Time", 0, 0, j, 1);
StartTime = TheTime[j];
Fred
Need more Intelligence in Your Optimizations ?
http://www.amibroker.org/userkb/category/trading-systems-development-tools/intelligent-optimization/
I am using the free version of SPAMfighter for private users.
It has removed 25 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!
|