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

Re: Time statement



PureBytes Links

Trading Reference Links

> Why does the current code not buy the high between 9 AM and 10:30 AM?
>
> If currenttime > 9000 and currenttime < 1030 then
>    Buy H + 1 point stop;
> End;

Use Time>0900 and Time<1030, this uses the tick time rather than the
current time. Then it should buy the next bar at current bar's H+1
point. So if the current bar's H=1038.00, then it'll buy the next bar on
a stop if the prices reaches 1038.01 (S&P example).  - Doug Deming

--
--------------------- Doug Deming, IEC --------------------
Investment Engineering, Corp.-Omega Research "Solution Provider"
       * * * Visit our Investment Labs online! * * *
WWW Site: http://www.InvestLabs.com   PHONE: (808)875-4558
Email:     doug@xxxxxxxxxxxxxxxxxxx      FAX: (808)276-4557
-----------------------------------------------------------