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).
This is a very neat approach.
Just one little correction - bar times are end times, so you'd need to use
if Time[15] = 935 then buy;
Or more generally:
if Time[15] = MinutesToTime(TimeToMinutes(Sess1StartTime) + BarInterval) then buy;
Mike Gossland
___________________________
Mike Gossland
info@xxxxxxxxxxxx
www.gossland.com
Tel: (250) 756-3970
Fax: (250) 756-3978
|