PureBytes Links
Trading Reference Links
|
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
------------------------ 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/
|