[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: OptimizingTime(), anyone?



PureBytes Links

Trading Reference Links

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!
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___