Donate to Remove ads

Got a credit card? use our Credit Card & Finance Calculators

Thanks to Wasron,jfgw,Rhyd6,eyeball08,Wondergirly, for Donating to support the site

Price Correlation Matrix Software

Discussions regarding financial software
ignotus20
Lemon Pip
Posts: 53
Joined: April 24th, 2020, 2:38 pm
Has thanked: 30 times
Been thanked: 9 times

Price Correlation Matrix Software

#623263

Postby ignotus20 » October 26th, 2023, 4:38 pm

I'm trying to do some price correlation analysis on various UK-based stocks, funds and ETFs. I have Sharepad which has facility to add a single instrument to base a correlation analysis on, see here for more: https://improvinginvestor.co.uk/approac ... -analysis/

This is OK, but it's time consuming to have to perform this on multiple tickers. I found an article which describes a Python script that is exactly what I'm looking for: https://medium.com/analytics-vidhya/how ... 32f8cb5b50

It's a good while since I've done any coding, however (and very little with Python - I don't have an interpreter or IDE installed etc.). Further, this appears to depend on Yahoo price data, which I'm not sure is available any longer. Does anyone know of an off-the-shelf app which will produce something similar? Ideally Windows or web-based tools and it needs to support UK instruments.

Urbandreamer
Lemon Quarter
Posts: 3192
Joined: December 7th, 2016, 9:09 pm
Has thanked: 357 times
Been thanked: 1053 times

Re: Price Correlation Matrix Software

#623277

Postby Urbandreamer » October 26th, 2023, 5:24 pm

ignotus20 wrote:It's a good while since I've done any coding, however (and very little with Python - I don't have an interpreter or IDE installed etc.).


Well I'd start by installing python.
For me this entailed (because I did it yesterday for the youtube thread to make youtube-dl):

sudo apt install python
Then I'd examine the HYPTUSS LibraOffice python script used to get price data.

As I suspect that you are a Windows user, the options are to install WSL which would allow you the full extent of linux tools and software, or you could just just install python.
https://www.howtogeek.com/197947/how-to ... n-windows/
You might need LibraOffice to examine the python macros in HYPTUSS.
https://www.libreoffice.org/
https://lemonfoolfinancialsoftware.weeb ... op-up.html

I don't do enough python to bother with an IDE. Indeed I'd be tempted to initially start using LibraOffice python script macros if I had python examples.

However free IDE's are available.
https://opensource.com/resources/python/ides
For my purposes the command line and a simple text editor would do the job.

Of course this is just one method.

You could use curl (already installed on windows) to scrape the prices.

You could process the data using something like octave. Great if you are a math geek.
https://octave.org/

Sorry, but I don't know of an app that's done the work already.

servodude
Lemon Half
Posts: 8416
Joined: November 8th, 2016, 5:56 am
Has thanked: 4490 times
Been thanked: 3621 times

Re: Price Correlation Matrix Software

#623371

Postby servodude » October 27th, 2023, 4:18 am

Urbandreamer wrote:
ignotus20 wrote:It's a good while since I've done any coding, however (and very little with Python - I don't have an interpreter or IDE installed etc.).


Well I'd start by installing python.
For me this entailed (because I did it yesterday for the youtube thread to make youtube-dl):

sudo apt install python
Then I'd examine the HYPTUSS LibraOffice python script used to get price data.

As I suspect that you are a Windows user, the options are to install WSL which would allow you the full extent of linux tools and software, or you could just just install python.
https://www.howtogeek.com/197947/how-to ... n-windows/
You might need LibraOffice to examine the python macros in HYPTUSS.
https://www.libreoffice.org/
https://lemonfoolfinancialsoftware.weeb ... op-up.html

I don't do enough python to bother with an IDE. Indeed I'd be tempted to initially start using LibraOffice python script macros if I had python examples.

However free IDE's are available.
https://opensource.com/resources/python/ides
For my purposes the command line and a simple text editor would do the job.

Of course this is just one method.

You could use curl (already installed on windows) to scrape the prices.

You could process the data using something like octave. Great if you are a math geek.
https://octave.org/

Sorry, but I don't know of an app that's done the work already.


If you're trying to do this kind of stuff on Windows in python it sounds like a good candidate for https://www.anaconda.com/

Gives an easily maintained python installation with tools/libraries that make other languages/systems like octave unnecessary

Comes with the Spyder IDE which I've found pretty intuitive

ignotus20
Lemon Pip
Posts: 53
Joined: April 24th, 2020, 2:38 pm
Has thanked: 30 times
Been thanked: 9 times

Re: Price Correlation Matrix Software

#623481

Postby ignotus20 » October 27th, 2023, 2:06 pm

Thanks for the recommendations on Python folks, but I found a solution which doesn't require it, nor any coding (although it can be customised, should that be required).

I had a free TradingView account - https://www.tradingview.com/ A bit of querying with Google yielded a free to use indicator for TV with the matrix I was looking for: https://www.tradingview.com/script/7m7b ... rix-Table/


Return to “Financial Software - Discussion”

Who is online

Users browsing this forum: No registered users and 23 guests