Groups
Sign in
Groups
R軟體使用者論壇
Conversations
About
Send feedback
Help
有關 KD指標
311 views
Skip to first unread message
Assigned to a5419...@gmail.com by me
安德魯
unread,
Jan 6, 2016, 10:01:56 AM
1/6/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to R軟體使用者論壇
KD指標相關公式如下:
第n天收盤價-最近n天內最低價
RSV =────────────────
───────
×100
最近n天內最高價-最近n天內最低價
計算出RSV之後,再來計算K值與D值。
當日K值(%K)= 2/3 前一日 K值 + 1/3 RSV
當日D值(%D)= 2/3 前一日 D值+ 1/3 當日K值
目前程式碼如圖:
一.
請問各位高手 圖中公式中元素之設定有錯誤否?
尤其是"n天內"的程式碼表達方式。
二.
從附檔之數據中 第一天之KD值會得不到,可否自行設定常數約50?
感謝大家, 小弟R語言新手...
2015_min_K.txt
performance.R
林威成
unread,
Jan 7, 2016, 8:30:12 PM
1/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to R軟體使用者論壇
我在這篇文章有用過類似的手法 你可以參考看看~~第一題應該能解決
https://groups.google.com/d/msg/taiwanruser/9NTqlRW4rxU/1AqQhGX8BwAJ
安德魯於 2016年1月6日星期三 UTC+8下午11時01分56秒寫道:
Reply all
Reply to author
Forward
0 new messages