-
What is the difference between wj and wj1?
I have the below code, in which the result of wj and wj1 are exactly the same. Is there an example that wj and wj1 would give different output? From the documentation I can see that the 2 functions are different, but I’m not sure how to create an example to get different outputs. Thanks!
t1:([]sym:3#`ibm;time:07:01:01 07:01:03 07:01:05;price:100 101 105); a:101 103 103 104 104 107 108 107 108; b:98 99 102 103 103 104 106 106 107; t2:([]sym:`ibm; time:07:01:01+til 9; ask:a; bid:b);
c:`sym`time;
w:-2 1+:t1.time;o1:wj[w;c;t1;(t2;(max;`ask);(min;`bid))];
o2:wj1[w;c;t1;(t2;(max;`ask);(min;`bid))];
o1~o2; // 1p;
Log in to reply.