kdb+ and q
Q+A on all things kdb+ database and the q language
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Need to set values inside an array, based on values in another.

Hi, I have z: 199 6 # 0;h: til 199x: 1 4 3 5 0 4 3 2 2 0 2 2 4 2 2 2 2 1 3 1.... (199 values, 0 through 5)I've done the following hh: h,'x to get 0 01 12 23 14 35 36 37 18 29 310 311 112 113 214 415 216 517 318 119 120 121 1..I'd like to set values i...

Krishna by New Contributor
  • 1149 Views
  • 5 replies
  • 0 kudos

Heikin-Ashi

Hello I have a table with several instruments trading data like this:instrument granularity time open high low close----------------------------------------------------------------------------------------AUD_USD D 2015.08.25D21:00:00.000000000 0.7127...

Francisco by New Contributor
  • 730 Views
  • 2 replies
  • 0 kudos

Any quick ways to glue tables side by side?

Hi there,I am wondering that if there is a verb or something that could glue two tables side by side? I notice that some verbs allow to join columns with different column names side by side, but fail to do that when the column names are same. Here is...

xinyu_gai by New Contributor
  • 1138 Views
  • 4 replies
  • 0 kudos

What does the following snippet do?

I have defined : n:25000;g:{1+(+\x)bin?y}what does this line do? "acgtBDHKMNRSVWY"g[.27 .12 .12 .27,10#.02]3*n; and this one:"actg"g[.3029549426680 .1979883004921 .1975473066391]5*nI'm new to k and q, so please excuse this beginner-level query. Thank...

Krishna by New Contributor
  • 1136 Views
  • 4 replies
  • 0 kudos