PureBytes Links
Trading Reference Links
|
Use
Cross(TimeNum(),190000)
On Sun, 23 Jan 2005 16:12:42 -0000, qweds_560 <qweds_560@xxxxxxxxx> wrote:
>
>
> Hi all,
>
> i am using 5 sec bars as the base periodicity in the backtester. I
> have written some code to close all intraday trades at 1900 (7pm):
>
> Sell=SellPrice==bestlong OR TimeNum()==190000;
> Cover=CoverPrice==bestshort OR TimeNum()==190000;
>
> However, if there is no 190000 bar (there were no quotes in that 5
> sec period), then the back tester does not close trades at 190000.
> (It closes them at some other point). I would like it to close
> trades at closest next interval e.g. 190005 or even the previous
> closest say 185955.
>
> Any help would be appreciated.
>
> Sam
>
>
> 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 --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/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/
|