Welcome Guest ( Log In | Register )

5 Pages < 1 2 3 4 5 >Bottom

Outline · [ Standard ] · Linear+

 Stock Spreadsheet

views
     
gegambo
post Jun 2 2020, 06:11 PM

New Member
*
Junior Member
10 posts

Joined: Nov 2005
hi can someone help me out here. been trying and trying but with no success. can someone point out where i am wrong?

=importxml("https://www.klsescreener.com/v2/stocks/view/5238","//*(@id=price_header)")

thanks in advance

This post has been edited by gegambo: Jun 2 2020, 06:12 PM
plumberly
post Jun 18 2020, 02:55 PM

Look at all my stars!!
*******
Senior Member
4,761 posts

Joined: Jun 2007
From: My house


Found this today. Excellent way to get stock data via your Excel!

https://www.youtube.com/embed/xzOvM164H6M?rel=0

But need paid Excel 365 for the latest functions, I think.


hdr088
post Jun 25 2020, 11:06 AM

Getting Started
**
Junior Member
57 posts

Joined: Jan 2005


QUOTE(plumberly @ Jun 18 2020, 02:55 PM)
Found this today. Excellent way to get stock data via your Excel!

https://www.youtube.com/embed/xzOvM164H6M?rel=0

But need paid Excel 365 for the latest functions, I think.
*
Sadly bursa not supported https://support.microsoft.com/en-us/office/...ea-c5a6c8e787e6
SUSlowya
post Oct 9 2020, 05:48 PM

Look at all my stars!!
*******
Senior Member
4,821 posts

Joined: Mar 2009
Hi, anyone with success using =GOOGLEFINANCE() in Google Spreadsheet to pull KLSE stock prices?
ryan18
post Oct 11 2020, 01:50 PM

Look at all my stars!!
*******
Senior Member
2,406 posts

Joined: Jul 2010
From: bandar Sunway


Not sure why but the Bloomberg formula that works well for the past few months is now showing error
Havoc Knightmare
post Oct 11 2020, 03:32 PM

Invictus
******
Senior Member
1,205 posts

Joined: Feb 2006
From: Kuala Lumpur


QUOTE(ryan18 @ Oct 11 2020, 01:50 PM)
Not sure why but the Bloomberg formula that works well for the past few months is now showing error
*
Because bloomberg, along with many other sites with stock prices are one-by-one blocking us from fetching data. You've to find other new websites to fetch prices from.
Yggdrasil
post Oct 16 2020, 07:45 PM

Look at all my stars!!
*******
Senior Member
2,210 posts

Joined: Jan 2018
QUOTE(lowya @ Oct 9 2020, 05:48 PM)
Hi, anyone with success using =GOOGLEFINANCE() in Google Spreadsheet to pull KLSE stock prices?
*
I think Google doesn't have permission to pull from Malaysia exchange.
It can't pull from Japan exchange too. You need to pull from other websites.

QUOTE(ryan18 @ Oct 11 2020, 01:50 PM)
Not sure why but the Bloomberg formula that works well for the past few months is now showing error
*
Yeah not sure why but I managed to pull from investing.com

Yggdrasil
post Oct 16 2020, 07:49 PM

Look at all my stars!!
*******
Senior Member
2,210 posts

Joined: Jan 2018
QUOTE(gegambo @ Jun 2 2020, 06:11 PM)
hi can someone help me out here. been trying and trying but with no success. can someone point out where i am wrong?

=importxml("https://www.klsescreener.com/v2/stocks/view/5238","//*(@id=price_header)")

thanks in advance
*
Your code is wrong. Here's the correct one.
CODE
=importxml("https://www.klsescreener.com/v2/stocks/view/5238","//span[@id='price']")


It's not that hard to learn. doh.gif

BTW TO OTHERS... STOP ASKING ANYMORE.. bangwall.gif
If error means your code wrong or website cannot pull.
polarzbearz
post Oct 19 2020, 12:38 PM

Gracie
*******
Senior Member
4,816 posts

Joined: Apr 2007


For those interested, can also use my spreadsheet. I published it for free initially for fundsupermart users but over time I've moved on to other vehicles (incl. Malaysia / Foreign stocks)

The spreadsheet might be quite heavy though.

Links in my signature or read more here: https://forum.lowyat.net/index.php?showtopi...&#entry98487565
Havoc Knightmare
post Oct 19 2020, 08:03 PM

Invictus
******
Senior Member
1,205 posts

Joined: Feb 2006
From: Kuala Lumpur


QUOTE(polarzbearz @ Oct 19 2020, 12:38 PM)
For those interested, can also use my spreadsheet. I published it for free initially for fundsupermart users but over time I've moved on to other vehicles (incl. Malaysia / Foreign stocks)

The spreadsheet might be quite heavy though.

Links in my signature or read more here: https://forum.lowyat.net/index.php?showtopi...&#entry98487565
*
You have a great thing going there, though I'm wondering why don't you move to Google Sheets, since Google Sheets is superior in so many ways.

For instance, my portfolio file on google sheets is able to save my end-of-day portfolio value, without having to open the file at all. Google scripts can be automated to be triggered on a time basis, without requiring one to open the file on a daily basis and pressing macro buttons. So I get a summary of how my portfolio of stocks on Bursa, SGX and HKEX have evolved over the last 3+ years as per the chart below. All without pressing buttons and running macros. I only have to key into my sheet my trades and dividends received, with google sheets taking care of everything else.

user posted image

user posted image

This post has been edited by Havoc Knightmare: Oct 19 2020, 08:12 PM
polarzbearz
post Oct 19 2020, 09:42 PM

Gracie
*******
Senior Member
4,816 posts

Joined: Apr 2007


QUOTE(Havoc Knightmare @ Oct 19 2020, 08:03 PM)
You have a great thing going there, though I'm wondering why don't you move to Google Sheets, since Google Sheets is superior in so many ways.

For instance, my portfolio file on google sheets is able to save my end-of-day portfolio value, without having to open the file at all. Google scripts can be automated to be triggered on a time basis, without requiring one to open the file on a daily basis and pressing macro buttons. So I get a summary of how my portfolio of stocks on Bursa, SGX and HKEX have evolved over the last 3+ years as per the chart below. All without pressing buttons and running macros. I only have to key into my sheet my trades and dividends received, with google sheets taking care of everything else.

user posted image

user posted image
*
Dang, that's actually pretty neat! Personally I thought about it a few times but was too lazy to re-do everything again on Google Sheets and that kinda held me back sweat.gif

Maybe I should really spend some time and look into it hmm.gif My snapshot is only as good as the times I remember to refresh it laugh.gif There's some obvious "holes" on certain month when I forgot to even open the sheet tongue.gif tongue.gif

user posted image
Havoc Knightmare
post Oct 19 2020, 10:05 PM

Invictus
******
Senior Member
1,205 posts

Joined: Feb 2006
From: Kuala Lumpur


QUOTE(polarzbearz @ Oct 19 2020, 09:42 PM)
Dang, that's actually pretty neat! Personally I thought about it a few times but was too lazy to re-do everything again on Google Sheets and that kinda held me back sweat.gif

Maybe I should really spend some time and look into it hmm.gif My snapshot is only as good as the times I remember to refresh it laugh.gif There's some obvious "holes" on certain month when I forgot to even open the sheet  tongue.gif  tongue.gif

user posted image
*
Yeah, with google sheets you will never have to open the sheet just to run macros. You just need to check in every now and then to correct any errors since google sheets doesn't fetch data correctly occasionally and you end up with #error cell outputs.

My current sheet is derived from this Singaporean blogger's work since I have little knowledge in programming languages - https://investmentmoats.com/StockPortfolioT...menttracker.php

Perhaps you can use his sheet as a blueprint to work with.


Yggdrasil
post Oct 19 2020, 10:21 PM

Look at all my stars!!
*******
Senior Member
2,210 posts

Joined: Jan 2018
QUOTE(polarzbearz @ Oct 19 2020, 12:38 PM)
For those interested, can also use my spreadsheet. I published it for free initially for fundsupermart users but over time I've moved on to other vehicles (incl. Malaysia / Foreign stocks)

The spreadsheet might be quite heavy though.

Links in my signature or read more here: https://forum.lowyat.net/index.php?showtopi...&#entry98487565
*
Wow that dedication! rclxms.gif

ryan18
post Oct 19 2020, 11:11 PM

Look at all my stars!!
*******
Senior Member
2,406 posts

Joined: Jul 2010
From: bandar Sunway


QUOTE(Yggdrasil @ Oct 16 2020, 07:45 PM)
I think Google doesn't have permission to pull from Malaysia exchange.
It can't pull from Japan exchange too. You need to pull from other websites.
Yeah not sure why but I managed to pull from investing.com
*
I manage to use klse.i3investor.com to pull the prices but as some has mentioned the formula keeps on changing sometimes it’s up,sometimes it’s down
Yggdrasil
post Oct 19 2020, 11:25 PM

Look at all my stars!!
*******
Senior Member
2,210 posts

Joined: Jan 2018
QUOTE(ryan18 @ Oct 19 2020, 11:11 PM)
I manage to use klse.i3investor.com to pull the prices but as some has mentioned the formula keeps on changing sometimes it’s up,sometimes it’s down
*
Solution already mentioned here:
https://forum.lowyat.net/index.php?showtopi...post&p=95692476

Use IFERROR( ...link with up... , ...link with down...)
This means if Google fetch the link with up and it's an error, it will revert to link with down.
Disadvantage is it's a long formula.
babychai
post Oct 26 2020, 04:00 PM

I go to work because my name is not in Forbes list
*****
Senior Member
779 posts

Joined: Apr 2008
From: Petaling Jaya



Hi there, i wondering is there any method or insert any code to make it auto refresh within few second/minute instead of manual refresh it?
Yggdrasil
post Oct 26 2020, 04:17 PM

Look at all my stars!!
*******
Senior Member
2,210 posts

Joined: Jan 2018
QUOTE(babychai @ Oct 26 2020, 04:00 PM)
Hi there, i wondering is there any method or insert any code to make it auto refresh within few second/minute instead of manual refresh it?
*
You can easily Google this..
trader8833 P
post Oct 30 2020, 05:21 AM

New Member
*
Probation
1 posts

Joined: Oct 2020
QUOTE(Yggdrasil @ Mar 4 2020, 02:50 PM)

The code is for Sheets. For Excel, you need to import the data from the link.
*






I am still having trouble doing this. Could you be so kind to help me out? It keeps showing N/A. And it says content imported is empty.

https://pictr.com/images/2020/10/30/7MOy35.png
https://pictr.com/images/2020/10/30/7MOXjV.png
https://pictr.com/images/2020/10/30/7MOKpv.md.png
Yggdrasil
post Oct 30 2020, 12:35 PM

Look at all my stars!!
*******
Senior Member
2,210 posts

Joined: Jan 2018
QUOTE(trader8833 @ Oct 30 2020, 05:21 AM)
N/A because Bloomberg website doesn't allow "scrapping" figures or Google's website having problem retrieving.
Extract from klsescreener instead.
CODE
=importxml("https://www.klsescreener.com/v2/stocks/view/5176","//span[@id='price']")

WaterDuck
post Sep 8 2021, 07:23 PM

New Member
*
Junior Member
5 posts

Joined: Apr 2011
hihi, i had created a webpage mainly to cater this google sheet problem. Feel free to test it out and let me know any feedbacks =)

www.mybuku555.com

5 Pages < 1 2 3 4 5 >Top
 

Change to:
| Lo-Fi Version
0.0249sec    0.79    6 queries    GZIP Disabled
Time is now: 21st December 2025 - 11:08 AM