why not use timeframegetprice function -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com
On 06/09/2007, wel6 <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to use the value of today's open in real-time exploration. > The following code is used to test whether the value is correct or > not. I have yesterday's high right, but have no idea where the number > of today's open coming from. At AA window,range is set at "nlast > qutations, n=1", and "wait for backfill" is checked. Can anyone help > me find out what's wrong with the code? Thanks! > Ken > -------------------------------------------------------------------- > TimeFrameSet(inDaily); > a=H; > TimeFrameRestore(); > b=TimeFrameCompress(O,inDaily); > m=Ref(TimeFrameExpand(a,inDaily), -1); > n=TimeFrameExpand(b, inDaily); > AddColumn(n,"today's open"); > AddColumn(m,"yesterday's high"); > Filter=1; >
