[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] More simple backtesting questions



PureBytes Links

Trading Reference Links

Try 
Sell = Timenum()==yourtime and Datenum()=yourdate
I might be able to be more specific with more detail of the times etc you
want to close positions


Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia 

-----Original Message-----
From: the_real_redleg [mailto:james.hall3@xxxxxxxxxxx] 
Sent: Thursday, 16 October 2003 4:20 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] More simple backtesting questions


Thanks to Graham and Yuki for answering my previous question! :)

Is there an AFL command for "close all open positions at this time?" 
I'm backtesting FOREX (EUR/USD)5 minute charts for specific time 
periods during specific days. But at the end of each time period I 
would like to close all open positions. 

Also, how can I set the backtester so that all trades are 1 lot (for 
EUR/USD that means equivalent $100,000 USD per trade.) I have 
entered 100000 in the "set round lot size" function, but it appears 
to trade multiple lots if the current ballance permits. How can I 
limit it to 1 lot only for all trades?

Thanks!

James




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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


------------------------ 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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/