Hello,

Use Range: All quotations 
and then filter out signals outside given range

For example:

StartYear = Optimize("StartYear", 2007, 1970, 2007, 1 );

InRange = Year() == StartYear;
OutRange = Year() != StartYear;

Buy = your original buy rule
Sell = your original sell rule

Buy = Buy AND InRange;
Sell = Sell OR OutRange;

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "arievt" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, December 12, 2007 9:21 PM
Subject: [amibroker] Optimizing the Date Range


> Hey Everyone!
> 
> Great software, real challenge to learn but it's very valuable. I have 
> a question for you guys... how do you optimize the date range? Like 
> instead of placing a static number like testing the last two months, 
> how can I optimize a date range that would of produced the best results?
> 
> Thanks!
> 
> Arie
> 
> 
> 
> 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
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>

Reply via email to