2018年2月7日星期三

11 恆生銀行

圖。

根據歷史資料,是次會跌20%以上。
但此時非彼時。

靈感:


估計會最多跌到162至152之間。
這是一般會分析的人是這樣想。
所以,要賺,就不能這樣想。

可以進取些,到165 至170其實是可以入貨了。

[18Jun2018 Update]现价$197.75。 $175已是最低了。估计错误。

图二。



灵感:
已知:
1.上升心理关囗是$204
2.下跌心理关囗:$188~$192

假设:
1.Stoch 小於10,未来5日上升机会大。
2.MACD趋势向下

问题:
未来5日,升还是跌?
跌。

升或路多少?
估计是$195



2018年1月25日星期四

Python For Finance 2:Deverlopment Environment Setting

運行環境

下載好必要套件,就要設定好開發環境。
試用一下Visual studio code。
其實應該用一個簡單的Python IDE,安裝後就能即用的。
VS code裡還要設定很多,才能用。

2018年1月24日星期三

C srtings,char *的哪些事

strings在C上是比較特別的存在,時時都忘了它們的特性而花很多時間去debug。
它們是一個大坑。尤其一些經常要處理string的程序上。
自己稍一忘記處理char *的要點,就落入大坑裡。
所以要記下這些重點,不能讓自己重蹈覆轍。


2018年1月23日星期二

Python for Finance 1

前言

心中一直都想運用電腦幫助自己分析股票。可惜不努力,懶,沒恆心,只想不做。
但是,覺得自己要變了。人生差不多過了三分一,仍一事無成。
有夢,就要去追。有想,就要去做。努力吧!
記錄,助我學習。
發現,如果我能將所學的,簡易寫出來,我會很興奮。
希望我能堅持下去。

2017年1月23日星期一

Git Command- A simple Way


Intro
As a beginner of using Git, I want to keep it simple and don't want to study deeply into it.
2 days of study and research on Git is enough for me.
Most Useful Command
I find that, below command is the most useful and can help me to do the version control perfectly in most of the time.

2017年1月21日星期六

Git: stash and checkout

 
As we know, if you want to checkout, you must need to clean your working DIR.
That's it, create a commit or stash you change.
Stash, means save your files on a temporary place in a stack data structure.
Below is a example on this.

2016年9月2日星期五

MCU 01 : STM32F105 VS STM32F103



前言

研究一下STM32F105和STM32F103的分別。

Overall 的分别

IO Pin 少了。第一感觉到的。哈。

硬件上的分别

不解释太多了。看图最清楚。从datasheet上查到。
硬件差别

2016年9月1日星期四

MCU 00:初探

前言

最近因工作關係,加上自己是電子工程出身,但居然並不熟悉MCU,實在有點難抬起頭來,所以是時候努力研究一下MCU了

其實,MCU一值都有興趣去學,但怪自己懶,不肯花時間去鑽研,怕麻煩。因為要學MCU,事前都要做很多預備的事。
第一件事,就是我應該選哪一種MCU來學?MCU有分好多種,8051系列,PIC,ARM系列,架構不同,且亦都分8bit ,16 bit,32bit的。最近幾年又有什麼Rasperry Pi,Ardinuo等等。我該如何選擇?

2016年7月31日星期日

Lycamobile SIM卡$58 試用


[18Jun2018 更新] 大约半年前不能用了,連不到網,如要買,請三思。

網上查到,聽聞過這張貌似很好的儲值卡,於是試一試。

吸引我的地方是便宜,$18,有3G速度和500MB的數據量。相比起其他的便宜很多。太多數的Plan是>$100,且本身電話,不支持4G網絡.........

如果只是想上上網,玩玩wechat、whatsapp,看看新聞資訊、在車上打發時間,500MB,3G的速度,夠用了。

在家附近問了兩三間的7-11,只有一間有$58的,其他的都是$98。奇怪的是,OK店雖然有,但不能買......店員說公司不給他去買......














2016年7月14日星期四

Excel VBA 2a:Learning MSXML2.XMLHTTP

Introduction

What is MSXML2.XMLHTTP?

It is an object in Excel VBA for sending request to the server. YOu can use this object to get the response from the website.

MSXML2 objects in Excel VBA

There are many object in Excel VBA in the MSXML2
There should be a little diference between them, but I really don’t know the difference. Ha, maybe I will know in the future.
Now, 6.0 is the updated version.
So far, I just MSXML.XMLHTTP is work fine for me in Excel2010
Microsoft.XMLHTTP
Microsoft.XMLHTTP.1.0
Msxml2.ServerXMLHTTP
Msxml2.ServerXMLHTTP.3.0
Msxml2.ServerXMLHTTP.5.0
Msxml2.ServerXMLHTTP.6.0
Msxml2.XMLHTTP.3.0
Msxml2.XMLHTTP.5.0
Msxml2.XMLHTTP.6.0

2016年6月18日星期六

JavaScript 03: Create Event

Create Event

Intro:

一個簡單的實習。
Click一下 Go button,透過JS code generate 一個click event,去click 一下paragraph1 和paragraph2。
當element被click時,text field就會顯示clicked字眼,一石二烏。
GIF:
GIF
Code:
JS Fiddle code: Create Event

2016年5月30日星期一

JavaScript02:Computed Stycle,"getComputedStyle",

原因:

如果想知道某一個element的現時style,就需要用到getComputedStyle(elemnet,xxx) method.
第二個參數xxx一定為null或不寫,如想查的是一般的element。
JS Fiddle:https://jsfiddle.net/js_Test4fun/qejv4yd0/17/

2016年4月29日星期五

Excel VBA : Copy image from website into Excel


Cause:

Wondering how to copy image from a internet source and paste to Excel using the VBA.

There are many examples on the internet if you google "copy image from web vba". However, those are too complicate as I just want to copy from a particular website and particular one image.That's it. No more other things.

So I keep searching on the internet to find a proper method.

One of the method is using "URLDownloadToFile API", it is too complicate for me as I am just a beginner of VBA.....

Then I find a good example from stactoverflow. By using AddPicture(x,x,x,x,) method, it is very easy to copy a image to Excel!

However, you must know the URL of the image first...

Luckily, I know the basic DOM knowlege through my studies on Javascript.



Action:

How to know the URL of the source of the particular image:


2015年11月9日星期一

堡獅龍國際 00592.

高息。現價0.69。可作10年長線。短期會下跌到0.6x。
1202:现价0.62,技术上可入。破势位:0.55,反弹位,0.7


2016 9 23更新:上年的預測,幾準。價位到了破勢位,真的一路向下到最低0.45。現價0.5。破勢位:0.45。

2015年11月5日星期四

思捷環球 00330.


入市位,支持位,8.4。失势位7.5。

1112:看來8.5有支持。將來都覺得會下跌。(yes)
1221:现价8.04。未跌穿失势位。但跌破支持位。预计会再跌到7.5

2015年11月4日星期三

國美電器 00493.

上升,橫行,上升。1.55是阻力。1.32是支持。
由底位到現在一個月,升了32%,但九成九的日子是橫行。其中兩日突然上升。
估計會橫行大概一個月,或突然間上升突破1.55。
短期會向下走。

2015年11月3日星期二

恆大地產 03333.

強勢股,好消息多,主席不斷回購,未來升機會大。是陷阱?



1104:今天大升。單邊升,向上突破,升近一個月良好趨勢中,RSI,STC已失去效用。
基本分析,都是上升機會大。可以繼續升多一個月。


2016 9 24更新:上年十一月尾,最高到6.85。之後是雙頂回落。二月中,最低4.7。現價5.43。破勢位:5.15。看MACD,估計會升。5.47,5.67,6



華彩控股 01371.

根據中年財報15年,上半年,蝕1.48億,扣除0.95億商譽減值,0.28億金融資產公平值虧損,員工成本增加的0.28億,購股權費用0.22億,仍然都蝕0.25億.....一般及行政費用比上年多1.8億,但又沒說明為何會增加1倍.....

日線:0.4是重要位。


*1105:阻力位,0.48。失势位,0.37。10月15,28日爆上。
1209:现价0.355在反弹边缘,技术上短期会有反弹。简单来说,可搏反弹。但会再下跌一下才升上。

領展房產基金 00823.

未來數週會下跌。


1105:跌至45.35,成交亦上升。這星期會是弱勢。

1112:的確能跌至45.35,且更低44.55。最後業績好,大升上去了。技術上看會升。
1202:现价47.8,有望上升至$50(No)
1221:现价45.9,短期会上升。技术上是低位。搏反弹。