<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5995716178000567856</id><updated>2025-06-24T22:58:17.874+08:00</updated><category term="新台幣"/><title type='text'>波動馬克的程式交易</title><subtitle type='html'>程式交易需要ㄧ些創意與發想，&#xa;程式只是個工具，&#xa;交易需要創意，&#xa;在這裡提供ㄧ些創意另類的想法。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5995716178000567856.post-57312582871789361</id><published>2019-01-16T13:25:00.002+08:00</published><updated>2019-01-16T13:25:59.868+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="新台幣"/><title type='text'>台幣的季節性效應</title><content type='html'>
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF9UvwwaRpqAYml9TL6nv2EU0UrTmlnVMicRTfSj1Hy9Oskt9t4-yCUF7mpmO9vAkz50dOAXDLl2G3g-LOGWKa9yw8J1bQ8SBET225flXRCdK6zRMndQe12BIGMmIp-g17p8cSztClbU4/s1600/%25E5%258F%25B0%25E5%25B9%25A3%25E7%259A%2584%25E5%25AD%25A3%25E7%25AF%2580%25E6%2580%25A7%25E6%2595%2588%25E6%2587%2589.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF9UvwwaRpqAYml9TL6nv2EU0UrTmlnVMicRTfSj1Hy9Oskt9t4-yCUF7mpmO9vAkz50dOAXDLl2G3g-LOGWKa9yw8J1bQ8SBET225flXRCdK6zRMndQe12BIGMmIp-g17p8cSztClbU4/s400/%25E5%258F%25B0%25E5%25B9%25A3%25E7%259A%2584%25E5%25AD%25A3%25E7%25AF%2580%25E6%2580%25A7%25E6%2595%2588%25E6%2587%2589.png&quot; width=&quot;400&quot; height=&quot;139&quot; data-original-width=&quot;1600&quot; data-original-height=&quot;556&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
上圖為新台幣每年的月平均報酬，可以看見台幣在10月到隔年的4月平均來說偏向升值，而在5月到9月平均來說偏向貶值


&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizltQZwKu7WBu1WwaTHgjg7wgu_32qFafdbVOpqWEAQ0Z6N2vM27jjR0L14313fDuln2C1IG5A9mBSf4a46bAWYSFmc206z3lfokKe_xq5OLbvmgrjOV4l3_VKJxHCd0_VPw8Hc5HQ3Zs/s1600/%25E5%258F%25B0%25E5%25B9%25A3%25E5%25AD%25A3%25E7%25AF%2580%25E6%2580%25A7%25E6%258B%2586%25E8%25A7%25A3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizltQZwKu7WBu1WwaTHgjg7wgu_32qFafdbVOpqWEAQ0Z6N2vM27jjR0L14313fDuln2C1IG5A9mBSf4a46bAWYSFmc206z3lfokKe_xq5OLbvmgrjOV4l3_VKJxHCd0_VPw8Hc5HQ3Zs/s400/%25E5%258F%25B0%25E5%25B9%25A3%25E5%25AD%25A3%25E7%25AF%2580%25E6%2580%25A7%25E6%258B%2586%25E8%25A7%25A3.png&quot; width=&quot;400&quot; height=&quot;236&quot; data-original-width=&quot;1600&quot; data-original-height=&quot;944&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
上圖為新台幣的時間序列，拆成了三項，依次為趨勢項、循環項與隨機項．


&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuSM4Rh1ZTo4Ppk5h_Ovd2Oux6_C-3SkKTi42rs8AcMOm65uPSmlU_cq8fs4e2i7WHkWSnmH4j2lR0l_hYzjAoa7zwgrtgr1v5cuGmSvnchDTZaacGqmgi0Rk10m7lpKXgBF3urpcy4-0/s1600/%25E5%258F%25B0%25E5%25B9%25A3%25E5%25AD%25A3%25E7%25AF%2580%25E6%2580%25A7%25E9%25AB%2598%25E4%25BD%258E%25E9%25BB%259E.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuSM4Rh1ZTo4Ppk5h_Ovd2Oux6_C-3SkKTi42rs8AcMOm65uPSmlU_cq8fs4e2i7WHkWSnmH4j2lR0l_hYzjAoa7zwgrtgr1v5cuGmSvnchDTZaacGqmgi0Rk10m7lpKXgBF3urpcy4-0/s400/%25E5%258F%25B0%25E5%25B9%25A3%25E5%25AD%25A3%25E7%25AF%2580%25E6%2580%25A7%25E9%25AB%2598%25E4%25BD%258E%25E9%25BB%259E.png&quot; width=&quot;400&quot; height=&quot;245&quot; data-original-width=&quot;1600&quot; data-original-height=&quot;978&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
這是拆解後的台幣，純粹循環項的部分，會發現到很有意思的事情，美元兌換台幣的循環高點，也就是我們說的台幣貶值的低點會發生在10月份左右

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvZiON_SypMSPhkYdezZMUcJh6p_sd5IWRlPfRdZlnyBaOnoOd6FJekpLALwJcsHAply0Oprc8csCmqybNUzPHfwSMRlaH21neLwVP6nn9gyLueFjieUfvq6ofaBo9p1VqOKJDSESk7hQ/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-01-16+%25E4%25B8%258B%25E5%258D%25881.01.27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvZiON_SypMSPhkYdezZMUcJh6p_sd5IWRlPfRdZlnyBaOnoOd6FJekpLALwJcsHAply0Oprc8csCmqybNUzPHfwSMRlaH21neLwVP6nn9gyLueFjieUfvq6ofaBo9p1VqOKJDSESk7hQ/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-01-16+%25E4%25B8%258B%25E5%258D%25881.01.27.png&quot; width=&quot;400&quot; height=&quot;131&quot; data-original-width=&quot;1330&quot; data-original-height=&quot;434&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/57312582871789361/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://volatilitymark.blogspot.com/2019/01/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/57312582871789361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/57312582871789361'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/2019/01/blog-post.html' title='台幣的季節性效應'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF9UvwwaRpqAYml9TL6nv2EU0UrTmlnVMicRTfSj1Hy9Oskt9t4-yCUF7mpmO9vAkz50dOAXDLl2G3g-LOGWKa9yw8J1bQ8SBET225flXRCdK6zRMndQe12BIGMmIp-g17p8cSztClbU4/s72-c/%25E5%258F%25B0%25E5%25B9%25A3%25E7%259A%2584%25E5%25AD%25A3%25E7%25AF%2580%25E6%2580%25A7%25E6%2595%2588%25E6%2587%2589.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5995716178000567856.post-3532265550204891355</id><published>2017-03-21T14:54:00.001+08:00</published><updated>2017-03-21T15:32:27.042+08:00</updated><title type='text'>年節效應與財報效應的再頗析</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrd6fTwucAESblLk9bpdDN_zEmov67aCg0ie5efr1Yis4J9M7KK0CZ8YAcUWIn8rCLvmkn5zB0Ymr_TJUQGgfNqLHERZV4Ib3g8YAPjNSCGiesdBt_vw_pvg1UOEii5N6ito4NGslBTG8/s1600/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrd6fTwucAESblLk9bpdDN_zEmov67aCg0ie5efr1Yis4J9M7KK0CZ8YAcUWIn8rCLvmkn5zB0Ymr_TJUQGgfNqLHERZV4Ib3g8YAPjNSCGiesdBt_vw_pvg1UOEii5N6ito4NGslBTG8/s640/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 接著上次的話題我們來做個回測，很簡單就是11/1買進台指，隔年4/30多單出場，同時在4/30放空，當年的11/1空單回補，單邊設2000。我的設計是多單都不設定停損，空單有設定移動式停損，但沒有處理息值，也就是做空每年大概有400點是賺不到的。&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 先說結論，基本上一年股票真的就作這一波就夠。第二，4/30通常都是當年度的反轉點，同時如果當時的正價差在40點以上會更明顯。上圖的圖二為正逆價差，圖三為電金價差2對3。&lt;br /&gt;
4/30號後就要公布當年度季報與去年年報，績效爛的，就補跌，績效好的，早就反應。&lt;br /&gt;
績效如下：&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNBcaE1IMA7CJ12dhOyd_JMkdjRp5RZmxsZ_28_KWz7c4gue-zYVhXJ7at1nAAmworC3BZTMmtTRq1RvqVyirwPpk9Ozi6JMD5BtLc6VcEZmbAT2zuOoyluJKA64RPxO_2dWzjTUa1JQM/s1600/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589%25E5%25A4%259A%25E7%25A9%25BA%25E9%2583%25BD%25E5%2581%259A.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;443&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNBcaE1IMA7CJ12dhOyd_JMkdjRp5RZmxsZ_28_KWz7c4gue-zYVhXJ7at1nAAmworC3BZTMmtTRq1RvqVyirwPpk9Ozi6JMD5BtLc6VcEZmbAT2zuOoyluJKA64RPxO_2dWzjTUa1JQM/s640/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589%25E5%25A4%259A%25E7%25A9%25BA%25E9%2583%25BD%25E5%2581%259A.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; 上圖這是多空都做的績效曲線。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXddR4gThabhaHrC_G1icbGhz4xmUr77sGfJpqurH7IIVh-yOXZHJ5wlHT2NS0-6Qnhw8jgtU_cb4F5VEUCE0yvWWa_AHopFNqhqSOpWqZT6aPe6Z31Us7xWLxPYIv36JkewY1LOBQODQ/s1600/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589%25E5%258F%25AA%25E5%2581%259A%25E5%25A4%259A.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;506&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXddR4gThabhaHrC_G1icbGhz4xmUr77sGfJpqurH7IIVh-yOXZHJ5wlHT2NS0-6Qnhw8jgtU_cb4F5VEUCE0yvWWa_AHopFNqhqSOpWqZT6aPe6Z31Us7xWLxPYIv36JkewY1LOBQODQ/s640/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589%25E5%258F%25AA%25E5%2581%259A%25E5%25A4%259A.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; 上圖是只做多的績效曲線，也就是11/1買，隔年4/30多單出場。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNf4t-NPUGnLrWd5dV25_sDlFiao01ArGSBsanik11XbW-5Mnep9xQ_6vd5oNzz0aMX4WM7EKzcEH-PfxI_6OovaPWt38uqc7xDrHmGrR5Cdopz-gXXKP4VBpcwnUWx0c53ergxNMI5c4/s1600/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589%25E5%258F%25AA%25E5%2581%259A%25E7%25A9%25BA.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;504&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNf4t-NPUGnLrWd5dV25_sDlFiao01ArGSBsanik11XbW-5Mnep9xQ_6vd5oNzz0aMX4WM7EKzcEH-PfxI_6OovaPWt38uqc7xDrHmGrR5Cdopz-gXXKP4VBpcwnUWx0c53ergxNMI5c4/s640/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589%25E5%258F%25AA%25E5%2581%259A%25E7%25A9%25BA.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; 上圖是只做空的績效曲線，也就是4/30空，當年的11/1回補，這裡有加上移動式停損。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSN98PZNvMf63OvVLL2DITB1jXdfvrD1TMUCcZX4dvMyRyeoHXlsNW4mqdmp_KZBH0a3yWSz5KZg9P4NbmbMkB_oKha4mWPj1H9c6C1Vd_JSluMpAB7mNt2jd4YZ01dQF4hMs1-sPq8gs/s1600/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589%25E7%25A8%258B%25E5%25BC%258F%25E7%25A2%25BC.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSN98PZNvMf63OvVLL2DITB1jXdfvrD1TMUCcZX4dvMyRyeoHXlsNW4mqdmp_KZBH0a3yWSz5KZg9P4NbmbMkB_oKha4mWPj1H9c6C1Vd_JSluMpAB7mNt2jd4YZ01dQF4hMs1-sPq8gs/s640/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589%25E7%25A8%258B%25E5%25BC%258F%25E7%25A2%25BC.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/3532265550204891355/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://volatilitymark.blogspot.com/2017/03/blog-post.html#comment-form' title='5 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/3532265550204891355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/3532265550204891355'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/2017/03/blog-post.html' title='年節效應與財報效應的再頗析'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrd6fTwucAESblLk9bpdDN_zEmov67aCg0ie5efr1Yis4J9M7KK0CZ8YAcUWIn8rCLvmkn5zB0Ymr_TJUQGgfNqLHERZV4Ib3g8YAPjNSCGiesdBt_vw_pvg1UOEii5N6ito4NGslBTG8/s72-c/%25E5%25AD%25A3%25E7%25AF%2580%25E6%2595%2588%25E6%2587%2589.JPG" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5995716178000567856.post-449966246877665192</id><published>2016-12-09T08:28:00.000+08:00</published><updated>2016-12-09T08:51:58.689+08:00</updated><title type='text'>耶誕效應+元月效應+農曆春節效應+財報空窗期(11/1-隔年4/30)</title><content type='html'>&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgLMVFtJ3w0svWvT7p-4YwYDo-mCb2neFfonUTeBikJByv4NtynqCsH7IfJHBgJTQqp5Fhxq9cXCukqJP2aIAc_aEvnfnyWcq83DMHH7InQnkqtp6Ob0fSLboBrJyZtoxtOuHLoymCF88/s1600/hedge1209.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgLMVFtJ3w0svWvT7p-4YwYDo-mCb2neFfonUTeBikJByv4NtynqCsH7IfJHBgJTQqp5Fhxq9cXCukqJP2aIAc_aEvnfnyWcq83DMHH7InQnkqtp6Ob0fSLboBrJyZtoxtOuHLoymCF88/s400/hedge1209.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;台指日線策略(技術與籌碼面翻多)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz0Dr7zfyCv2j-R-gKJMo-En5YLO-0ovWrmdu2wF7LfSgUivUdVlB9QS-5MgqlA0NtA5E57v6lQdxqXfKUkvwc0PCMB3TAPDZF6oq8DTQ-Da_RQkemc-3ivFaR14SPCMl-HEHvlV2uW9s/s1600/TWII.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz0Dr7zfyCv2j-R-gKJMo-En5YLO-0ovWrmdu2wF7LfSgUivUdVlB9QS-5MgqlA0NtA5E57v6lQdxqXfKUkvwc0PCMB3TAPDZF6oq8DTQ-Da_RQkemc-3ivFaR14SPCMl-HEHvlV2uW9s/s400/TWII.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;台指前11大權值股&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPlzZgapbh7peZ7VA9N3YqWOdK0r-njTu88ibTcGgGmQ23t9DwKqMD0iN8fuMJO5eP5JNWSquOTDyQluwpSXig9Yd5XT3AT_boagHgROz1y25DquVBdpzoAMDjtTVm6hPXvzG4xxW8gRM/s1600/%25E9%259B%25BB%25E9%2587%2591%25E5%2583%25B9%25E5%25B7%25AE1209.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPlzZgapbh7peZ7VA9N3YqWOdK0r-njTu88ibTcGgGmQ23t9DwKqMD0iN8fuMJO5eP5JNWSquOTDyQluwpSXig9Yd5XT3AT_boagHgROz1y25DquVBdpzoAMDjtTVm6hPXvzG4xxW8gRM/s400/%25E9%259B%25BB%25E9%2587%2591%25E5%2583%25B9%25E5%25B7%25AE1209.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;電金價差2對3(電子轉強)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTi2QUimiOLymUSver6eaYzlEP9oKojxroMZqK3j_dZ7gtNcrTcQmudSRPIt-424-JSM8h9bflhiuhM_XA84IA8gz99xzJSdSQAiE_QqcnVUTOomZXI8mzfGc0UhWu_4pynz6UPBQWBXg/s1600/%25E6%2591%25A9%25E5%258F%25B0%25E5%25BB%25B6%25E5%25BE%258C%25E9%2596%258B%25E7%259B%25A4.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTi2QUimiOLymUSver6eaYzlEP9oKojxroMZqK3j_dZ7gtNcrTcQmudSRPIt-424-JSM8h9bflhiuhM_XA84IA8gz99xzJSdSQAiE_QqcnVUTOomZXI8mzfGc0UhWu_4pynz6UPBQWBXg/s400/%25E6%2591%25A9%25E5%258F%25B0%25E5%25BB%25B6%25E5%25BE%258C%25E9%2596%258B%25E7%259B%25A4.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;12/8摩台10:15延後開盤&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&amp;nbsp; &amp;nbsp; 昨日12/8盤中出現一個有趣的現象，就是新加坡交易所延後到10:15才開盤，重點不是甚麼原因造成延後開盤，重點是在10:15分摩台期貨還沒開盤之前，市場是沒甚麼波動的，到了10:15後市場才開始發動上攻，也就是說，昨天如果沒有新加坡交易所出包的這個事件，台指應該是開高走高收最高的，可見外資期貨操盤的重心是在摩台期貨。&lt;div&gt;
&amp;nbsp; &amp;nbsp; 昨日的行情是量(爆量)，價(站在本週均與前週均之上)，籌碼(上漲家&amp;gt;下跌家)，電金價差(電子相對強)，摩台價差(摩台相對強)；所有的因素都告訴昨天只能往上做，從事後來看，外資確實大幅度買超，技術面上也突破了最近的15天高，同時站上前月平均成本價，同時前十大特法與外資期貨都是加碼的，再看前11大權值股台塑四寶與金融龍頭國泰與富邦真是強，剩下就是電子了，正好昨天電子也開始轉強，傳統的第四季到隔年的第一季又是財報空窗期，又有三個財務上的效應假說(耶誕、元月、農曆春節效應)，台股就是驚驚漲了。&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/449966246877665192/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://volatilitymark.blogspot.com/2016/12/111-430.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/449966246877665192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/449966246877665192'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/2016/12/111-430.html' title='耶誕效應+元月效應+農曆春節效應+財報空窗期(11/1-隔年4/30)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgLMVFtJ3w0svWvT7p-4YwYDo-mCb2neFfonUTeBikJByv4NtynqCsH7IfJHBgJTQqp5Fhxq9cXCukqJP2aIAc_aEvnfnyWcq83DMHH7InQnkqtp6Ob0fSLboBrJyZtoxtOuHLoymCF88/s72-c/hedge1209.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5995716178000567856.post-1034157704935502572</id><published>2016-12-02T11:46:00.001+08:00</published><updated>2016-12-02T11:48:15.565+08:00</updated><title type='text'>電子弱還是個趨勢</title><content type='html'>&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt6NKYOB3I3GNvFAzWGGubUlnbzlSlr7UUjNkh38vikuIzf428yAe5pmULBd9AIihMug_SozD8TSvVoMvi4kGe-Ve_Ny45-lsmtL6hzZBb1ebNnGsFrLlcKNEjVleBtNTPpS-1xRpBzfY/s1600/Hedge.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt6NKYOB3I3GNvFAzWGGubUlnbzlSlr7UUjNkh38vikuIzf428yAe5pmULBd9AIihMug_SozD8TSvVoMvi4kGe-Ve_Ny45-lsmtL6hzZBb1ebNnGsFrLlcKNEjVleBtNTPpS-1xRpBzfY/s640/Hedge.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;避險策略12/01(淨部位-5)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO77tbaqWRVrryNd0eax6FR6ANMhjRmYg1zDdYhwGHtmnWHMavevtduG0K56LgzBJI2X1z9F67poFg6sFbtv-aB-_iwMXODNX27IJgzJrUQvujbQpVplIqsXfPQpnCBdTDATkuiFuSWLU/s1600/%25E9%259B%25BB%25E9%2587%25912%25E5%25B0%258D3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO77tbaqWRVrryNd0eax6FR6ANMhjRmYg1zDdYhwGHtmnWHMavevtduG0K56LgzBJI2X1z9F67poFg6sFbtv-aB-_iwMXODNX27IJgzJrUQvujbQpVplIqsXfPQpnCBdTDATkuiFuSWLU/s640/%25E9%259B%25BB%25E9%2587%25912%25E5%25B0%258D3.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;電金2對3指數(電弱金強)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRnHUsobLedYhM5txnpy3YTF-znhm9SmvCUD6Fw4ekSAwHjBb8IZ3bfUa6KQ4XXiDF8PW8udJWT-Io-F7yfwV0GxKPA-zEQkk2GwWSq6hsb8aQ3mDnmMxOuBSfclnTq66jnceVTIexKFc/s1600/%25E8%25B2%25BB%25E5%258D%258A.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRnHUsobLedYhM5txnpy3YTF-znhm9SmvCUD6Fw4ekSAwHjBb8IZ3bfUa6KQ4XXiDF8PW8udJWT-Io-F7yfwV0GxKPA-zEQkk2GwWSq6hsb8aQ3mDnmMxOuBSfclnTq66jnceVTIexKFc/s640/%25E8%25B2%25BB%25E5%258D%258A.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;費半權值股&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;目前從技術面上看，上個月的平均成本價是在9092，最近15天的高是在9246，要同時具備這兩條件才有翻多的本錢，今天受到費城半導體的影響又加重了電子的弱勢，可以看到電金價差2對3的程式部位還是空訊，表示電子還是相對很弱，在電子相對弱勢的態勢下，大盤最好的狀況就是盤整，現在每天的量能700億就算是有量，真的瞞可悲的。券商要怎麼活下去。從我短線上對量的研究也可以發現，有量真的就會有價，所以在量這麼低迷的狀況下，要有甚麼大波動只要看量就好，無量阿咪托福。</content><link rel='replies' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/1034157704935502572/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://volatilitymark.blogspot.com/2016/12/blog-post.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/1034157704935502572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/1034157704935502572'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/2016/12/blog-post.html' title='電子弱還是個趨勢'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt6NKYOB3I3GNvFAzWGGubUlnbzlSlr7UUjNkh38vikuIzf428yAe5pmULBd9AIihMug_SozD8TSvVoMvi4kGe-Ve_Ny45-lsmtL6hzZBb1ebNnGsFrLlcKNEjVleBtNTPpS-1xRpBzfY/s72-c/Hedge.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5995716178000567856.post-5990056936071797248</id><published>2016-11-29T12:44:00.002+08:00</published><updated>2016-12-02T10:17:15.600+08:00</updated><title type='text'>爆量當過濾</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc3orLkA0PkIsvyYlUZyY6HCszDv9eM8eoyCJTTUfqKhpHKczW2IcqNucdEPAeKPjOJ_qdfPVO_09nAj_Ks6N2dAF9MJ_guqb0AmkNcq5aWUagLZfFukUYpywGZAbZP9xNyHhIoQY3jZ0/s1600/bigvolume3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc3orLkA0PkIsvyYlUZyY6HCszDv9eM8eoyCJTTUfqKhpHKczW2IcqNucdEPAeKPjOJ_qdfPVO_09nAj_Ks6N2dAF9MJ_guqb0AmkNcq5aWUagLZfFukUYpywGZAbZP9xNyHhIoQY3jZ0/s400/bigvolume3.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSpb8gL8i_e7zJaxEkHX8BojM_GSS08PzjOJZYet7ctsvb5AknXjQZrSRmhizHHtvEn58swih8Nuzp_7jgqoaFjveTAmjV20rF7GWQXKQ8yw16WVA02yqj-n-WIxqzAg-lYljsqBd8_wY/s1600/bigvolume2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;398&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSpb8gL8i_e7zJaxEkHX8BojM_GSS08PzjOJZYet7ctsvb5AknXjQZrSRmhizHHtvEn58swih8Nuzp_7jgqoaFjveTAmjV20rF7GWQXKQ8yw16WVA02yqj-n-WIxqzAg-lYljsqBd8_wY/s400/bigvolume2.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;a href=&quot;https://docs.google.com/document/d/16rXpngDuUPLRrQPIGDrN8dpH7dg9XqgPQmllSZlE9z8/edit?usp=sharing&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;程式碼分享連結&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
量比價先行，還是價比量先行，至少我從現象可以發現，有量就是好時機，有量才開槍，沒量就少動；程式碼在連結檔中可以去看看。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
我在這的過濾條件也比較嚴格：&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
首先爆量(就是預估量&amp;gt;昨日量的1.25倍)同時限制進場交易時間(9:00-12:00)。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
其次是多單進場我用的是價格大於本周均，且電子比金融強，且電子與金融都比開盤強。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
空單的條件就相反。&lt;br /&gt;
再進一步發現，當天量比昨天大同時當天量是逐步縮小，很適合作空。&lt;br /&gt;
另外，就是當天量比昨天小同時當天量又逐步縮小，很適合做多。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
出場就用我慣用的方式，初始停損加移動式停損。&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/5990056936071797248/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_29.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/5990056936071797248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/5990056936071797248'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_29.html' title='爆量當過濾'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc3orLkA0PkIsvyYlUZyY6HCszDv9eM8eoyCJTTUfqKhpHKczW2IcqNucdEPAeKPjOJ_qdfPVO_09nAj_Ks6N2dAF9MJ_guqb0AmkNcq5aWUagLZfFukUYpywGZAbZP9xNyHhIoQY3jZ0/s72-c/bigvolume3.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5995716178000567856.post-4340039889217476899</id><published>2016-11-26T17:49:00.001+08:00</published><updated>2016-11-29T12:16:41.028+08:00</updated><title type='text'>預估量的過濾</title><content type='html'>&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjga5FHiEGAyVnDFKB9qqKYIn-OqWf0cCQaExDjLO2nkC6vK0yWMVtC1u-LUzt-oXOKS0aHRtsBTgWxDwRcTtDyVWbzm5EnYCzT_aBdzlUYxgtfvqjTMT0nt6Z71330C0o03USX2VcWSiA/s1600/VolumeForcast.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjga5FHiEGAyVnDFKB9qqKYIn-OqWf0cCQaExDjLO2nkC6vK0yWMVtC1u-LUzt-oXOKS0aHRtsBTgWxDwRcTtDyVWbzm5EnYCzT_aBdzlUYxgtfvqjTMT0nt6Z71330C0o03USX2VcWSiA/s320/VolumeForcast.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;data2=加權預估成交量&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;a href=&quot;https://drive.google.com/file/d/0B_iEGTSfD3mJUkRCcUcwYXRiSVE/view?usp=sharing&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://drive.google.com/file/d/0B_iEGTSfD3mJUkRCcUcwYXRiSVE/view?usp=sharing&quot; target=&quot;_blank&quot;&gt;提供預估量1分鐘資料下載(From2015/8/7To2016/11/25)&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie1crVFRUiUdB3WMtCBS56ticMaehFcfhV7oF6lOb4GTES6E_Id6ODvLUVdti3sgomT1zgstKMXMA_b4RTz9W4_idXwsHvpCja7MEfXhi6R8xVvL3r5v48IaqihOFYQ4_tsYqq4aoWKTs/s1600/condition.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie1crVFRUiUdB3WMtCBS56ticMaehFcfhV7oF6lOb4GTES6E_Id6ODvLUVdti3sgomT1zgstKMXMA_b4RTz9W4_idXwsHvpCja7MEfXhi6R8xVvL3r5v48IaqihOFYQ4_tsYqq4aoWKTs/s320/condition.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
預估量基本上就是用加權累計成交量乘上一個回歸的參數值，這個回歸的參數值是個固定值，但是累計乘交量是個變動值，所以預估量是跟著當日加權累計成交量逐步的修正過程，不瞭解的直接去問google就知道，但我的預估量是用券商提供的DDE存取的，因為這樣可以用來做一分K的交易，網路上提供的預估量參數都是以五分鐘修正一次，對一分鐘來說太久了，但我的資料不太多，有需要的直接去上面那個連結可以下載。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
情境一表示預估量&amp;gt;昨量且當日的預估量是逐步走高&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
以此類推可以去測試以上的情境分析下何時做多何時做空比較好。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
{************Set ForcastVolume=close of data2**********************************}&lt;br /&gt;
var:lastvolume(0),HV(0),LV(0),FirstNMinAVVolume(0),volumeForcast(0);&lt;br /&gt;
volumeForcast=close of data2;&lt;br /&gt;
lastvolume=closed(1) of data2;&lt;br /&gt;
FirstNMinAVVolume=opend(0) of &amp;nbsp;data2;&lt;br /&gt;
&lt;br /&gt;
condition1=volumeForcast&amp;gt;lastvolume and volumeForcast&amp;gt;FirstNMinAVVolume;&lt;br /&gt;
condition2=volumeForcast&amp;gt;lastvolume and volumeforcast&amp;lt;FirstNMinAVVolume;&lt;br /&gt;
condition3=volumeForcast&amp;lt;lastvolume and volumeforcast&amp;gt;FirstNMinAVVolume;&lt;br /&gt;
condition4=volumeForcast&amp;lt;lastvolume and volumeforcast&amp;gt;FirstNMinAVVolume;&lt;br /&gt;
condition5=c cross over highest(high,len)[1];&lt;br /&gt;
condition6=c cross over lowest(low,len)[1];&lt;br /&gt;
&lt;br /&gt;
input:flag(1);&lt;br /&gt;
switch(flag)&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp;case 1:&lt;br /&gt;
&amp;nbsp;if condition1 &amp;nbsp;and condition5 then buy(&quot;buy1&quot;) next bar open;&lt;br /&gt;
&amp;nbsp;case 2:&lt;br /&gt;
&amp;nbsp;if condition2 &amp;nbsp;and condition5 &amp;nbsp;then buy(&quot;buy2&quot;) next bar open;&lt;br /&gt;
&amp;nbsp;case 3:&lt;br /&gt;
&amp;nbsp;if condition3 &amp;nbsp;and condition5 &amp;nbsp;then buy(&quot;buy3&quot;) next bar open;&lt;br /&gt;
&amp;nbsp;case 4:&lt;br /&gt;
&amp;nbsp;if condition4 &amp;nbsp;and condition5 &amp;nbsp;then buy(&quot;buy4&quot;) next bar open;&lt;br /&gt;
end;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/4340039889217476899/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_26.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/4340039889217476899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/4340039889217476899'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_26.html' title='預估量的過濾'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjga5FHiEGAyVnDFKB9qqKYIn-OqWf0cCQaExDjLO2nkC6vK0yWMVtC1u-LUzt-oXOKS0aHRtsBTgWxDwRcTtDyVWbzm5EnYCzT_aBdzlUYxgtfvqjTMT0nt6Z71330C0o03USX2VcWSiA/s72-c/VolumeForcast.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5995716178000567856.post-5945643187425897462</id><published>2016-11-25T09:00:00.002+08:00</published><updated>2016-11-25T09:17:59.690+08:00</updated><title type='text'>交易靠的是對數據的反應，而不是在預測</title><content type='html'>&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxgnKNgP1-f-w6cHymRFHQjctM39dHjGIu9T8u71_B6gArvBF0E_G86bQ5QpMh6in2ftmddSMa7fss854JzoUAjRl5IhXrTmdg1apjY55ijhBtQ1xor4foHY3SSmaLODZNTN5ZUSWoGw4/s1600/%25E7%25B1%258C%25E7%25A2%25BC.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;170&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxgnKNgP1-f-w6cHymRFHQjctM39dHjGIu9T8u71_B6gArvBF0E_G86bQ5QpMh6in2ftmddSMa7fss854JzoUAjRl5IhXrTmdg1apjY55ijhBtQ1xor4foHY3SSmaLODZNTN5ZUSWoGw4/s320/%25E7%25B1%258C%25E7%25A2%25BC.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;預估量、上漲下跌家、電金2對3市值、摩台5對2市值&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMRKHkZ-L7HjleNSJW5-3blTedJGhkBh9aCqdoTo6g_HvVPovH2xyDjZAyISTmmTRKMB7cain24tBmfpOMSbnLzU1BLh9PPg6K7mv-aeJyf4ahTBo7uoYyk8GtTVhhAbJq39pMfK2g3m0/s1600/TE2TF3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMRKHkZ-L7HjleNSJW5-3blTedJGhkBh9aCqdoTo6g_HvVPovH2xyDjZAyISTmmTRKMB7cain24tBmfpOMSbnLzU1BLh9PPg6K7mv-aeJyf4ahTBo7uoYyk8GtTVhhAbJq39pMfK2g3m0/s320/TE2TF3.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;電金2對3市值&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; 這兩天的盤量都縮(當日量&amp;lt;昨日量)，電子相對金融弱，摩台也相對金融弱，11/23的11:55am之後跌家數&amp;gt;漲家數。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; 從第二張圖的訊號11/24空電買金又進場，可見電子又相對金融轉弱，&lt;br /&gt;
從圖二的電金價差圖可以很明顯的看到金融這波是不斷的在走高。&lt;br /&gt;
這些都是數據告訴我們的現象。交易也只是對這些現象做立即的反應，&lt;br /&gt;
對了就抱著，錯了就停損，不會去關心會漲到哪或跌到哪?&lt;br /&gt;
因為那是上帝才知道的事，我們只知道當下。&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/5945643187425897462/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_25.html#comment-form' title='5 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/5945643187425897462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/5945643187425897462'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_25.html' title='交易靠的是對數據的反應，而不是在預測'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxgnKNgP1-f-w6cHymRFHQjctM39dHjGIu9T8u71_B6gArvBF0E_G86bQ5QpMh6in2ftmddSMa7fss854JzoUAjRl5IhXrTmdg1apjY55ijhBtQ1xor4foHY3SSmaLODZNTN5ZUSWoGw4/s72-c/%25E7%25B1%258C%25E7%25A2%25BC.JPG" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5995716178000567856.post-1544239976925700793</id><published>2016-11-22T19:42:00.004+08:00</published><updated>2016-11-23T22:58:17.356+08:00</updated><title type='text'>台指的避險策略</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzj6ON_yhHV9OJ37_0PURxjUDf7AhY8DglJrJFywaBNQTZSXsLHHd7y3e3uP0DASXM7rELga_ouEwivsJNGLAhT47sN3GSuMUSG2akAeEENryw-Lr1cJfgj94G0GHelBCt_knSFh8e6hA/s1600/WTX%2526.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzj6ON_yhHV9OJ37_0PURxjUDf7AhY8DglJrJFywaBNQTZSXsLHHd7y3e3uP0DASXM7rELga_ouEwivsJNGLAhT47sN3GSuMUSG2akAeEENryw-Lr1cJfgj94G0GHelBCt_knSFh8e6hA/s400/WTX%2526.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;台指的日線避險策略&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
這四支程式是以前跑法人的時候常會用到的訊號策略，從四個程式的邏輯可以加總起來對盤勢多空的看法。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; 首先我先解釋左下角的程式邏輯，是用前十大特定法人的未平倉口數當個訊號，台灣期貨交易所每天都會公佈，也唯獨就只有盤後法人的未平倉口數可以分為多方跟空方，我的邏輯是當價漲(收盤價＞昨收）多方ＯＩ增加同時空方ＯＩ減少就買一口，反之就空一口，從上圖可以看出來前十大特法三天前就在作多了，今天已經加碼第三口了，那外資呢是今天開始作多，所以下面兩個是籌碼的程式，一個是前十大特法，一個是外資，外資是包含在前十大特法內。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; 那右上角那支程式呢？說明的是技術面的突破，我是特別選了最近１５天的高低點突破，同時加了一個濾網，就是上個月的平均成本區，目前是空訊，有訊號出來就做３口，因為籌碼面有時候還是會有些偏誤，我給技術面的程式權重比較重，可以修正籌碼的偏誤，有時候外資的期貨部位會是搭配另外一個反方向的商品在套利(譬如T50反或是選擇權Put搭配期貨多單套利)，前十大特法倒反而比較有參考依據，特別在轉倉的時候。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; 最後就是左上角那支我最喜歡的程式了，用期貨交易所的VIX所寫的，專門在恐慌的時候摸底用的，邏輯上是這樣的，甚麼時候很恐慌呢？通常是下跌收黑同時VIX又異常飆高的時候最恐慌，所以我的邏輯超簡單，就是收盤價在９日均之下(表示在下跌的當下)，同時下跌(就是今天收盤價小於昨天收盤價)，收黑(就是今天的收盤要低於開盤價)，那極度恐慌要怎麼表達呢？就是VIX值的高點要高於VIX值14日均的1.7倍標準差，位甚麼是高點而不是用VIX收盤價呢？因為當天的盤中VIX高點異常飆高時才代表恐慌，恐慌都會是在盤中發生的，當這幾個條件同時發生時，隔天開盤進場買一口，重複的買，通常這種條件至多會發生個3到４次左右，然後甚麼時候出場呢？VIX回歸均值的時候出場。這個策略是用來回補空單用的。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; &amp;nbsp; 目前加總的訊號是＋１，也就是說從技術面上看是偏空，但從籌碼面上看是偏多，再從今天的摩台正價差，台指逆價差來看，同時電子期相對金融強，今天是籌碼面在軋空，技術面上要等到過了9307最近15天的高後才能說轉強，否則有時候籌碼的軋空完後常常又會回歸到技術面上的偏空，畢竟籌碼面都會是領先的，盤勢也都是動態過程，法人的交易上也都是漸進式的加碼或減碼，不會是一次到位的全部翻空或全部翻多。&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/1544239976925700793/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_82.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/1544239976925700793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/1544239976925700793'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_82.html' title='台指的避險策略'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzj6ON_yhHV9OJ37_0PURxjUDf7AhY8DglJrJFywaBNQTZSXsLHHd7y3e3uP0DASXM7rELga_ouEwivsJNGLAhT47sN3GSuMUSG2akAeEENryw-Lr1cJfgj94G0GHelBCt_knSFh8e6hA/s72-c/WTX%2526.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5995716178000567856.post-8790497420606522827</id><published>2016-11-22T18:17:00.002+08:00</published><updated>2016-11-23T22:43:08.159+08:00</updated><title type='text'>以摩台正逆價差相對強弱與電金價差相對強弱的訊號</title><content type='html'>&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGQIpTCVFRsLW9MRPxapcpOsbhUjEQDyawof2eJFziPdtYp6fthehw0_Oyhqnx3if4jFOe5PaWWeHadFW01HZ8raM3ElmZSJBHV6ecb1DhZlKG63OHlaxxrxy_MtD5NiLi07vTK9mtxag/s1600/Spread.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGQIpTCVFRsLW9MRPxapcpOsbhUjEQDyawof2eJFziPdtYp6fthehw0_Oyhqnx3if4jFOe5PaWWeHadFW01HZ8raM3ElmZSJBHV6ecb1DhZlKG63OHlaxxrxy_MtD5NiLi07vTK9mtxag/s400/Spread.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;摩台相對強弱與電金相對強弱&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 接續上一個文章我直接寫了一個訊號，邏輯上就非常簡單，濾網一就是摩台相對台指強，同時摩台為正價差，台指為逆價差，且以開盤為準電子相對金融強，同時用個時間當濾網(9:05-12:00)，然後進場用最近16根Ｋ線的高stop buy；今天就是標準的軋空盤。&lt;/div&gt;
&lt;div&gt;
那空單進場呢？就反過來作就對了。&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 出場呢？出場就比較複雜一點，剛開始用個起使停損，接著就用階梯式停損。&lt;/div&gt;
&lt;div&gt;
還有就是在結算的時候要早點出場。等下會分享一下我出場的程式碼；&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 這裡要先提一個移動停損點的劃法，也就是移動是停損的指標怎麼劃在圖上，&lt;/div&gt;
&lt;div&gt;
通常我的習慣是要把指標劃出了，特別是移動式停損點，這樣好去比對程式有沒有出錯。&lt;br /&gt;
因為程式碼太長，我乾脆就在每行的右邊加上注釋。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
var:BB(0),SS(0);&lt;br /&gt;
if i_MarketPosition=1 then BB=BB+1;｛用ＢＢ表示多單進場後的第幾根Bar｝&lt;br /&gt;
if i_MarketPosition=-1 then SS=SS-1;｛用ＳＳ表示多單進場後的第幾根Bar｝&lt;br /&gt;
if i_MarketPosition=0 then&lt;br /&gt;
begin&lt;br /&gt;
｛i_Marketposition是內建的指令，特別用在指標上，用以判斷現在訊號是多還是空｝&lt;br /&gt;
&amp;nbsp; BB=0;&lt;br /&gt;
&amp;nbsp; SS=0;&lt;br /&gt;
end;&lt;br /&gt;
{********************set &amp;nbsp; stop***************************************}&lt;br /&gt;
input:adj(1),multi(1),PT_threshold(20),Reverse(15);&lt;br /&gt;
var:Entryprice(0),longstop(0),shortstop(0),HH(0),LL(0),HC(0),LC(0),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; LongPT_threshold(0),ShortPT_threshold(0),LongPT(0),ShortPT(0);&lt;br /&gt;
if BB=1 then ｛多進場後的當下，對應在訊號就是Barssinceentry=0，要設定起始停損用}&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp; Entryprice=open;&lt;br /&gt;
&amp;nbsp; if Mod(entryprice*adj,10)&amp;lt;&amp;gt;0 then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;longstop=entryprice-(10*TickSize+Mod(entryprice*adj,10)*TickSize);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;end;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if Mod(entryprice*adj,10)=0 then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;longstop=entryprice-20*TickSize;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;end;&lt;br /&gt;
&amp;nbsp; LongPT_threshold=Entryprice+PT_threshold*TickSize;&lt;br /&gt;
&amp;nbsp; HH=high;｛進場當下的高｝&lt;br /&gt;
&amp;nbsp; HC=close;｛進場當下的收｝&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
if SS=-1 then ｛空單進場的當下，設定起始停損｝&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp; Entryprice=open;&lt;br /&gt;
&amp;nbsp; if Mod(entryprice*adj,10)&amp;lt;&amp;gt;0 then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;shortstop=entryprice+(20*TickSize-Mod(entryprice*adj,10)*TickSize);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;end;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if Mod(entryprice*adj,10)=0 then&lt;br /&gt;
&amp;nbsp; &amp;nbsp;begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;shortstop=entryprice+20*TickSize;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;end;&lt;br /&gt;
&amp;nbsp; ShortPT_threshold=Entryprice-PT_threshold*TickSize;&lt;br /&gt;
&amp;nbsp; LL=low;｛進場當下的低｝&lt;br /&gt;
&amp;nbsp; LC=close;｛進場當下的收｝&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
if high&amp;gt;HH then HH=high;｛進場後的新高｝&lt;br /&gt;
if close&amp;gt;HC then HC=close;&lt;br /&gt;
if low&amp;lt;LL then LL=low;｛進場後的新低｝&lt;br /&gt;
if close&amp;lt;LC then LC=close;&lt;br /&gt;
&lt;br /&gt;
if BB&amp;gt;1 then begin｛多單進場後，對應在訊號碼就是Barssinceentry&amp;gt;0}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if c&amp;gt;HH[1] then longstop=maxlist(longstop,minlist(low,low[1])-multi*averagetruerange(14));&lt;br /&gt;
{這裡就要特別解釋為甚麼停損會移動了，在進場後的第一根之後，如果收盤價站上進場後的高，這裡特別說明了是站上，所以就用c&amp;gt;HH[1]，不能用c&amp;gt;HH喔，這樣永遠不會站上進場後的高，然後停損怎麼移動呢？就是選擇最近兩根Ｋ選最低的那個價位再減一個彈性值，我選擇的是幾倍的ＡＴＲ，然後呢再跟原來的起始停損比取大者，因為有時候盤還沒站上進場後的新高時因為上下甩動大造成ＡＴＲ變大，結果移動停損就比起始停損大，這不合理，我就是要初始的停損固定在原來的價位，打掉就出掉了，除非盤勢對我有利，就是站上新高，我才位往上移動，好累，打好多字，目的就是要解釋清楚這行在操作上的意義，因為停損會移動就是靠這個邏輯。打完了｝&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if close&amp;lt;LongPT_threshold then LongPT=longstop;&lt;br /&gt;
｛這行是我多餘要來測試的，我之前就設了一個目標獲利點(LongPT)為了要試看看停利用的，如果大家要用可以試試看，不過我測試的結果，這種停利法會很早就出場，賺不到大根的，我們做程式交易的就是要抓肥尾，賺賠比要大才划算，程式交易就類似選擇權Long Gama的概念，就是在等大根波動，我喜歡波動，也愛不確定，市場愈不確定愈好，愈亂愈好，或是市場上有９０％往同一邊看的時候這樣最好，我最喜歡早上聽晨間新聞了，特別是ㄧ些廣播節目還有就是媒體的頭條，幾乎當天的盤勢都會逆著頭條走，特別是大家的方向都一致的時候，這很有趣，題外話啦！｝&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if close&amp;gt;LongPT_threshold and &amp;nbsp;(high&amp;gt;HH[1] and close&amp;gt;HC[1]) then LongPT=high-Reverse*TickSize;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
end;&lt;br /&gt;
if SS&amp;lt;-1 then begin&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if c&amp;lt;LL[1] then shortstop=minlist(shortstop,maxlist(high,high[1])+multi*averagetruerange(14));&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if close&amp;gt;ShortPT_threshold then ShortPT=shortstop;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if close&amp;lt;ShortPT_threshold and (low&amp;lt;LL[1] and close&amp;lt;LC[1]) then ShortPT=low+Reverse*TickSize;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
end;&lt;br /&gt;
if BB&amp;gt;1 then&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp;plot1(LongPT_threshold,&quot;longPT_threshold&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;plot2(Entryprice,&quot;entryprice&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;plot3(longPT,&quot;longPT&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;plot4(longstop,&quot;longstop&quot;);&lt;br /&gt;
end; &lt;br /&gt;
if SS&amp;lt;-1 then&lt;br /&gt;
begin&lt;br /&gt;
&amp;nbsp; &amp;nbsp;plot5(ShortPT_threshold,&quot;shortPT_threshold&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;plot6(Entryprice,&quot;entryprice&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;plot7(shortPT,&quot;shortPT&quot;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;plot8(shortstop,&quot;shortstop&quot;);&lt;br /&gt;
end;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; 以上的程式是移動式停損指標，大家可以試試看放在其它的商品，我特別用了一些通則，譬如用幾倍的ATR，這樣試用在不同的商品，同時我也用了TickSize，電子的TickSize就是0.05&lt;/div&gt;
&lt;div&gt;
金融的TickSize就是0.2，台指就是１）。&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/8790497420606522827/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_80.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/8790497420606522827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/8790497420606522827'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_80.html' title='以摩台正逆價差相對強弱與電金價差相對強弱的訊號'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGQIpTCVFRsLW9MRPxapcpOsbhUjEQDyawof2eJFziPdtYp6fthehw0_Oyhqnx3if4jFOe5PaWWeHadFW01HZ8raM3ElmZSJBHV6ecb1DhZlKG63OHlaxxrxy_MtD5NiLi07vTK9mtxag/s72-c/Spread.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5995716178000567856.post-7143834978286152841</id><published>2016-11-21T16:58:00.004+08:00</published><updated>2016-11-23T22:44:42.902+08:00</updated><title type='text'>濾網＿摩台正逆價差相對台指正逆價差＆電金價差</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6D-zvXD6LayPaYvnq1sCEXuWCqyiSkDQ4j8sFzUeauBAwLgto43xKX5HRkBU00Akpuw8sfsv1mkmxV-iaILXBTUn3IXNWmLhia0xQ0tC11bZMlF8KQ4qwzIoyoqDJljzhAAAa-cMd5LY/s1600/Relative.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6D-zvXD6LayPaYvnq1sCEXuWCqyiSkDQ4j8sFzUeauBAwLgto43xKX5HRkBU00Akpuw8sfsv1mkmxV-iaILXBTUn3IXNWmLhia0xQ0tC11bZMlF8KQ4qwzIoyoqDJljzhAAAa-cMd5LY/s1600/Relative.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6D-zvXD6LayPaYvnq1sCEXuWCqyiSkDQ4j8sFzUeauBAwLgto43xKX5HRkBU00Akpuw8sfsv1mkmxV-iaILXBTUn3IXNWmLhia0xQ0tC11bZMlF8KQ4qwzIoyoqDJljzhAAAa-cMd5LY/s400/Relative.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;b&gt;摩台相對台指正逆價差強弱VS電金價差強弱(濾網)&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
圖中的最上方為台指期與加權指數的走勢圖，其中綠色為加權指數，另外的是台指期貨；&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
第二個子圖為摩台期貨與摩台現貨的走勢圖，其中紅色為摩台現貨，另外的是摩台期貨；&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
第三個子圖為電子期貨；&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
第四個子圖為金融期貨&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
第五個圖是個指標，這個指標是一個相對強弱指標，既然有相對，那表示的是誰相對誰呢?&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
這個指標的程式碼如下:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
input:S1(10000*(close of data3-close of data4)/(close of data4)),&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; S2(10000*(close of data1-close of data2)/(close of data2));&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
var:Spread(0);&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Spread=S1-S2;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
plot1(Spread,&quot;Spread&quot;);&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
if spread&amp;gt;0 then setplotcolor(1,red) else setplotcolor(1,green);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
close of data1為台指期&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
close of data2 為加權指數&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
close of data3為摩台期&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
close of data4為摩台現&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
程式碼很簡單，但重要的是意義:上面的程式碼劃出來就是第五個圖，這表示了甚麼呢?&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
S1表示的是摩台期貨相對摩台現貨正逆價差的幅度，我刻意乘上了一個10000，這只是個規模 &amp;nbsp; &amp;nbsp; &amp;nbsp;的表示。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
S2表示的是台指期貨相對台指現貨正逆價差的幅度。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Spread=S1-S2呢?就表示摩台期貨相對現貨正逆價差的幅度是否比台指期相對現貨正逆價差的 &amp;nbsp; &amp;nbsp; &amp;nbsp; 幅度大或小。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
當Spread&amp;gt;0我表示成紅色，也就是摩台相對台指強。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
當Spread&amp;lt;0我表示成綠色，也就是摩台相對台指弱。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
S1我當作是外資對市場的看法(外資通常都是拿摩台去操作，主要是外資用美元計價方便)&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
S2我當作是散戶對市場的看法(島內的人很少會去下新加坡的摩台期貨)&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
當摩台的正逆價差相對台指期強的時候(Spread&amp;gt;0)，盤勢偏強，特別是在S1&amp;gt;0(摩台正價差時)且S2&amp;lt;0(台指逆價差時)特別容易產生軋空行情。像上周五(11/18)就特別明顯。這個指標可以當作一個有效的濾網。我程式上的濾網就只有加兩個條件。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
condition1=S1&amp;gt;0 and Spread&amp;gt;0(Long Filter)表示摩台相對台指強，同時摩台又是正價差。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
condition2=S2&amp;lt;0 and Spread&amp;lt;0(Short Filter)表示摩台相對台指弱，同時摩台又是逆價差。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
當然，這個條件在六-九月除權息的時候因為現貨對息值預估的調整就變得沒那麼準確。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
我曾經也嘗試過自己合成一個息值調整過後的加權現貨，跟息值調整過後的摩台現貨去run六-九月，效果也不好，主要是因為加權的結算跟摩台結算的時間不同，造成的偏誤。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
基本上程式交易上可以忽略掉六-九月。之後我會針對這發表我測試的結論。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
接著我要解釋第六個圖，也是個指標，這個指標的程式碼如下:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
input:Nday(1),flag(2),up(0.5),dw(-0.5);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
var:WTXAVCost(0),WTEAVCost(0),WTFAVCost(0);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
switch(flag)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
begin&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
case 1:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
WTXAVCost=(Highd(Nday) of data1+Lowd(Nday) of data1)*0.5;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
WTEAVCost=(Highd(Nday) of data5+Lowd(Nday) of data5)*0.5;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
WTFAVCost=(Highd(Nday) of data6+Lowd(Nday) of data6)*0.5;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
case 2:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
WTXAVCost=(opend(0) of data1);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
WTEAVCost=(opend(0) of data5);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
WTFAVCost=(opend(0) of data6);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
end;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
value1=100*(c of data1-WTXAVCost)/WTXAVCost;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
value2=100*(c of data5-WTEAVCost)/WTEAVCost;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
value3=100*(c of data6-WTFAVCost)/WTFAVCost;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
value4=value2-value3;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
plot1(0,&quot;Zeroline&quot;,yellow);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
plot2(value2,&quot;WTE%&quot;);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
plot3(value3,&quot;WTF%&quot;);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
plot4(value4,&quot;spread&quot;);if value4&amp;gt;0 then setplotcolor(4,red) else setplotcolor(4,green);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
plot5(up,&quot;up&quot;,red);&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
plot6(dw,&quot;dw&quot;,green);&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
在程式中我用了一個switch的指令，這只是要測試不同的情境。我先說明case2這個情境，&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
value2表示的是電子期相對當天開盤的強弱。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
value3表示的是金融期相對當天開盤的強弱。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
value4&amp;gt;0就表示當天開盤後電子相對金融強。反之電子相對金融弱。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
那case1的情境呢，在case1 情境中&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
value2表示的是電子期相對昨天平均成本的強弱。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
value3表示的是金融期相對昨天平均成本的強弱。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
value4&amp;gt;0就表示以昨天的平均成本當基準，電子相對金融強。反之電子相對金融弱。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
我個人試過，用當天開盤為比較基準相對好，不信的話大家可以試試(try and error)。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
因為台指中電子股的權重較重，當電子當天相對強的時候盤相對就強。這邏輯很簡單。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
所以電金價差的相對強弱也可以當個濾網。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
以上的程式有很難嗎?我想高中生都應該會寫吧?但程式交易上強調的不是程式，程式只是一個可以運用回測的工具，重點還是交易的想法，我不太愛用技術指標寫程式，因為，很難判斷是不是最佳化的結果，input太多，就會有過度最佳化的疑慮，相對強弱這個概念是個不錯的想法，丟出來讓大家參考參考。還有，有時候盤中稍微斷了資料我也不怕，因為相對蓋念這東西，不太會因為資料少了某部分就會因此改變，當然，如果當天的開盤價錯了就會有問題，不過這種錯誤是馬上可以修正的。&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://volatilitymark.blogspot.com/feeds/7143834978286152841/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_21.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/7143834978286152841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5995716178000567856/posts/default/7143834978286152841'/><link rel='alternate' type='text/html' href='http://volatilitymark.blogspot.com/2016/11/blog-post_21.html' title='濾網＿摩台正逆價差相對台指正逆價差＆電金價差'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6D-zvXD6LayPaYvnq1sCEXuWCqyiSkDQ4j8sFzUeauBAwLgto43xKX5HRkBU00Akpuw8sfsv1mkmxV-iaILXBTUn3IXNWmLhia0xQ0tC11bZMlF8KQ4qwzIoyoqDJljzhAAAa-cMd5LY/s72-c/Relative.JPG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>