PureBytes Links
Trading Reference Links
|
Hi,
If you mean that for each symbol tested, you cannot allow a Buy before
that particular symbol has had at least 2 years of history, then you
can add logic to your buy condition to that effect.
e.g.
Assuming 252 trading days/year (USA markets), you can include a
condition that at least 252 * 2 = 504 days have passed.
Try something like the following (untested) code which is assuming EOD
data:
History = Cum(1);
Buy = History >= 504 AND ...; // fill in your buy logic here.
Mike
--- In amibroker@xxxxxxxxxxxxxxx, "tickhillblade" <tickhillblade@xxx>
wrote:
>
> Hi all,
>
> I am a new user of Amibroker and I am trying to backtest a system I
> have thought about for many years but have not had any software to
> perform this before last week.
>
> I have a problem and am looking for some help.
>
> Due to different symbol start dates I need to generate the buy or
sell
> signal after a two year period.
>
> i.e. AZN.L data starts on 01/01/2003, the first transaction cannot
be
> before 01/01/05. Whilst I can manually set this in the analyser for
> each share I would like to automate it using AFL.
>
> All help would be much appreciated.
>
> Bill
>
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL 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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|