PureBytes Links
Trading Reference Links
|
Here is the code, amended with Al Venosa's help:
BuyStop=Ref(H,-1); SellStop=Ref(L,-1);
BuyPrice=Max(BuyStop,O);
CoverPrice=Max(BuyStop,O);
ShortPrice=Min(SellStop,O);
SellPrice=Min(SellStop,O);
PositionSize=4000;
Buy=Cross(Ref(PDI(14),-1),Ref(MDI(14),-1));
Short=Cross(Ref(MDI(14),-1),Ref(PDI(14),-1));
Sell=Short;
Cover=Buy;
The Backtester enters the trade half the time on the previous day's
high or low as planned, the rest of the time on the CURRENT day's
high or low instead. No gaps are involved. Can anyone tell me what
I'm doing wrong?
Paolo
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/
|