Kamis, 27 Desember 2018

[smf_addin] Digest Number 4449

8 Messages

Digest #4449
1a
1c
Re: Getting bad option quotes by "Randy Harmelink" rharmelink
1d
Re: Getting bad option quotes by "Randy Harmelink" rharmelink
1f
Re: Getting bad option quotes by "Randy Harmelink" rharmelink
1h
Re: Getting bad option quotes by "Randy Harmelink" rharmelink

Messages

Wed Dec 26, 2018 11:07 am (PST) . Posted by:

bob_15861586

I am getting wrong option quotes. For example:
=smfGetYahooOptionQuote("QQQ","C",DATE(2019,6,28),170,"a")
This is giving me 2.64 when the right number is around 3.27. I am thinking it is Yahoo, but I would like
somebody else to take a look at it and tell me what they think.


Thanks,
Bob

Wed Dec 26, 2018 11:13 am (PST) . Posted by:

bob_15861586

Also, this is not working for me: =smfGetBarChartOptionQuote("QQQ","C",DATE(2019,6,28),170,"a")


Bob

Wed Dec 26, 2018 2:41 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

That formula returns 4.21 for me, which is what the web page currently says:

https://finance.yahoo.com/quote/QQQ190628C00170000

There are two reasons you could be getting an older value:

1. The add-in is extracting the data from a saved copy of the web page. If
this is the issue, you would use smfForceRecalculation to force it to get a
fresh copy of the web page for new extraction.

2. The IE object used by the DLL the add-in uses is returning a cached copy
of the web page. If this is the issue, you would need to change your
Internet Option to make sure a fresh copy of the web page is retrieved each
time a web page is accessed.

In any case, the best way to get option quotes from Yahoo these days is to
use the smfGetYahooPortfolioView() function. It can return contract for
different underlyings, different expiration dates, and different strike
prices, all at the same time. Much faster.

On Wed, Dec 26, 2018 at 12:07 PM bob_15861586@... wrote:

> I am getting wrong option quotes. For example:
>
> =smfGetYahooOptionQuote("QQQ","C",DATE(2019,6,28),170,"a")
>
> This is giving me 2.64 when the right number is around 3.27. I am thinking
> it is Yahoo, but I would like
>
> somebody else to take a look at it and tell me what they think.
>
>
>

Wed Dec 26, 2018 2:44 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

Unfortunately, Barchart is no longer a functional source of data. They have
retreated all of their JSON files behind a protected API access method.

https://smf-add-in.blogspot.com/2018/07/alert-barchart-json-files-now-require.html

On Wed, Dec 26, 2018 at 12:13 PM bob_15861586@... wrote:

>
> Also, this is not working for me:
> =smfGetBarChartOptionQuote("QQQ","C",DATE(2019,6,28),170,"a")
>
>
>

Wed Dec 26, 2018 3:01 pm (PST) . Posted by:

bob_15861586

Randy,

Thanks for the response. I have switched to smfGetBigChartsOptionQuote and that is working. Is there a reason not to use it?


You wrote:


2. The IE object used by the DLL the add-in uses is returning a cached copy of the web page. If this is the issue, you would need to change your Internet Option to make sure a fresh copy of the web page is retrieved each time a web page is accessed.



I do not understand this. When you say IE, do you mean Internet Explorer. I am not using Internet Explorer. Where would I change my internet options?


Thanks,
Bob


Wed Dec 26, 2018 4:12 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

smfGetBigChartsOptionQuote() would be very slow. Fine for one quote, but a
real pain for many.

What you use as a browser is irrelevant. EXCEL (and the add-in) use the
same Internet engine that IE uses to access the Internet, because both IE
and EXCEL are Microsoft products (as is Windows 10). To change the caching
behavior used by the various Microsoft products without using IE would
typically be something like:

-- Open control panel
-- Click On Network & Internet
-- Click on Internet Options
-- Under Browsing History click on Settings
-- Change to 'Every time I visit the webpage' and click OK

On Wed, Dec 26, 2018 at 4:01 PM bob_15861586@... wrote:

>
> Thanks for the response. I have switched to smfGetBigChartsOptionQuote
> and that is working. Is there a reason not to use it?
>
> You wrote:
>
> 2. The IE object used by the DLL the add-in uses is returning a cached
> copy of the web page. If this is the issue, you would need to change your
> Internet Option to make sure a fresh copy of the web page is retrieved each
> time a web page is accessed.
>
> I do not understand this. When you say IE, do you mean Internet Explorer.
> I am not using Internet Explorer. Where would I change my internet options?
>
>

Wed Dec 26, 2018 4:29 pm (PST) . Posted by:

bob_15861586

Randy,

Thanks for your help. I now believe everything is working fine.


Personally, I find smfGetYahooPortfolioView very hard to work with. I suspect the real problem is my
lack of knowledge of Excel arrays.


Bob




Wed Dec 26, 2018 6:02 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

That function is worth the effort. It can grab a lot of quotes and related
data with a single Internet access.

I've gotten into the habit of putting all of my data gathering steps into a
single worksheet and then referring to the data in that worksheet as needed
in analysis or presentation in other worksheets. That way, if things change
(providers or available data), I just have to worry about changing things
in the one worksheet.

On Wed, Dec 26, 2018 at 5:29 PM bob_15861586@... wrote:

>
> Personally, I find smfGetYahooPortfolioView very hard to work with. I
> suspect the real problem is my
> lack of knowledge of Excel arrays.
>
>
>
For the Add-in, Documentation, Templates, Tips and FAQs, visit http://ogres-crypt.com/SMF
READ MORE....

Rabu, 26 Desember 2018

[smf_addin] Digest Number 4448

1 Message

Digest #4448

Message

Tue Dec 25, 2018 3:02 pm (PST) . Posted by:

jeffrdavis

Thanks! That's much cleaner, and works fine also as a workaround. Merry Christmas!

Jeff
For the Add-in, Documentation, Templates, Tips and FAQs, visit http://ogres-crypt.com/SMF
READ MORE....

Selasa, 25 Desember 2018

[smf_addin] Digest Number 4447[3 Attachments]

2 Messages

Digest #4447
1
Microsoft Update Changed Something by "Greg" gfoster07k@sbcglobal.net

Messages

Mon Dec 24, 2018 6:17 pm (PST) . Posted by:

"Greg" gfoster07k@sbcglobal.net

I use smfPricesBetween about once a month but it has changed so I have to rebuild the spreadsheet every time I use it. I am using Excel 2013 on a laptop with Chrome. The smf file has not moved. But ow when I launch Excel I get an error message that it cannot find the smf file. When I load the spreadsheet I get "name" errors throughout as soon as I try to update it. Here are screen shots of the configuration. See any issues?

Sent from Mail for Windows 10

Attachment(s) from Greg
3 of 3 Photo(s)

Mon Dec 24, 2018 6:53 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

The image of the file listing show the add-in location as "C:/Program
Files/SMF Add-In" (the years ago original suggested location).

The image of EXCEL's Add-in manager shows the add-in location as "C:/SMF
Add-in" (the current suggested location).

The image of the file you opened is showing it pointing to the old
location, not the location EXCEL is expecting to find the add-in. So it is
not automatically resolving the external location and should be warning you
of unresolved links or asking if you want to refresh them.

What I would suggest:

1. Run the smfFixLinks macro (located in the add-in). It can be run from
the EXCEL context menu. This should fix the links.
2. Save the file, so it saves the hard-coded links to the proper location
of the add-in functions.

The next time you open the file, everything should be fine, since it will
find the add-in in the expected location that matches the add-in manager
location.

You would probably be best off getting rid of the add-in files in the
"C:/Program Files/SMF Add-In" location.

On Mon, Dec 24, 2018 at 7:17 PM Greg gfoster07k@... wrote:

>
> I use smfPricesBetween about once a month but it has changed so I have to
> rebuild the spreadsheet every time I use it. I am using Excel 2013 on a
> laptop with Chrome. The smf file has not moved. But ow when I launch
> Excel I get an error message that it cannot find the smf file. When I load
> the spreadsheet I get "name" errors throughout as soon as I try to update
> it. Here are screen shots of the configuration. See any issues?
>
>
>
For the Add-in, Documentation, Templates, Tips and FAQs, visit http://ogres-crypt.com/SMF
READ MORE....

Senin, 24 Desember 2018

[belajar-excel] Digest Number 4677

1 Message

Digest #4677

Message

Mon Dec 24, 2018 7:10 am (PST) . Posted by:

"Mr. Kid" nmkid.family@ymail.com

hmmm... trit ini sudah 4 hari belum ada yang merespon...

Begini...

*Susunan nilai dalam suatu chart tergantung pada susunan tabel chart data
source.*
*Setiap chart bisa berisi berbagai series.*
*Sebuah chart bisa bersumber dari beberapa (minimal satu) tabel chart data
source.*

Contoh :
[image: xl035_chart_pie00_tbldts_n_cht.gif]Pada gambar di atas,
Tabel sebelah kiri itulah yang disebut Tabel chart data source
Sebuah chart yang tampak di sebelah kanan itu terbentuk karena memiliki
susunan tabel chart data source seperti tabel yang kiri itu.

Jadi, kalau bisa menyusun tabel chart data source dengan baik, maka chart
yang dihasilkan bisa sangat bervariasi.

Kalau bertemu sebuah chart yang sudah jadi, cari tahu tipe chart
penyusunnya, pahami karakteristik setiap tipe chart penyusunnya, cari tahu
lokasi dan susunan tabel chart data source, lalu ubah item-item tertentu
dalam tabel chart data source atau lakukan penyusunan tabel chart data
source yang lebih sesuai untuk kebutuhan.

Tentang tipe chart penyusun dan karakteristiknya pada chart speedometer : .
*A. Jarum speedometer disusun dengan pie chart. Maka pahami dulu tentang
pie chart.*
Contohnya, pie chart bentuknya lingkaran, dengan sudut 1 lingkaran adalah
360 derajat. Proporsi setiap nilai data akan disusun sebagai susunan juring
lingkaran dengan sudut tertentu.
Misalnya, nilai sales X dengan proporsi 90/360 (seperti nilai sales 100juta
terhadap total sales 400juta) akan dipasang dalam pie chart berupa juring
dengan sudut 90 derajat. nilai sales Y dengan proporsi 270/360 (seperti
300juta terhadap total sales 400juta) akan dipasang berupa juring dengan
sudut 270 derajat. Item yang berada dipaling atas tabel data akan dipasang
sebagai item pertama pie chart, seperti pada jam analog (mulai dari angka
12, 1, 2, dan berputar seterusnya sampai penuh 360 derajat).
Seperti ini :
[image: xl035_chart_pie01_arah.gif]

Jadi, pada jarum speedometer, akan ada 3 pie slice (juring), yaitu
berurutan juring rasio nilai data, juring jarum speedometer, dan juring
sisa area pie chart.
Sudut juring sisa area pie chart adalah sebesar 360-(sudut area rasio nilai
data + sudut area jarum), dengan minimal nilainya adalah 0 (maskudnya,
minimal sudut juring sisa area adalah 0 derajat)
Contohnya begini : [misal tebal jarum adalah 10 derajat]
[image: xl035_chart_pie02_items.gif]
Jika diperhatikan dengan seksama, jarum tidak menunjuk ke arah yang pas.
Disini, dibutuhkan asumsi.
Misal, 'bagian tengah jarum yang menunjuk arah yang pas, ketebalan jarum
untuk penanda saja'
Artinya, sudut juring rasio nilai data (warna biru) perlu dikurangi sebesar
1/2 sudut juring jarum.
Tentu saja, sudut juring sisa pie chart akan bertambah.
Jadinya seperti ini :
[image: xl035_chart_pie03_efek_tebal_jarum.gif]
Jadi, pertengahan jarum akan tepat menunjuk arah yang pas.
Lihat gambar kedua dari kiri, untuk rasio 180/360 (seperti 200juta sales
dari total 400juta), akan disusun berupa juring rasio nilai dengan sudut
175 derajat + 1/2 sudut jarum (yaitu 5 derajat) = 180
Setengah tebal jarum sisi seberangnya akan ada disisi sisa area pie chart.
Sudut sisa area pie chart total adalah sudut juring sisa area dengan sudut
175 + 1/2 sudut jarum = 180 juga.
Perhatikan juga gambar lainnya untuk membandingkannya.

Letak rasio nilai data sebesar 0 derajat masih berada diarah jam 12 pada
jam analog. Biasanya speedometer dibuat dengan orientasi mendatar. Artinya,
letak sudut 0 derajat adalah di arah jam 9. Dari arah jam 12 sampai ke arah
jam 9 terjadi pergerakan memutar sebesar 270 derajat. Jadi, kalau pie chart
diputar sebesar 270 derajat, orientasinya akan sesuai dengan kebutuhan
speedometer.
Caranya : klik kanan lingkaran pie chart -> Format Data Series -> Series
Option -> pada Angle at first slice, diisi 270 derajat
Jadinya begini :
[image: xl035_chart_pie04_rotate_first_slice.gif]

Juring rasio nilai data (biru) dan juring sisa area pie chart (abu-abu)
bisa diset tanpa warna latar (no fill). Ketebalan jarum juga bisa
dikurangi, misal menjadi 0.5 derajat atau 1 derajat atau berapa saja yang
tampak cukup sesuai kebutuhan. Misal begini :
[image: xl035_chart_pie05_jarumok.gif]

Dari karakteristik pie chart tersebut, bisa disusun sebuah tabel data untuk
piechart seperti ini : (bisa sekalian dengan area inputnya)
Contoh :
- nilai total adalah 4000 juta rupiah
- nilai data (yang di-input di B12) umumnya dari 0 juta rupiah sampai 2000
juta rupiah.
- pada kondisi tertentu, nilai yang di-input bisa dari -500 juta rupiah
sampai 2500 rupiah.
*[Gambar jarum speedometer]*
[image: xl035_chart_pie06_dataset_speedojarum.gif]

*B. Label angka juga bisa disusun dengan pie chart.*
Labels by default akan diletakkan tepat ditengah area juring. Pengaturan
letak hanyalah terkait pada jarak dari titik pusat saja.
[image: xl035_chart_pie08_labels_pos.gif]
Dari gambar di atas :
- Gambar kiri :
> Letak label by default di tengah area setiap juring. Jarak label dari
titik pusat dapat dipilih dari daftar yang ada. Gambar di atas memilih
Outside Ends.
> Pada nilai 0, letak label seakan-akan tepat pada garis batas juring.
- Gambar kanan :
> Dengan karakteristik letak label pada nilai 0 (seperti pada gambar kiri
nilai 0), maka dapat disusun sebuah tabel chart source yang disertai nilai
0 disetiap batas area
Contoh : setelah area juring seluas 500 (record ke-2), diberi baris
bernilai 0 sebagai pembentuk lokasi label agar tepat digaris 500, dengan
nilai sudut juring adalah 0 (record ke-3)

*C. Area radial yang menggantung (seperti lingkaran dengan ketebalan
tertentu alias berlubang tengahnya) disebut doughnut (donat).*
Chart tipe doughnut masuk dalam kelompok pie chart.
Karakteristiknya juga sama dengan pie chart. Contohnya begini :
[image: xl035_chart_pie09_doughnut_outline.gif]
Dari gambar di atas, sebuah garis akan terbentuk jika nilai slice dougnut
adalah 0 dan diberi outline.
Pada gambar kiri, record berwarna kuning bernilai 500. Tampak slice
berwarna kuning dengan outline.
Pada gambar kanan, record berwarna kuning diubah nilainya menjadi 0. Slice
yang tadi berwarna kuning hanya menyisakan outline dan membentuk sebuah
garis lurus saja.

Doughnut chart juga bisa digunakan untuk menyusun label pada chart
speedometer, tetapi kurang luwes dibanding menggunakan pie chart

*D. Manfaat dan dampak dari penggabungan beberapa tipe chart dalam sebuah
chart *
Jadi, dari sebuah tabel chart series yang sama, bisa disusun area doughnut
beserta garis penunjuk nilai. Sedangkan label nilai disetiap garis dibentuk
melalui pie chart.
Contohnya seperti ini :
- Area mengambang (dengan chart tipe doughnut) dibutuhkan dalam pembentukan
rentang berikut :
> area 1 : dari 0 sampai dengan 750 adalah area merah
> area 2 : dari 750 sampai dengan 1500 adalah area kuning
> area 3 : dari 1500 sampai dengan 2000 adalah area hijau muda
> area 4 : dari 2000 sampai dengan 3000 adalah area sisa yang tidak
diberi warna
- Garis skala dibentuk pada area berwarna saja (selain area 4) dengan jarak
setiap 500 dan dimulai dari 0

Langkah 1 : menyusun tabel chart data source (lihat gambar di bawah, pada
sisi kiri)
Langkah 2 : membuat pie chart untuk labels, dengan nilai series adalah
kolom [Nilai], dan teks setiap data label menggunakan nilai teks di kolom
[Label]
Langkah 3 : membuat doughnut chart untuk area mengambang, dengan nilai
series adalah kolom [Nilai]
* Karena jumlah item chart dari pie chart untuk label
dan doughnut chart untuk area mengambang adalah sama banyaknya, maka kedua
jenis chart diletakkan pada axis sang sama
Misal, doughnut chart untuk area mengambang
diletakkan di Primary Axis, maka pie chart untuk label juga diletakkan di
Primary Axis
Langkah 4 : menata setiap item chart beserta data label yang ditampilkan
Hasilnya seperti gambar di bawah ini :
[image: xl035_chart_pie10_doughnut_pie.gif]
Pada tabel chart data source, untuk area mengambang warna merah dari 0
sampai dengan 750 perlu dipecah menjadi 2 bagian, yaitu :
> area 0 sampai dengan 500 senilai 500 (record ke-2)
> area 500 sampai dengan 750 senilai 250 (record ke-4)
Hal ini dikarenakan adanya kebutuhan untuk membuat garis label, yaitu bagi
label 500 dengan nilai 0 (record ke-3)
Pada area warna kuning juga demikian.

*Sampai disini....*
Semestinya, sudah mampu mengubah chart speedometer yang telah jadi.

*Selanjutnya...*
*> Melanjutkan proses membuat chart speedometer untuk contoh seperti pada
[Gambar jarum speedometer] di atas sana.*
Jika ditentukan syarat label nilai skala beserta area mengambangnya adalah
seperti ini :
[image: xl035_chart_pie11_kriteria.gif]
* keterangan dalam gambar yang menggunakan kurung siku [ ] adalah merujuk
ke *[Gambar jarum speedometer]* di atas sana.

Langkah 1 : Dari syarat tersebut, bisa disusun tabel chart data source
sebagai berikut :
[image: xl035_chart_pie12_dts.gif]

Langkah 2 : membuat pie chart untuk label bersama pie chart untuk jarum
(sudah ada di atas sana)
*** Karena jumlah item pie chart untuk jarum berbeda dengan jumlah item pie
chart untuk label, maka kedua chart ini harus dipisahkan axis-nya.
Pie chart untuk jarum sudah dibuat lebih dulu (lihat jauh di atas
sana), jadi jarum akan berada di Primary Axis.
Maka, pie chart untuk label (begitu sudah menambahkan series chart),
segera memindahkannya ke secondary axis

[image: xl035_chart_pie13_jarumlbl_axis.gif]

Kemudian menata pie chart untuk label, seperti :
> add data labels, menentukan isi teks setiap titik label, menata
letak labels
> membuatnya tak berwarna dan tak ber-outline
> memutar pie chart untuk label agar sama dengan orientasi pie chart
untuk jarum
Jadinya begini : (pie chart untuk label diputar agar label bernilai 0
berada di ujung jarum ketika bernilai 0)

[image: xl035_chart_pie14_jrmlblok.gif]

Langkah 3 : membuat doughnut chart untuk area mengambang (indikator)
*** Doughnut chart untuk area mengambang dan pie chart untuk labels berada
di axis yang sama karena memiliki item yang sama banyaknya
Pada langkah 2, pie chart untuk label berada di Secondary Axis.
Maka, setelah menambahkan series untuk doughnut chart, segera
dilakukan pemindahan ke Secondary Axis

[image: xl035_chart_pie15_jrmlbldon_axistipe.gif]

Kemudian menata doughnut chart untuk area emngambang tersebut, seperti
:
> set seluruhnya no fill, set seluruhnya memiliki solid line dengan
width sesuai kebutuhan (misal 0.5 pts)
> menata setiap area yang tidak nol, yaitu menata solid fill dengan
warna sesuai tabel chart data source, set tanpa outline
> memutar doughnut chart untuk area agar orientasinya sama dengan pie
chart jarum dan pie chart untuk label
Jadinya begini : (doughnut chart untuk area diputar agar susunan
areanya sesuai dengan tabel chart data source)

[image: xl035_chart_pie16_jrmlbldonok.gif]

Langkah 4 : menata tampilan akhir untuk user

[image: xl035_chart_pie17_final.gif]

Kira-kira demikianlah...

Regards,
Kid

On Thu, Dec 20, 2018 at 3:49 PM Barkan Hadi barkan.hadi04@gmail.com
[belajar-excel] <belajar-excel@yahoogroups.com> wrote:

>
>
> Dear Rekan2 belajar Excel,
>
> mohon izin bertana: jadi saya mw buat pencapaian dashboard untuk di atas
> 100%
> tapi yang ada malah jarum dashboardnya balik lagi ke arah semula...
>
>
> mohon arahannya
>
> terima kasih
> salam
> Barkan
>
>
>
============================================================
Pojok Lowongan Kerja yang disediakan milis :
http://milis-belajar-excel.1048464.n5.nabble.com/Pojok-Lowongan-Kerja-f5725753.html
*** Posting lowongan kerja : ke link tersebut dan klik New Topic
============================================================
bergabung ke milis (subscribe), kirim mail kosong ke: belajar-excel-subscribe@yahoogroups.com
posting ke milis, kirimkan ke: belajar-excel@yahoogroups.com
berkunjung ke web milis : http://tech.groups.yahoo.com/group/belajar-excel/messages
melihat file archive / mendownload lampiran : http://www.mail-archive.com/belajar-excel@yahoogroups.com/
atau (sejak 25-Apr-2011) bisa juga di : http://milis-belajar-excel.1048464.n5.nabble.com/
menghubungi moderators & owners: belajar-excel-owner@yahoogroups.com
keluar dari membership milis (UnSubscribe), kirim mail kosong ke : belajar-excel-unsubscribe@yahoogroups.com
---------------------------------------------------------------------
READ MORE....