PureBytes Links
Trading Reference Links
|
I found this code posted a while ago by TJ that works fine
for closing trades at end of day as long as Timenum() corresponds
to value.
TimeNum() == 160000;
I've modified to include my own conditions and it still works fine.
Sell = myconditions ;
OR TimeNum() == 160000;
Problem I have is that final bars are not all identical and
some print final intraday bar starting at 151500 while other tickers
print final bar for day at 130000. I could probably modify to include
all permutations but I was wondering if there's a simple way just to
close all positions at start of final bar for the day regardless of
whether final bar printed at 3:15 pm or 1:00 pm or any other final
value for the day. (Currently using 15 min bars)
Thanks & Regards,
Dean H.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|