Maybe something like this... MyTime = TimeNum(); Buy = Cross( RSI( 14 ), 30 ) AND MyTime >= 100000 AND MyTime <= 143000; Sell = Cross( 70, RSI( 14 ) ) OR MyTime == 144500; Short = Cross( 70, RSI( 14 ) ) AND MyTime >= 100000 AND MyTime <= 143000; Cover = Cross( RSI( 14 ), 30 ) OR MyTime == 144500;
----- Original Message ----- From: "McGuyVr70" <[email protected]> To: <[email protected]> Sent: Thursday, January 15, 2009 12:18 PM Subject: [amibroker] Re: Trading during 10 and 3 > Thank you for the reply. > > What if I am already short? I will need to Cover(purchase). > > > > --- In [email protected], "Steve Dugas" <sjdu...@...> wrote: >> >> Hi - Sounds like the TimeNum() function is what you want, you could > add it >> as a trade condition, something like... >> >> MyTime = TimeNum(); >> Buy = Cross( RSI( 14 ), 30 ) AND MyTime >= 100000 AND MyTime <= > 143000; >> Sell = Cross( 70, RSI( 14 ) ) OR MyTime == 144500; >> >> Steve >> >> ----- Original Message ----- >> From: "McGuyVr70" <dr...@...> >> To: <[email protected]> >> Sent: Wednesday, January 14, 2009 11:17 PM >> Subject: [amibroker] Trading during 10 and 3 >> >> >> >I want to backtest a system, lets say it'a MA system. When > backtesting >> > it I want to wait until 10am before entering into a position and > only >> > enter a position if it is signaled after 10. I also want to close > all >> > open positions at 2:45. >> > >> > Could someone please direct me to where I could find more > information >> > on coding these time restrictions? I am not sure what to search > for. >> > >> > Thanks for any help. >> > Dan >> > >> > >> > ------------------------------------ >> > >> > **** 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 >> > >> > ********************************* >> > Yahoo! Groups Links >> > >> > >> > >> > >> > > > > ------------------------------------ > > **** 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 > > ********************************* > Yahoo! Groups Links > > > >
