| 
 PureBytes Links 
Trading Reference Links 
 | 
Here's a simple intraday AFL:  Buy at open, sell at close:
Buy = Cross(TimeNum(), 093000);
Sell = Cross(160000, TimeNum());
Plot (Buy, "Buy", 3, 1);
Plot (Sell, "Sell", 5, 1);
Short=Sell;  Cover = Buy;
But my backtester (4.70rc1) interprets this as:
Buy at open day 1
Sell at close day1
SELL SHORT AT CLOSE DAY 1 (!)
COVER SHORT AT OPEN DAY 2 (!);
(report below)
In other words, two sells instead of 1 at the end of the day.
What am I doing wrong?
Report:
Trade list Ticker Trade Entry Exit % change Profit Shares Pos. value 
Cum. profit # bars Profit/bar MAE/MFE Scale In/Out 
ER2 Long 3/7/2005 9:52:00 AM
645.2 3/7/2005 4:00:00 PM
644 -0.19% -18.60
-0.19% 15.4991 10000.00 -18.60 369 -0.05 -0.33%
0.50% 0/0 
ER2 Short 3/7/2005 4:00:00 PM
644 3/8/2005 9:50:00 AM
643.3 -0.11% 10.85
0.11% 15.4991 9981.40 -7.75 23 0.47 -0.23%
0.12% 
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 
 |