PureBytes Links
Trading Reference Links
|
TimeReset=(TimeNum<FONT
size=2>()>=93000
AND TimeNum<FONT
size=2>()<=120000<FONT
size=2>) OR (TimeNum()
>= 140000 AND
TimeNum() <=
160000<FONT
size=2>);
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=netbull2000@xxxxxxxxx
href="">netbull2000
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Sunday, June 08, 2003 12:41
PM
Subject: [amibroker] Time Restriction
code... is it OK?
I want to restrict the trades in my system to the hours
between the open and 12:00 and then from 14:00 till the close.Here
is the condition for opening new trades:TimeRest=((Cross( TimeNum(),
140000 ) OR Cross(120000, TimeNum())));For the long trades I
have:Buy = Cross( Close, SAR()) AND TimeRest;For the short trades
I have: Short = Cross( SAR(), Close) AND TimeRest;And this somehow
does not work as it should, it throws out a huge number of
trades.Any idea why this is wrong? And how to do this
right?TIA,Wally
Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
<BLOCKQUOTE
><FONT
face="Courier New">---Outgoing mail is certified Virus
Free.Checked by AVG anti-virus system (<A
href="">http://www.grisoft.com).Version: 6.0.488
/ Virus Database: 287 - Release Date: 6/5/2003
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|