> How can I get these result using Q? Shoud I use xbar function? How?
> Best regards
> -- > You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group. > To post to this group, send email to personal-kdbplus@googlegroups.com. > To unsubscribe from this group, send email to personal-kdbplus+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/personal-kdbplus?hl=en.
I need that the columns return the highest value in each hour period as found in real time, using as input data current row and older (excluding future data).
The command that you suggest returns the highest value in each hour
period, but it has unwanted prophetic capabilities as since the first
tick in each hour is returned the highest value even if it appears in
the minute 59.
The columns as I need them should contain the highest value as found
in real time using as inputs only the current row and older (former
rows in the table...)
Best regards
Francisco
On Feb 12, 11:57 am, Attila Vrabecz <attila.vrab...@gmail.com> wrote:
> > How can I get these result using Q? Shoud I use xbar function? How?
> > Best regards
> > --
> > You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
> > To post to this group, send email to personal-kdbplus@googlegroups.com.
> > To unsubscribe from this group, send email to personal-kdbplus+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/personal-kdbplus?hl=en.
On Sun, Feb 12, 2012 at 6:58 PM, Francisco <frango...@gmail.com> wrote: > Hello,
> Thanks for your help Attila.
> I need that the columns return the highest value in each hour period as > found in real time, using as input data current row and older (excluding > future data).
> To post to this group, send email to personal-kdbplus@googlegroups.com. > To unsubscribe from this group, send email to > personal-kdbplus+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/personal-kdbplus?hl=en.
Getting the temporal position (tp) of each row in its hourly bar and using that position to compute mmax of the tp rows should return the instant hourly high.
Does that sound more or less right?
I have no idea about how to implement this idea. Please, can anyone comment on this?
On Mon, Feb 13, 2012 at 3:52 PM, Francisco <frango...@gmail.com> wrote: > Perhaps I'm totally wrong but I had this idea:
> Getting the temporal position (tp) of each row in its hourly bar and using > that position to compute mmax of the tp rows should return the instant > hourly high.
> Does that sound more or less right?
> I have no idea about how to implement this idea. Please, can anyone > comment on this?
> To post to this group, send email to personal-kdbplus@googlegroups.com. > To unsubscribe from this group, send email to > personal-kdbplus+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/personal-kdbplus?hl=en.
> update HourlyHighBid:(maxs;BidPrice) fby
> HourlyBar,HourlyHighAsk:(maxs;AskPrice) fby HourlyBar from update
> HourlyBar:(1%24) xbar DateTime from t
> Regards,
> Junan
> On Mon, Feb 13, 2012 at 3:52 PM, Francisco <frango...@gmail.com> wrote:
> > Perhaps I'm totally wrong but I had this idea:
> > Getting the temporal position (tp) of each row in its hourly bar and using
> > that position to compute mmax of the tp rows should return the instant
> > hourly high.
> > Does that sound more or less right?
> > I have no idea about how to implement this idea. Please, can anyone
> > comment on this?
> > To post to this group, send email to personal-kdbplus@googlegroups.com.
> > To unsubscribe from this group, send email to
> > personal-kdbplus+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/personal-kdbplus?hl=en.