timestored / pulseui

Real-time interactive database applications
https://www.timestored.com/pulse/
Other
54 stars 6 forks source link

need to sort table else label appears wrong end #267

Open ryanhamilton opened 1 week ago

ryanhamilton commented 1 week ago
PI:acos -1f;
// Cauchy distribution simulator
rcauchy:{[n;loc;scale]loc + scale * tan PI * (n?1.0) - 0.5};
n:20000; // Number of data points
// Trade table with Cauchy distributed price series
trade:([] time:09:00:00.000+asc 20000?(15:00:00.000-09:00:00.000);
          sym:`AAA;
          price:abs 100f + sums rcauchy[20000;0.0;0.001] );
`time xdesc trade

WIthout desc it goes:

image