KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Solutions Financial chart Re: Financial chart

  • davidcrossey

    Member
    April 6, 2022 at 12:00 am

    A few things here;

    1. You won’t see any bars as your open/high/low/close prices are all the same value. In your test data you need a range of prices over the course of a day (for example), then you would take the first/max/min/last (OHLC) per date
    2. The documentation appears to be a little misleading with “Time” column. It should be a timestamp.

    Here is a mock example I’ve just put together and a data source for reference

    Data Source

    n:10000; t:([]Date:n?.z.p;price:n?100f;Volume:n?100f); delete price from update Open:first price, Close:last price, High:max price, Low:min price, Volume:sum Volume by `date$Date from t

    Hope this helps