[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] intraday time control



PureBytes Links

Trading Reference Links

hi,
 
i usually use TimeNum()
 
here an example:
 
starttime = 093000;
endtime = 160000;
 
timearray = TimeNum() >= starttime AND TimeNum() <= endtime;
 
Buy = (ROCma4 > 0 AND C < MA2) * timearray;
Short = (ROCma4 < 0 AND C > MA2) * timearray;
in your case it would be:
 
 
Buy =
Cross(A, B) AND timenum() <= 122900;
 
etc.
 
Ed 
 
 
 
----- Original Message -----
Sent: Sunday, January 25, 2009 7:39 PM
Subject: [amibroker] intraday time control

I need a little help in defining intraday time for trading control.
 
I want to prevent entries after 12:29 and exit positions after 12:44.
 
This is what I have tried so far and it does not work:  (conceptual example)
 
time = Now(4);
Buy =
Cross(A, B) AND time <= 1229;
Short =
Cross(B, A) AND time <= 1229;
Sell = Cover =
time >= 1244;
 
Cheers, Sid

__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___