PureBytes Links
Trading Reference Links
|
I figured it myself. For those who is interested:
PreClose = TimeNum()>150000.00 AND TimeNum()<160000.00;
Cl = ValueWhen(PreClose,C,1);
--- In amibroker@xxxxxxxxxxxxxxx, "vzhig <zhigulin@xxxx>"
<zhigulin@xxxx> wrote:
> Dear all,
>
> I'm having trouble with identifying yesterday's closing price in my
> intraday strategy. I'm doing it like this:
>
> Cl = ValueWhen(TimeNum()==155900.00, C, 1);
>
> but the problem is that for some stocks/days 15:59 bar is not
present
> and then the last day with 15:59 bar gets referenced.
>
> Daychange = Day() != Ref(Day(), -1);
> Cl = ValueWhen(Daychange, Ref(C,-1), 1);
>
> doesn't fit either because it is influenced by afterhours trading.
>
> Any ideas?
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|