You already have the idea of adding the date to the buy statement. For buy signals that occur only for April 2005 it would be
Buy=BuyConditions and month()==4 and year()==2005; -- Cheers Graham AB-Write >< Professional AFL Writing Service Yes, I write AFL code to your requirements http://e-wire.net.au/~eb_kavan/ab_write.htm On 3/10/06, ianjw2 <[EMAIL PROTECTED]> wrote: > I want to backtest several systems against a specific timeframe. > > i.e. All buy triggers that occur for April 2004. > > > Buy=Buy condition + [ ....April 2004....] > Sell=Sell condition > [ .... whenever signal exits ...] > > I have created a list of trigger signals for the particular time period > I want, but if, within the backtester, I increase the parameters to > allow for the triggered positions to exit, then I get extra buy > signals for my selected symbols for that entire period. [April > 2004 ... dec 2005]. It would seem to me that the system code needs a > time frame included. This I don't know how to do. > > Any generous souls out there who can help me out? > > Ian > > > > > > > > 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 other support material please check also: > http://www.amibroker.com/support.html > > > Yahoo! Groups Links > > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Try Online Currency Trading with GFT. Free 50K Demo. Trade 24 Hours. Commission-Free. http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM --------------------------------------------------------------------~-> 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 other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
