Thanks Graham, I'm new to AFL, but I've done some coding..... would you loop through the stocks collection, then for each stock, would you then loop through the quotations and update as necessary according to your formula? Or is there some sort of bulk array command for this?
- dman --- In [email protected], Graham <[EMAIL PROTECTED]> wrote: > > You could try this for each price (OHLC) > > O = iif(V==0, valuewhen(V>0,C), O); > > > -- > Cheers > Graham > AB-Write >< Professional AFL Writing Service > Yes, I write AFL code to your requirements > http://www.aflwriting.com > > On 11/02/07, Prashanth <[EMAIL PROTECTED]> wrote: > > > > Why not delete the offending quotes since these are a waste anyway? > > > > Cheers > > > > Prashanth > > > > > > ----- Original Message ----- > > *From:* datamanoz <[EMAIL PROTECTED]> > > *To:* [email protected] > > *Sent:* Sunday, February 11, 2007 10:45 AM > > *Subject:* [amibroker] Clean up zero price quotes > > > > I have a significant amount of historical data which has zero values > > for OHLC. This was present in the source data that zeroed prices when > > volume was zero. > > > > I would like to set these zero OHLC quotes to the previous non- zero > > values. I'm sure it can be done in AFL but can't quite figure it out > > and would appreciate any help. > > > > > > >
