PureBytes Links
Trading Reference Links
|
Tomasz/anyone -
Lets say Im back testing and a position was opened a few bars before
the lastbar and has not been closed.
What happens in the backtester? Does it automatically take the
(current) result of this position into account using the value of
the lastbar, or do I need to close it myself using the value of
lastbar to calculate profit/loss?
Im using this code I found on the site but Im not sure I need to:
barnumber = Cum( 1 );
lastbar = barnumber == LastValue( barnumber );
Sell = Sell OR Lastbar;
Cover = Cover OR Lastbar;
Is this conde redundant, or necessary?
Thanks
Andy
------------------------ Yahoo! Groups Sponsor ---------------------~-->
New Yahoo! Mail Plus. More flexibility. More control. More power.
Get POP access, more storage, more filters, and more.
http://us.click.yahoo.com/Hcb0iA/P.iFAA/46VHAA/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/
|