PureBytes Links
Trading Reference Links
|
--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx>
wrote:
> TimeReset=(TimeNum()>=93000 AND TimeNum()<=120000) OR (TimeNum() >=
140000 AND TimeNum() <= 160000);
>
> ----- Original Message -----
> From: netbull2000
> To: 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
>
>
Thanks a lot. I appreciate that. It did the trick.
Regards,
Wally
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/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/
|