Forum Replies Created

  • biggorilla

    Member
    May 2, 2022 at 12:00 am in reply to: Python not working in Q

    Hi!

    Yes, I do mean by using Conda. Thanks!

  • biggorilla

    Member
    April 28, 2022 at 12:00 am in reply to: Python not working in Q

    Hi! Thanks for the reply. I installed Python 3.8 and then installed embedPy and JupyterQ together following the instruction guide using pip.

    What does it mean to install Python “manually”? How can I install it automatically? That sounds much easier.

    Thanks!

  • biggorilla

    Member
    April 20, 2022 at 12:00 am in reply to: How to remove or add items from a list

    Hello and the greatest of thanks to the both of you. Lots of useful info. Chin chin.

     

    I have warped headfirst into my next problem which is using these shiny new lists in a conditional.

    I want to compare these two lists, when one item of the same position of each list is greater than the other, I want to put it into a new list with some output. I am encountering a ‘mismatched type’ error despite both lists only containing floats.

    A:$[L1>L2;1;2]

    Here’s the structure I am using. Please help! My knees are weak.

    Thank you

     

  • biggorilla

    Member
    April 20, 2022 at 12:00 am in reply to: Python not working in Q

    Hello, thanks for the reply.

    I tried this in command prompt and also Q and neither understood the command.

    I manually added “C:UsersBanaconda3bin” to my environment PATH, but this didn’t help either.

    Thanks!

  • biggorilla

    Member
    April 20, 2022 at 12:00 am in reply to: Python not working in Q

    I am using Windows, by the way

  • biggorilla

    Member
    April 18, 2022 at 12:00 am in reply to: Putting CSV data into a chart & other questions

    In keeping with the theme of laying out all of my problems here, my current issue is installing the machine learning stuff. The statistics things in there look like they should address my above problem.

    l ml/ml.q
    q)'os
    [8] python -c "print('.'.join([str(getattr(__import__('sys').version_info,x))for x in ['major','minor']]));"2>nul <nul

     

    Could this be related to this error I got when installing the conda ML stuff?:

    (base) C:UsersB>conda install --file requirements.txt
    Collecting package metadata (current_repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    Collecting package metadata (repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    
    PackagesNotFoundError: The following packages are not available from current channels:
    
    - sobol-seq

     

    Thanks

  • biggorilla

    Member
    April 18, 2022 at 12:00 am in reply to: Putting CSV data into a chart & other questions

    Hello again, I had to manually set python to install stuff using v3.8 instead of 3.9 and manually install sobol-seq because for some reason it didn’t work through anaconda. Here’s my current problem:

    q)l ml/ml.q
    'libpython
    [6] C:qp.q:14:
    .P.env:not H~P;
    .p:(`:./p 2:(`init;3))[L;H;B]]
    ^
    q.p))l p.q
    'libpython
    [11] C:qp.q:14:
    .P.env:not H~P;
    .p:(`:./p 2:(`init;3))[L;H;B]]
    ^
  • biggorilla

    Member
    April 17, 2022 at 12:00 am in reply to: Putting CSV data into a chart & other questions

    I’ve found a nice way to plot the data using a scatter chart. Cool!

    Here’s my current situation. I have a technical indicator which I suspect could be predictive of price. I would like to take the output of the indicator and measure the relationship it has with future price. Right now I have the immediate relationship, that is, the values of both at the same point in time. I want to be able to compare the indicator with future price, but test a large number of durations between the indicator output and the price. For example, from 1 period to 500 periods. So, i’ll use notation i’m familiar with where square brackets indicate historic periods:

    the relationship (correlations or whatever) between indicator[0] and close[til 500]

    I want to determine which close period in the future has the highest correlation with the indicator output from a set time, and then run this test as many times as possible over each series/set. What would be some good ways to collect this data? Is there a way to visualize it? Anything info or suggestions in this area is appreciated. Thanks!

    I hope that makes sense!

  • biggorilla

    Member
    April 17, 2022 at 12:00 am in reply to: Putting CSV data into a chart & other questions

    Hi! Thanks for the reponse.

    I put that into developer, how can I access it in dashboards? Trying to use myCSV gives an error like it’s unfound.

    I tried to run the first line of this code in a Dashboards widget and it returned this:

    Error:
    access: /q/spy.csv

    What’s different about Q code in a widget of Dashboards and in Developer? Do I need to setup a connection between the two before I do this? If so, how?

    I can’t access any of my local files in Dashboards either. I suspect these are the same issue?

    Thanks

  • biggorilla

    Member
    April 17, 2022 at 12:00 am in reply to: Putting CSV data into a chart & other questions

    I can access my local files in Dashboards and put them into some charts! But I am having trouble performing any actions on them from this point on.

  • biggorilla

    Member
    April 16, 2022 at 12:00 am in reply to: Putting CSV data into a chart & other questions

    Hi Leah S!

    I’m using Dashboards. I don’t know whether that’s Direct or not.

    I have been able to make some progress with:

    myCSV:("PFFFFF";enlist csv) 0: `$":/q/spy.csv"
    
    
    c:myCSV[`Line] where myCSV[`Line] <> 0
    
    close:myCSV[`close] where myCSV[`Line] <> 0
    
    
    dc:deltas c
    
    dclose:deltas close
    
    
    dc2:dc[1+til 6669]
    
    dclose2:dclose[1+til 6669]
    This takes the data I want; two columns and only where both contain the data I want. However, I haven’t figured out how to access these data in Dashboards.
    I tried to save them to csv files using the ‘set’ function, but the files are corrupt. Using ‘Save’ gave a ‘mismatched type’ error. I was trying to do this because I know how to use them. I have been trying out this code in Developer.
    I tried to put the above code into one line in an attempt to use the data in Dashboards, but couldn’t figure it out. I’m not sure if that’s the right next step.
  • biggorilla

    Member
    April 10, 2022 at 12:00 am in reply to: Unable to run/install Q Developer

    Hello again, today I think the main issue is the following, from: “https://code.kx.com/q/learn/install/“, step 5, edit profile, the steps are:

    In the command shell issue the following commands:

    1. setx QHOME "C:q"
    2. setx PATH "%PATH%;C:qw64"

    Below is my result. It fails at step 2:

    C:WINDOWSsystem32>setx PATH “%PATH”;C:qw64″

    SUCCESS: Specified value was saved.

    C:WINDOWSsystem32>q
    ‘q’ is not recognized as an internal or external command,
    operable program or batch file.

    C:WINDOWSsystem32>

  • biggorilla

    Member
    April 10, 2022 at 12:00 am in reply to: Unable to run/install Q Developer

    Adding a port progressed me to the next step!

    q)l C:/developer/launcher.q_
    [developer] version 1.5.1
    
    [developer] [!] couldn't validate install, proceeding with startup...
    [developer] loading...
    [developer] failed to start Kx Developer: server.init
  • biggorilla

    Member
    April 10, 2022 at 12:00 am in reply to: Unable to run/install Q Developer

    I am in!

    I had to set the port to 40000!