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

Re: Code help with beginning of day strategy



PureBytes Links

Trading Reference Links

Randy wrote:

>I'm trying to do in simple terms is to start the strategy at the
>beginning of each day. Example:  On a 5 minute chart, buy at the
>close of the 15th bar from the opening of the day.

How about:

If Time[15] = 0930 then buy;

(assuming 0930 is the opening time in your time zone and market).

-- 
  ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
 // +__>   Director of Research and Development
 //  \ 
 // __)    Unicorn Research Corporation -- http://unicorn.us.com