PureBytes Links
Trading Reference Links
|
Assuming your tickers trade on every day that the market is open and
for backtesting only as it looks forward for the buy signal
settradedelays(0,0,0,0);
Buy = month()|=ref(month(),3);
Sell = month()|=ref(month(),-3);
Just change the ref values for which days you want either side of
month begin/end
On Tue, 22 Feb 2005 02:51:48 -0000, techsmart <mric@xxxxxxxxxxxxxxx> wrote:
>
>
> I would like to test holding positions for the last 3 and first 4
> trading days of each month. I'm sure this has been coded in AFL
> before. I looked in the AFL library and didn't find this.
>
> I also can see that the date functions are there in AFL to do this
> and if it were just the last 3 and first 4 days of the month, even I
> could code it. But I want to use actual trading days and exclude
> weekends.
>
> Does anyone know if there is code out there for this? Or how it
> would be coded?
>
> ts
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|