2016年6月22日 星期三

[轉貼] Position Sizing Rules

Position Sizing Rules

 
October 4th, 2011
 
Following a small discussion I had about advantages and disadvantages of using different position sizing techniques in the ATC 2011 championship of the expert advisors I decided to talk a bit more about various position sizing rules that can used in Forex trading. It’s a very important topic and this blog’s readers agree with this thesis. In my opinion, there are 5 main types of position sizing techniques:
Below I try to explain more about each of these systems of rules.

Fixed position size

Probably the most widely used position size — a trader just uses a fixed lot size (for example, 1 standard lot) on all the positions. The technique is very simple to implement — both manually and in expert advisor. It doesn’t require any calculations. The problem is that it’s very limited and can be quite dangerous (if the fixed size is too high).
The income of the trader doesn’t rise with the growth of the account balance — so the trader isn’t earning profit that would be earned by employing some other position sizing models. When a trader sets fixed position size to some large amount compared to the account balance, there’s a danger that the account will get wiped out in case of a continuous losing streak.
For my ATC 2011 EA I’ve chosen this type of position sizing because it offers a very fast buildup of balance in the beginning and becomes less aggressive in the end. So far I’ve been lucky with it: after one big loss, 2 positions are showing nice profit. Nevertheless, I don’t recommend this position sizing system for your real account trading.
Example: Every position’s volume is set to 3 standard lots.

Martingale position sizing

If you think that the fixed position sizing is dangerous, then Martingale position sizing is definitely not for you. The main rule of this technique is to increase your position size as you take losses. It’s derived from Martingale gambling system, which involves doubling your bet anytime you lose and was very popular back in XIX century; it is still popular among some gamblers and Forex traders. This system offers a sure-fire money winning method for a trader with the infinite account balance, but, unfortunately, even George Soros‘ account isn’t infinitely big.
In Forex, Martingale position sizing is somewhat popular partially because it offers a comfort of potential revenge on the market. A trader doubling a position size after a loss is hoping to get back what was lost and also gain some profit at the same time. In reality, a streak of 5–6 losses in a row usually leaves the trading account empty.
Example: Using one lot as a position size, you’ve lost $1,000 on a trade. You increase the next position’s size to two standards lots to double your potential profit (to cover your previous loss). If that one is lost too, you double the position size again to 4 standard lots, and so on.

Fixed fractional position sizing

This system is often called reverse Martingale, because here a trader increases position size after a winning trade and decreases it after a losing trade. The idea is to minimize the risk of ruin and to increase exponentially the income in case of a continuous profitability of the employed trading strategy.
Although, it’s probably the most effective and safe position sizing systems for Forex, unfortunately, it also has its disadvantages. The biggest of them is that it works poorly with trading strategies that often involve losses after huge wins — such position sizing would then increase the loss, decreasing the overall strategy’s performance. I’ve dropped this method specifically because of that disadvantage, as my ATC 2011 EA often shows significant losses after winning a trade. Second disadvantage is a rather slow buildup of the account balance compared to fixed position sizing if moderate fraction ratio is used.
Example: Your account balance is $7,500. You decide to set your position size to 0.01% of your account size. $7,500 * 0.01% = 0.75 lot. So you set your position volume to 0.75. If you win, let’s say, $500, your balance increases to $8,000, and 0.01% of it will be 0.8 lot. If you lose, let’s say, also $500, your balance becomes $7,000, and 0.01% of it will be 0.7 lot.
As you see, it is a very flexible position sizing system because you can vary the ratio and thus the risk according your preference.

ATR-based position sizing

Actually, it’s just an additional rule for the fixed fractional position sizing technique (but can be used with any of them). It involves position size normalization according to the current value of Average True Range (ATR) indicator. ATR shows the volatility of the market. As ATR increases, a smaller position size would be advised because volatile market has a higher chance of pushing the trade out of its planned way. As ATR decreases, a bigger position can be opened as there’s less probability for a price spike to hit the stop-loss .
This position sizing add-on is useful for the trending Forex strategies and can be harmful for range trading, where spikes can be useful to hit take-profit .
Example: Your account balance is $10,000 and you decide to set your position size to 0.02% of the account size. You are trading EUR/USD and consider ATR = 0.00100 as a ”normal value”. Calculate fixed fractional position size: $10,000 * 0.02% = 2 lots . The current ATR is at 0.00221 (which means more than double “normal” volatility). Calculate ATR-adjusted position size: 2 lots / (0.00221 / 0.00100) = 0.905 . So you set your position volume to 0.905 lot (or, if your broker doesn’t allow using one thousandth fractions of a lot, 0.91 lot). Then this position wins you $2,700. For the next position you recalculate the fixed fractional position size: $12,700 * 0.02% = 2.54 lots . The FX market is raging with volatility and ATR on EUR/USD has risen to 0.00562. Now, recalculate the ATR-adjusted position size: 2.54 lots / (0.00562 / 0.00100) = 0.452 lot (or 0.45) .
This method to adjust position size is extremely adaptive but due to the amount of required calculations is better used with the automated Forex expert advisors rather than manually.

Risk-based position sizing

This one is also an addition to the other position sizing rules and is more popular with the fractional position sizing too. While, usually, a Forex trader bases the position size solely on the size of the account, here, one would also apply the size of the stop-loss of the particular position. The main idea with risk-based position sizing is to limit the potential loss to some fraction of the account balance based on the stop-loss .
Example: Your account balance is $12,000 and your stop-loss is set to 40 pips (normal pips), and you want to risk no more than 1.5% on your next EUR/USD trade. Calculate the maximum risk in dollars: $12,000 * 1.5% = $180 . 1 pip is worth $10 on 1 standard lot of EUR/USD. Calculate the position size: $180 / (40 pips * $10) = 0.45 . That is, if you want to risk no more than 1.5% on this trade with the given balance and stop-loss , you may open a position of 0.45 standard lot volume.
To calculate position size for risk-based method easily, you can use our free online Forex position size calculator.

Conclusion

Some traders also use no position sizing rules in Forex at all. That’s not a very professional trait. Position sizing can help you to improve the strong points of the trading strategy and decrease the chance of ruining the live trading account. If you know traders that still size their positions chaotically, direct them to this article, please :-).

If you have some questions or comments regarding the listed position sizing rules in Forex, please feel free to reply using the form below.


[轉貼] 各種資金管理模型的Easy Language - 藍色投機客

之前有報告過各種資金管理的模型,那時候是用MSA3這個軟體來做模擬和測試的,可是如果MSA3的試用期滿之後,可能就不能再繼續使用了。而在TS forum裡面,有個叫做Hamfon的高手,他把各種資金管理模型都寫成Easy Language了,所以有興趣的朋友可以直接用TS就來做資金管理的模擬和測試了。

他把八種資金管理的模型都寫出來了,分別是:
1 = Fixed Fraction (based on Percentage input, as well as CurrentBalance and Margin)
2 = Fixed Ratio (based on InvDelta, LotSize, CurrentBalance, and OriginalStake)
3 = Percent Risk (based on CurrentBalance, RiskPct and StopLossAmount)
4 = Percent Volatility (based on CurrentBalance and VolatilityPct)
5 = Fixed Lot (always same size)
6 = Fixed Margin Amount (increments/decrements the position size in fixed steps based on CurrentBalance and percentage of Margin)
7 = Fixed Margin Amount with Trailing (same as #6, but also temporarily decreases position size on a drawdown)
8 = Conservative Fixed (calculates based on CurrentBalance related to Margin and DrawDown)

 
而他用了一個簡單的三條移動平均線系統當作他測試進出場的系統,各位可以改寫成用你們自己的進出場系統,再搭配他的資金管理模型,就可以看出各種不同模型對於最終資產的影響。

下面是他原始的文章,裡面有基本的說明,還有每個參數的解說。附加的檔案我放在最下面:

==========================================================

Position sizing is a key element in strategy development yet too often overlooked. With anappropriate trade sizing strategy maximum potential drawdown of a system is understood and used in conjunction with increasing bet size as equity grows...both a must for making the most out of a system... and keeping afloat by minimizing risk. An excellent overview of position sizing can be found in Van Tharp's book 'Trade Your Way To Financial Freedom'.


With help from ebear, I have designed a position sizing Function for TradeStation that allows you to test several position sizing algorithms, and optimize them for particular trading conditions, tickers, timeframes, margins, and capital.


Although these algorithms are just a few of many possibilities, we have found them to be the basis for more complex schemes - and have, in general, tried to stay with the KISS simplicity principle.


We also implemented and tested the Optimal-F algorithm, but discarded it because the position size swings were, in our opinion, excessive, with higher maximum drawdown and risk of ruin.

The attached Function includes the following eight algorithms (with their parameters detailed below). A sample Strategy is also attached. This strategy (which works pretty well!) is a simple 3-moving average "stack" -
that is, we go long when fast and medium MA are both above the slow MA, and when the fast crosses up over the medium MA (stacked upside down for short trade signals). Note that I kept the parameters separate for most of the
algorithms, so that you can optimize them separately. Also, the parameters that are specific to a particular algorithm include that number in the parameter name. Recommended starting values for the Function Input
parameters are given in parentheses - these are the default values in the attached sample Strategy.


1 = Fixed Fraction (based on Percentage input, as well as CurrentBalance and Margin)
2 = Fixed Ratio (based on InvDelta, LotSize, CurrentBalance, and OriginalStake)
3 = Percent Risk (based on CurrentBalance, RiskPct and StopLossAmount)
4 = Percent Volatility (based on CurrentBalance and VolatilityPct)
5 = Fixed Lot (always same size)
6 = Fixed Margin Amount (increments/decrements the position size in fixed steps based on CurrentBalance and percentage of Margin)
7 = Fixed Margin Amount with Trailing (same as #6, but also temporarily decreases position size on a drawdown)
8 = Conservative Fixed (calculates based on CurrentBalance related to Margin and DrawDown)

Here are the parameters for the PositionSizer Function:
AlgorithmNum(1) - specify value 1 through 8 to choose which algorithm to use
OriginalStake(20000) - how much money you start with
MarginAmt(3700) - margin for futures
TradeLotSize(1) - Scaling adjustment - normally 1 for Futures, 100 for stocks
MaxLotSize(100) - trade no more than this many contracts
Factor(1) - level of conservative/aggressive trading
IncludeOpenPL(false) - do we include Profit/Loss from current open position in CurrentBalance?
FixedFracPct#1(0.3) - for Fixed Fraction
InvDelta#2(0.0005) - for Fixed Ratio
RiskPct#3(3.4) - for Percent Risk
StopLossPct#3#4(2) - for Percent Risk and Percent Volatility
VolatilityPct#4(4) - for Percent Volatility
VolatilityScaling#4(2) - for Percent Volatility
FixedLot#5(1) - for Fixed Lot
IncMarginPct#6#7(200) - Percentage of current "base" where we increase the position size
DecMarginPct#6#7(50) - Percentage of current "base" where we decrease the position size
TrailingPct#7(90) - Percentage of current "base" where we temporarily decrease the position size
MaxDrawDownBux#8(500) - Maximum allowed drawdown before changing position size

Comments and suggestions for improving the code are welcome - thanks! I also have other TradeStation strategies, functions, and indicators on my web site athttp://www.hamfon.com/daytrade . 

HamFon
HamFon@HamFon.com

========================================================
Easy Language 的檔案放在這裡:

[推薦] 期貨程式交易SOP – 曾永政 (阿政)

最早接觸到阿政的文章,是在聚財網上的「程式交易在期貨」專欄內。其實國內的程式交易人口到底有多少,根本沒有個底,但會把自己程式交易所碰到的問題跟心得寫在部落格上的交易者,實在是不多。有些是著重在上線前的系統化流程(像阿政)、有些是著重在策略本身的統計上驗證(像小肥牛)、有些是整個開發觀念及資金管控的系統化思考(像藍色投機客、Parkson),還有一些非常低調的交易者(像淩波微步)等,都是國內相當有經驗的「個體戶」前輩。

書中有幾個觀念是很值得思考的,像是策略上線前的in/out sample驗證、策略生死薄、以及position size的變換交易等,都是在國內難得的程式交易實戰觀念,值得程式交易的交易者仔細閱讀一番。

沙羅 2012/03/30

----------------------------------------------------------------------------------------------------------------------------------------------



作者:曾永政
出版社:聚財資訊
出版日期:2012年03月28日
語言:繁體中文 ISBN:9789866366444
裝訂:平裝


內容簡介

  當你四處探詢交易獲利的秘訣時,有沒有想過這些秘訣到底真的是方法,還是一場夢?當你聚精會神關切盤勢跳動、小心緊張地下單交易時,有人是家中的電腦會監視市場變化,全自動做好交易的工作,人跑去逛街、看電影、吃飯,也一樣享受交易計畫的成果,且不必擔心被老闆發現自己不務正業。

  也許你已經聽過「程式交易」,但恐怕不知道在我們開始落實交易致富大夢之前,到底有多少功課要做、有多少陷阱該避,與實務上該如何操作?本書將以作者多年實戰經驗,帶你打造自己的自動聚寶盆!


作者簡介

曾永政

  聚財網帳號:曾永政

  聚財網專欄:程式交易在期貨

  個人部落格:阿政的投機生活 www.yctseng.net

  八年程式交易實戰經驗、程式交易知名部落客、券商講座主講人、多場初中高階程式交易課程講師。著有《期貨操作不靠內線》一書。


目錄

第一章 為什麼程式交易?

    交易是種投機
    期貨相對股票的優點
    交易程式化的必要性
    國內可用資源

第二章 程式交易入門

    簡單了解程式語法結構
    資料結構
    動作結構
    交易命令
    程式語法學習範例──均線
    程式語法學習範例──RSI
    常用小工具
    魔鬼績效製造法
      This bar Market
      This bar Price stop/limit
    簡單介紹回測報表

第三章 交易策略開發流程

    歷史資料過度最佳化
    策略的有效性
    參數對績效的影響
    交易策略開發流程
    HTS實作How to
    策略研發實例──簡單的通道就能賺

第四章 策略上線之前

    為策略寫下生死簿──策略下架與資金準備
    交易策略回春術──部位大小設定

第五章 範例:策略開發評估全流程

第六章 深入程式語法應用
    常用內建函數
    常見策略
    實用技巧

第七章 實戰經驗
    當沖或波段之我見
    交易成敗的關鍵

結語




自序

  這本書規劃成適合尚未接觸、想接觸程式交易的人有個初步的工具書可以參考;已經會寫程式的人可以看到該注意的程式開發流程,更適合不論手上的策略程式是否自行開發的人,如何在程式上線前做好準備。

  我這約莫八年的程式交易經驗,可以帶給讀者在真正踏入交易世界之前,更多的實相窺探,還能減少未來在交易上所走的彎路,甚至是死路。

  報章媒體創造了太多金融市場的神與掏金夢,即便有些案例有其真實的一面,卻也被灌水膨風營造成我們都可以輕易快速地「有為者亦若是」。然而事實的真相絕不是如此美好,在達成獲利之前必須經過多少的挫折,而挫折的承受卻又不必然可以轉換成未來的成功。

  在這本書裡,儘管我會在書中做交易策略的舉例以解釋要表達的東西,但不會像台灣市面上幾乎每一本財經書籍那般,教人如何操作。我提供的是建立交易事業的方法、流程,用宗教的詞彙來說,是一種法門。

  我們可以藉由這個法門去建構與審視自己的交易方式到底有沒有可能可以在市場上獲利?如果有,強化信心一步步地執行下去;如果沒有,早一點離開或是根本不進市場,也會是一個人生的明智選項。畢竟,不是每個人都適合做交易。

  為了讓本書的內容盡量涵蓋想要從事交易的人都需要的內容,會有一部分可見於我上一本的著作《期貨操作不靠內線》,還請見諒。

  希望這本書的出版能夠給一般投資大眾有接觸程式交易的機會,一窺用著固定而笨拙的方式讓電腦自動做交易的人,竟然比自行操作的聰明人能存活更久的法門到底是什麼。

  我想再次強調,這本書與我個人都不會提供什麼厲害的市場分析方法,我想做的是把這樣的運作流程介紹給你,讓你可以開發自己的交易模式,篩選掉完全沒有獲利機會的分析方法,更建立排除外界種種誘惑的信念,這才是程式交易最大的價值所在。而這也是我這些年接觸到許多朋友所欠缺的。

  不要以為開發出一套歷史回測出來績效很棒的策略,就從此可以躺著賺了,請別這麼天真,天下沒有好賺的錢,所有的獲利還是建立在辛勤的工作,只是辛苦的部分不同罷了。

  學會把交易的想法編寫成程式,只是程式交易的入門,掌握開發策略的流程是更重要的關鍵。避免用高獲利而低風險的回測報表假象自我欺騙,在真實上線之前的系統停損準備工作,更是不讓人生因為交易而Crash的智慧。



推薦序


  認識阿政好久了,我在金融市場操作這麼多年以來,他是少見的期貨贏家。期貨市場比股票市場殘酷很多,傳說中交易一年以上還能存活的只有2%,所以能在期貨市場活很多年的,無一不是高手。

  阿政能夠在期貨市場持續過關斬將的主因就是他是期貨程式交易高手。

  從我剛認識阿政的時候,他就已經在研究程式交易,並且把程式交易實際應用在期貨操作上,是我看過對程式交易研究最透徹,而且還不斷深入研究的交易人。這也為他帶來比絕大多數散戶要好太多倍的績效,而且因為阿政都是用程式交易,所以他根本不需要看盤,每天都在想要去哪裡吃好料和度假。

  因為程式交易已經全部自動化,阿政等於是養了一個會自動生錢的聚寶盆在家裡。

  如果你能夠交易的資金比較少,又想要儘早靠金融投資(投機)致富的話,我很推薦你操作期貨,畢竟要靠基金這種預期報酬低的投資工具賺大錢必須本金夠大,只有五萬十萬要賺到大錢是不可能的。但是利用期貨的高槓桿,即使本金只有十萬,還是有可能兩年賺到一百萬,即使虧掉也就是五萬十萬,用有限的風險去博取無限的利潤是聰明的。

  要如何才能利用期貨投機賺到大錢?

  程式交易是大賺小賠、持續獲利的贏家法則,這是不會變的。幾乎所有的外資法人都是用程式交易在操作。

  沒有一種交易工具是無敵的,也沒有不勞而獲的事情,並不是今天你看過這本書,明天就可以每戰必勝、資產上億,但是這本書讓你可以少走很多冤枉路,減少你學習過程被迫花掉的學費和時間,因為阿政就是期貨程式交易高手,他早就碰過你即將會遇到的挫折與失誤。

  例如說書中有特別講到「歷史資料過度最佳化」,這是每個程式交易人都會陷入的甜蜜陷阱,只要用過一次就很容易上癮,但是卻會讓你越賠越多,沒有前輩點醒你就永遠不會知道這是錯誤的。

  我必須老實說能夠讓他帶你入門是幸福的。

楚狂人

[推薦] 指標會說話:指標常態分配的重新定義與使用 [龜爺]

龜爺本名王陽生,早期是國內外匯界有名的交易員,如果小弟的資訊正確的話,龜爺應該早已退休享清福了。
龜爺是正統學派的技術指標交易者,不像其它的交易員會有自己自創的指標模組,對於指標應用,缺乏嚴謹的統計及數學驗證。閱讀完此書,對技術指標的理解會有醍醐灌頂之感。小弟目前程式交易的策略,也一大半源自於龜爺對技術指標的定義及應用。不僅如此,龜爺對於「週期」的看法及行情的預測,也有非常深入的研究及探討,真的是一位不可多得兼俱理論及實戰的高手。

沙羅 2012.03.26
-------------------------------------------------------------------------------------------------------------------------------------
作者:王陽生
出版社:聚財資訊
出版日期:2006年10月01日
語言:繁體中文 ISBN:9868264103
裝訂:平裝

內容簡介


  技術指標給一般投資人的感覺,除了由數據分析得來的邏輯,它與商品供需的基本面很難作一聯想,兩者之間的那層隔閡,讓投資人不易產生認同感。

  過去只要是廣為流行,或對外公開的操作準則,不久就會失靈,好像市場的作手,馬上找到破解之道,這本書我把經濟學裡的供給與需求作了剖析,也仔細說明指標結構與供需的關聯,因此我不認為這些新的操作方式,會被市場輕易化解,因為我們用的還是原本的指標,可是透過解釋,讓我們發現原來經濟學的供需,與指標之間,有如此密切的關係。懂得市場的供需,技術指標就不再只是個跳動的數字,它變成了會說話的數據,就像運動員,了解人體結構後,更能發揮體能而不受傷。

  工商大老辜振甫先生曾說過:「我終身都愛唱戲,看過很多唱戲的名角,演技到了極致;在舞台上風風光光,但是最難的是,曲終落幕,轉身下台前,最後那幾個台步:一個漂亮的身影」。

  投資人下單時進場容易;但是出場時,卻常忽略仔細的規劃出場規則(不管獲利或是停損);這本書將教你:下次下台時,如何有一個漂亮的身影。


作者簡介

王陽生

聚財網帳號:龜爺
聚財網專欄:指標會說話

股市、外匯、國際商品約20年經驗。
專精各種週期分析,操作策略與實務運用。
股市,其實是一個劇院;總是上演同一場戲,但卻掛上不同的劇名。

  股市泡沫的開始和結束很簡單,美麗的5波上揚, 殘酷的3波下跌;天堂之後就是地獄,天堂和地獄的結束或開始都有一定的節奏和跡象。

  股票像是一個放在完全透明,吊在半空中的玻璃盒子裡的商品;讓所有的投資人可以用各種角度去評估它的價值。值得就去買它,否則就賣給別人;每個人都有不同的評價方式,這才是這個市場的公平所在;誰都可以評估股價,誰都可以隨時把股票換成現金,或投入現金去變成股票。買賣無所謂對錯,只是長短線的不同。

操作心態
爭財不爭氣,爭氣不爭財。
心靈中空,帶著愁恨,心中不含智慧。
策略為重,一步錯棋,滿盤皆輸。
勢到八九分即已,如張弓然,過滿即折。 (朱子)
一切行動, 都要安詳,十差九錯,只為慌張。 (呂近溪)
獨學而無友,則孤陋而寡聞。 (孔子)
 
A/ 技術分析的演進

1/ Data Analysis 〈資料分析〉
2/ Trading Off The Charts 〈圖表派線形操作〉
3/ Automatic 〈Mechanical〉 Program Trading 機械式程式交易

B/ 順勢指標

1/  MA 移動平均線
      Binary -Wave 雙階式下單法
2/ Envelop 交易帶的發展與軌道線
3/ MACD Moving Average Convergence & Divergence指數平滑異同平均線
4/ Bias乖離線

C/ 盤整與趨勢分界的指標種類

5/ DMI─ Directional Movement Indexes 趨向動能指標
6/ CCI─ Commodity Channel Indexes 商品通道指標 〈般若指標 /順向指標〉

D/ Envelop 與震盪指標的重新定義
7/ %R 威廉指標 &%K %D隨機指標
8/ RSI 相關強弱指標

E/ 程式交易的設計與指標運用

  MA +/- 固定點數 交易軌道線
  MA +/- 百分比% 交易軌道線
  Alpha Beta Trend 交易軌道線加上過濾線
  High / Low MA 高低移動平均線
  CCS Closed Channel Systems 飛龍系統
  Bollinger Bands 布林線
F/ 飆股搜尋
G/ Swing Trade擺盪式交易 指標與時間週期的搭配
H/ 高低點反轉的確認方法
I/ 操作週期的選擇
J/ 如何建立你的軍火庫 〈建立操作的架構〉
K/ 整理與回顧
附錄
-------------------------------------------------------------------------------------------------------------------------------

  幾年前的四月中旬,某一個週末,豐原的張先生在家裡看著股市,大盤已經在5500點下面盤了一個多月,上攻數次都無功而返,無聊的不知道幹什麼才好,這時老婆從外面打電話回來,說陳先生的那個店面決定要賣了,老張心裡很興奮,那店面可是他想了多年的標的,價錢一直搞不定,這下也終於心想事成,這時股市也快收盤,算了,不玩股票了,當下打了電話給營業員,把他放了許多年的三百張台積電市價賣出。

  這單筆三百張的賣單吸引了幾個當沖客注意,也跟著賣出台積電,成交量稀少加上台積電權值的關係,大盤指數硬是被扯下了五六點,本來這是很正常的事,可是這幾點卻讓大盤的KD產生向下的短線賣出訊號,適逢週末,市場有一?中實戶看到訊號,馬上出清手上持股,又把大盤扯下了二十來點。

  就那麼巧,這二十幾點讓一個坐在操盤室的基金操盤手,發現他的程式出現死亡交叉的訊號,只好照原來定好的交易規則─收盤價出掉一成持股。

  第二天還沒開盤,已經有好幾家投信基金的經理人開會,圍繞在資訊前,討論這上攻無量卻似乎有點往下彎曲的行情,看來中期回檔已經定型。於是決定開盤價降低持股,當然投資人看到綠油油的開盤價更沒信心,還沒找到原因就市價掛出。

  後來的兩個月,大盤跌了將近七百點,所有的投資人都不知道什麼原因,包括那位豐原的張先生,他還很高興的跟他老婆說,還好他把股票賣了呢。

  雖然是個虛構的故事,可是股票市場的一個多頭市場或空頭市場很可能只是起源於上面的情況,現在的股市已經慢慢進入數據的時代,很多人已經使用證券公司的軟體來作買賣,對價格以外的事情毫無感覺,大盤的大漲大跌也懶得去找原因,只是跟著數據的變化作動作。

  多年來我也是一直保持這個方式交易,尤其過去十多年外匯市場的交易經驗,不想去了解經濟面的情況,更讓我覺得價格的變動是第一個反應事實的東西。

  有人為了寫書而寫書,有人靈感來了就寫書,對我來說什麼都不是,我認為時候到了寫這本書,進入這市場二十幾年,教過或帶過的投資人不計其數,不過因為教材都是片片段段,能領略其中奧秘的可能只佔極小數,許多人建議應該作一系統整理,自己也覺得時候到了,寫下這本《指標會說話》,希望能夠給對技術分析有興趣者,另一思考方向裡面許多操作方法,可能跟傳統教材或理論有異,甚至於迴然不同,但這絕不是異想天開的想法,我一向的觀念,沒有理論基礎就沒有依據主題,沒有依據主題就沒有思考邏輯,沒有思考邏輯就變成自己的胡思亂想,亂中無緒,因此書中我把指標公式剖開,先了解其中意義,然後我們重新思考,是否可以另外策略對應。

  我們聽過太多的傳言,有人進場之前,喜歡作調查,如果一堆人看空,他馬上採取買進的措施;相反的,大多數的人看好後勢,他會找機會放空,因為理論上賺錢的大戶,應該是站在少數的一邊,我也確實遇過這樣的投資人,可是他們的作法會讓他們賺到錢嗎?

  同樣的在技術指標運用上,知名指標RSI告訴我們,指標到了70 ~ 80是賣出點,20 ~ 30就是買進點,以此進出勝負極高;但是以80~20法則來思考,金融市場的慣例,站在長期獲利一方的2 ~ 3成大戶,他們不可能採取跟一般7~8成散戶操作的相同模式,否則大家思考的模式相同,進出點相同,以大戶的進出規模,他們的量只是在飾演助漲助跌的「抬轎」角色,大戶根本就無法在這遊戲取得任何優勢。以零和遊戲的定義,輸錢的多數人把錢全部交給了賺錢的少數,那麼是否過去傳統的賣點〈70 ~ 80〉,就是大戶的買點?而書上的買進點〈20 ~ 30〉,卻是大戶的賣出點?假如過去我們依傳統方法操作賺不到錢,是不是未來完全對作,就會成為賺錢的一方?當然事情也絕不是我們想像的那麼簡單。

  不可諱言的,各行各業都有天生好手,影劇圈有許多天生的好演員,她們不須導演指導就可以把劇本詮釋的完美,運動界有天生的運動員,任何運動或球類到他手中,稍微演練短時間即變成高手,當然金融圈也有許多天生的優良操盤手,行情觀極好,價位感一流,但是請他指導,卻說不出個所以然,他的動作全憑感覺,雖然動作完美,但是這種「無形的感覺」,並不是我們一般人進入這市場的學習典範,我們仍必須照傳統方法,一點一滴的吸收,然後拼出自己的進出規則來,基本面雖然是最可靠的依據,可是學習需時漫長,許多財務報表或經濟學的理論不是一般人可以短期間全然了解的,技術分析的領域,應該是比較快速進入狀況的東西吧。

  有些人天生具有所謂的「陰陽眼」,可以看到一般常人看不到的鬼神,它可能是一種優點,─可以幫忙一些人,做一些心靈療養的事,或甚至於把它當成職業;而它更可能是一個缺點,雖然看到平常人看不到的情境,卻多了許多別人無法想像的困擾。

  技術分析對許多人可能是一個類似的東西,沒了解技術分析時,操作股票可能還差強人意,多了它,卻把原來還可掌握的脈動一下給打亂了。

  一般的駕駛只要稍具速度感,就可以成為飆車手,但是只有熟悉汽車結構,與機械常識的,才能成為偉大的賽車手。

  技術分析的使用也是如此,我們可以借此書更深入的了解其中的奧秘,從而在未來更適切的時機,使用這些指標。

  傳統的操作理論是否跟實務兩異,這本書專對這些思考邏輯仔細探討,然後提出修正後的操作方式。

  實務上,我已經照這種新的邏輯,操作一段時日,不管在獲利或是在詮釋行情方面,都有非常滿意的進展。

  Time is Money,時機是賺錢與否的重大因素之一,如何把錢用在刀口上,是每一個人追求的目標,我也把指標操作融入發展多年的週期分析中,這種融合指標與週期的擺盪式交易(Swing Trade),在國外是一種實務派操作主流,指標操作如果缺少脈動,就像是漫天亂舞的無頭蒼蠅,無法掌握住使用的正確時機,自然獲利要大打折扣,另外,我也介紹了依據這些方法獨創的「衝浪式」操作法。

  1983年冬,華爾街傳奇交易員 Richard Dennis 將他的交易系統傳給了13個人,五年間他們賺進了一億七千五百萬美元。這些人的堅守紀律及默默賺錢個性像極的他們的稱號---烏龜。

時間過了23年,烏龜們仍然活躍在華爾街,而且目前每個人都是金融圈的要人:

Liz Cheval 女性 第一期烏龜成員 目前是EMC Capital Management 總裁
Curtis Faith第一期烏龜成員 擁有Acceleration Capital投資公司
Stig Ostgard第一期烏龜成員 主持SJO Inc.

  23年前,個人電腦才問世不久,目前流行的知名指標,當年也還在測試推廣階段;檢視烏龜買賣法則 〈附錄F-海龜系統〉,他們的進出規則絕對不像現在靈敏的電腦程式交易,但是這些烏龜的表現卻證明,交易系統可以傳授,高手並不是天生,或需要長期的經驗累積。

  一個入行一段時間的人,可能對行情都會有主觀的看法,一但鎖定,就像戀愛中的男女,任何負面的訊息都聽不進去,如果一切都仍對你不利,這時是你該冷靜的檢討自己的方法是否有誤,市場的變動因素可能仍然是層出不窮,而且無法確定,可是思考的邏輯是可以追蹤而且傳承的,如果你使用傳統的方法在金融市場找不到遊戲規則,試試我們的新方法,你會跳到另一個不一樣的層面。

  目前市面上具知名度,包括可以叫出名號的指標起碼有數百種,我們不可能全去了解而且也沒必要,本書反而專挑通用指標,其實就在解析其中原意,觀念一通,其他指標亦就可輕易上手。

  有一個房地產的廣告如此推銷它的產品:「大部份的人在捷運站等著搭捷運∕只有少數的人在看捷運能帶給他什麼商機」,多數人毫無感覺的看著行情像捷運般的跑來跑去,卻不知道如何從中間獲取利潤?如果你每天花許多時間去收集資料,印證其他書本裡的各種理論,卻仍然理不出一套自己的操作守則?!看完此書,你會發現原來操作不是那麼難的一件事。

簡單好用的工具 ─ Do It Again

程式交易的過程中,很多地方是需要「手動」的。例如每天的開/關機、奇狐軟體每天在傍晚六點以後需要做盤後電傳、以及交易前的軟體連線以進行即時傳輸....等。如果說要帶家人出去玩或個人出差個幾天,家裡沒有人幫你做這些事,那不是不用玩了嗎? 就算是關機不交易,如果剛好在這幾天錯過大行情,更是吐血 + 錘心肝.. 如果策略的型式是波段留倉單,更是容不得一天不交易,因為每一天都在策略的計算之中,缺一天不可呀..

如果要達到完全的「無人執守」,就勢必想辦法讓電腦自己做「應該要做的事」,而且「每天不段的重複做」,譬如:

1) 每天重複開機進行交易、關機進行休息(有的電腦是不關機的,那當然可以省略)
2) 交易軟體連線上網,並處於交易的狀態
3) 盤中偵測連線狀況,如果停止跳動,則緊急進行重新連結救援
3) 結束交易並進行盤後電傳 (奇狐軟體需要,Multicharts就不用了)

這些動作都是確保交易達到「無人執守」的狀態。這裡有很多方法可以用,也有很多軟體可以安排,如Macro Express, AutoIT..等,但都有一點點的進入難度,對於電腦白痴在使用上可能有困難。

對於每天重複的工作,今天來介紹一個超及簡單好用的軟體 ─ Do It Again.  這個軟體最大的好處是,不用寫程式、不用寫巨集,只要把要做的事情做一次,把它「錄」起來,以後每天執行這個錄製檔,就可以重複每天執行。像交易軟體連線上網、盤後電傳等,都可以使用這個軟體來執行喔。


操作步驟:

1) 按下Create a New Task後,就開始錄製你所要電腦每天重複執行的動作。不管是滑鼠的移動、相對位置確定、確認鍵的執行、以及鍵盤的輸入過程,都會幫你完整的錄製下來,也就是接下來你每天都要重複執行的動作。

2) 按下scroll lock鍵,就能夠停止錄製,然後取一個你想要的檔名。

3) 在下方的欄位上就可以看到你剛才錄製的檔案,直接按二下,就可以看到重複的執行重作了喔! 

4) 另外,如果你希望操作完指定任務之後還繼續重新操作的話,可以按「Options」→「Repeat task settings for backup_files…」這選項,設定重複執行次數與執行頻率。 

5) 如果你希望電腦開機後自動執行某個任務,可以開啟「C:\Program Files\Do It Again」資料夾,把「.dia」格式的檔案拉到開始選單的「啟動」資料夾裡,這樣每次開機就會執行你指定的任務。 記得,要先在Do It Again軟體中按「Options」→「Associate with .dia files」,讓系統知道要用Do It Again軟體來執行這些任務檔。 

資料來源: 重灌狂人 http://briian.com/?p=6937

------------------------------------------------------------------------------------------------------------------------------------------

怎麼樣? 是不是超簡單? 不用懂程式、不用寫程式碼、不用run 巨集、什麼都不用!只要照著做一次就好!夠簡單吧~~  相信如果能搞定程式交易,這樣的動作應該是易如反掌。

這可以應用在奇狐開機並連線且進行待命狀態及畫面,盤後電傳等。每天做,不停的做,做的都是一樣的事,只要把 .dia檔安排入每天的排程內就好了。

這也是我在用的程式交易自動化工具之一,而且占很重要的份量,因為我的coding能力也不強呀~