アルゴリズムと機械の外国為替戦略 | OneStepRemoved

  • Articles
  • Sophisticated Web Sites
  • Automated Trading
  • お客様の声
  • お問い合わせ

One line of code makes all the difference

2 月 9, 2017 によって ショーンオバートン 4 コメント

I was really excited about my Pilum strategy two months ago. The research looked great and everything was ready to rock and roll. Demo testing began and then… not much happened.

The Quantilator is (mostly) finished, which finally gave me time to circle back and review what happened with Pilum.

Live demo trading of Pilum

Live demo trading of Pilum. 12月 9, 2016 to Feb 7, 2017

The expected outcome was that I would win 75% 時間の. Trades were infrequent, so I thought maybe I’m just having bad luck. But then my win rate remained stuck around 50%. Simple statistical tests told me this was unlikely to be bad luck.

I used the research time to pour over my research code and to compare it with live trades. What I found was that a single line of code (AHHHHHHHHHHHHHHH!) was incorrectly calculating my entry price, dramatically overstating the profits.

、 flawed code produced this equity curve from a single combination of settings:
Flawed Pilum backtest

When the actual, correct result looks like this with those same settings:

The accurate backtest of Pilum

The accurate backtest of Pilum

I’ll be honest… I like the flawed backtest a lot more!

The new, single-setting backtest isn’t as good, but it’s still trade-worthy. There are some characteristics that I dislike and features that I love. Let’s dig into those.

What I dislike

The frequency of trades is very low. Out of 19 months there were a total of 43 取引. 43 trades to comprise a backtest on 40+ instruments is a very small number.

If it weren’t for the statistical pattern backing up the frequency, I would not consider the test. しかし, there are 20,000 bars each on the 44 instruments. あります。 880,000 total bars used to analyze whether my Pilum pattern offers any predictive value.

The most valuable predictions, しかし, are also exceptionally rare. That’s why I’m not able to get the trading frequency higher, which would potentially smooth the returns.

What I love

My previous systems like QB Pro and Dominari traded actively for relatively small wins. Trading costs exercised a massive impact on the overall performance.

The accurate backtest of Pilum

The accurate backtest of Pilum

Now look again at the correct equity curve (the image to the right). Do you see the final profit of roughly 0.14? That’s a 14% unleveraged return over a 19 ヶ月の期間.

Allocating 2:1 または 3:1 leverage on this strategy could average annual returns of 15-25%.

Detecting hidden risk

A key measure of risk is skewness. You may not use that term yourself, but it’s something most of you already understand. The biggest complaint about people trading Dominari was that the average winner relative to the average loser was heavily skewed towards the losers.

Dominari wins on most months, but when it lost in December it was devastating. I implemented what I thought was a portfolio stop after the December 9th aftermath. Then I had a smaller, but still very painful, loss in January. The portfolio level stop loss of 3% should prevent future blowouts now that I know what goes wrong.

I still believe in Dominari. しかし, I obviously lost the work of most of the year due to those events.

Knowing that skewness is a good measure of blowout risk (even if you’ve never seen it in a backtest, like happened with Dominari), Pilum looks extremely encouraging.

This is a histogram of profit and loss by days. You should notice a few things.

The tallest bar is to the right of 0. That means that the most frequent outcome is winning.

worst and best days

The biggest winning day is dramatically better than the worst losing day. The worst outcome was a loss of 2%. The best outcome is gains near 10% in a single day (unleveraged!).

This is the statistical profile of an idea that’s much more likely to grab an avalanche of profits than it is to get blown out.

It gets even better

low correlation

Would you say that the blue and red equity curves are highly or loosely correlated? Look closely.

Writing this blog post made me think carefully about the Pilum strategy. I decided that maybe I should see if all of the profits are coming from different settings at the same time. There’s very little risk of overfitting the data as my strategy only has 1 degree of freedom.

The blue bars are the equity curve of Setting 1.

The red bars are for Setting 2.

Do you think these are tightly or loosely correlated?

If you said loosely correlated, then you are correct. Notice how each equity curve shows large jumps of profit. Did you notice how those profit jumps occur on different days?

The blue setting skyrockets on a single day in November 2016. It leaves the red equity curve choking in its dust.

But then, look what happens as I advance into December. The red curve dramatically catches up to the blue curve and even overtakes it.

The correlation between the 2 strategies is only 57%.

Combine multiple settings into 1 portfolio

Combined settings Pilum equity curve

This is a much nicer equity curve!

Loose correlations are a GIFT. Combining two bumpy equity curves into a single strategy makes the performance much, much smoother.

The percentages of days that are profitable also increases. Setting 1 is profitable on 58.0% of days. Setting 2 is profitable on 53.5% of days.

しかし… combining them makes Pilum profitable on 68.2% of days. 素晴らしい!

That also provides more data, which puts me in a stronger position to analyze the strategy’s skewness. Look at the frequency histograms below. They’re the same type of histograms that I showed you in the first section of this blog post. As you’ll notice, they look a lot different.

Pilum most probable daily profit and loss

The most probable outcome for any given day is a small winner

The tall green bar is the most probable trading outcome for any given day with filled orders. The average day is a positive return of 0-1%.

The small red bar is the worst trading day of the combined strategy.

The small green bars are the best trading days of the combined strategy.

Look how far to the right the green bars go. The largest winner is more than 3x the biggest loss. と, there are so many more large winners compared to losers.

Giant winners are far more likely than comparable losses.

The Plan

I immediately pushed Pilum into live trading this combination of two strategies. I expect that adding a second degree of freedom and running about 30 different versions of the strategy – all with different settings – will add to the performance and smooth the returns even further.

Dominari hasn’t been working on my FXCM account, which is very difficult to accept because the lacking performance seems to be a buried execution issue. Pilum, しかし, trades very infrequently. It’s unlikely that execution quality will make a dramatic difference in the long term outcomes.

だから, I’m going to convert the FXCM account to trading Pilum exclusively. That will be offered as a strategy on Collective2 within the next few weeks, a company with whom I’ve been working closely. Their users are more investor rather than trading oriented – they’re far more likely to view low trading frequency as a good thing. I suspect that most people here have a different opinion and want to see a lot of market action.

I’ll write an update on Dominari shortly.

以下の下でファイルさ: Pilum, 戦略の取引のアイデア タグが付いて: 相関関係, カーブフィッティング, 自由度, ルール, equity curve, 周波数, FXCM, histogram, レバレッジ, QB プロ, リスク, スキュー, 統計情報

Things to Know Before Trading Silver

8 月 8, 2016 によって リオル Alkalay 3 コメント

If you think Silver trading is almost identical to Gold trading, you are wrong. But if you think Silver is utterly different you are wrong, 同様に. 混乱しています。? Don’t be. Trading Silver has a lot of similarities to trading Gold but there are two key dimensions that impact the way Silver behaves in relation to Gold—volatility and the Gold-Silver ratio.

Trading Silver: ボラティリティ

Below is a comparison of Gold and Silver volatility levels. It’s hard not to notice that Silver is substantially more volatile than Gold. The reason for that is because liquidity in Silver futures across the exchanges is substantially lower than Gold futures. この, もちろんです, means that smaller amounts (albeit still in the billions) can move the price of Silver much more than Gold. As a trader you should accordingly adjust your strategy to higher volatility.

Trading Silver

実習では, Silver’s higher level of volatility first and foremost has an implication on stop losses. Because higher volatility tends to trigger more stop losses it means more margin of safety is needed when you place your stop loss. 他の言葉で,if you are trading silver, you have to place your stop loss a little further to make sure a sudden burst of volatility won’t throw you off the trade only to later hit your market. もちろんです, this also means you might reconsider certain trades, because if your stop loss is now further from your entry but your limit stays where it is your risk reward ratio is now lower and that could mean your trade is not necessarily worth it.

The second noticeable impact of higher Silver volatility is the manner in which Silver trends behave. Both Gold and Silver have a tendency to move in bursts of momentum but in Silver, the bursts tend to be stronger because of the higher volatility. As can be seen in the example below, both Gold and Silver eventually gains more or less the same percentages. But while Gold’s ascent was more gradual, Silver lagged Gold only to catch up with it later, in a fraction of the time and with a strong burst. この, もちろんです, can be of great value for the Silver trader, especially one who can exploit such opportunities to make a rather quick gain from シルバー catching up with Gold.

trading silver

Gold-Silver Ratio

Perhaps one of the most important ratios in the commodity space. The ratio, as its name implies, measures the price ratio between Gold and Silver. 他の言葉で, how much Silver is Gold worth? Why is that ratio useful? Because the ratio between Gold’s price and Silver’s price moves in cycles (see chart below).

When the ratio is at cyclical lows Silver is relatively cheap compared to Gold. In a bullish run it usually means that Silver’s price has more upside and will therefore outperform Gold. The same goes for a bearish trend. When the ratio is at cyclical highs then Silver will underperform Gold, both on the way up and on the way down. したがって, watching the Gold-Silver price ratio allows you to gauge the potential momentum w

Trading Silver

実習では, this means you can expect Silver to outperform Gold when the Gold-Silver ratio is at cyclical highs. A classic example occurred in 2011 when as the Gold-Silver chart was at record lows (see above) which resulted in Silver outperforming Gold on the way up (see below). As the ratio gradually moved into cyclical highs, Silver started to underperform Gold again.

Trading Silver

ボトムライン

時々, Silver just moves too high too fast. When that happens it’s better to bail out before the burst. 反対に, sometimes Silver lags, so much so that you have to ask is it worth riding on volatility to catch up? The key to trading Silver is understanding its similarities with Gold but exploiting the differences between the two.

以下の下でファイルさ: 現在の市場で起きていること? タグが付いて: 相関関係, ゴールド, gold-silver ratio, シルバー, トレンド

相関関係を使用して収益を向上させる

7 月 16, 2015 によって ニコライ ・ Kuzentsov Leave a Comment

投資家として, 私の目標は、私はある投資ドルの原則に可能な限り多くのお金を得るためには. 言うものの, 私は常に私の収入を最大化する方法のための狩り. 私の好きな戦略を行うのための 1 つはいわゆる相関戦略. この戦略は、いくつかの資産が関連付けられることという事実を認識します。; それらを一緒に取引することによって、, 投資家は、以上を獲得する能力を持っている彼らは見つける動向から. 今日, 私たちよ相関戦略や仕組みについての話し同様、市場における相関のいくつかの例を越える. だから, それに権利を取得してみましょう.

どのような相関戦略?

、 相関トレーディング戦略 実際には多くの資産が関連付けられることを活用するように設計します。. したがって, 1 つの資産の動きを引き起こす可能性があるトレーダーは、大きなイベントが起こるかを知っている場合, 彼はまたイベントが相関資産の動きを引き起こす可能性があることを知っています。; 多くの機会につながる. 市場における相関の 2 種類があります。…

  • 正の相関- 正の相関は、2 つ以上の資産を市場で相互にタンデムで移動する傾向があります。. したがって, 1 つの資産が移動したとき, 任意の正の相関の資産は同じことをする可能性が高い. 悪影響, 資産が下落を見るとき, 積極的に相関資産がダウン値をたどる可能性が高い.
  • 負の相関- 負の相関関係が正の相関の正確な反対. 逆相関のある資産は、市場での反対運動を見る傾向があります。. したがって, 資産が増加を見ているとき, 負相関資産が減少する傾向. 悪影響, 資産が下落を見るとき, 負相関資産が上昇傾向にあります。.

市場における正と負の相関の例

積極的に相関資産- 上述の通り, 積極的に相関資産がお互いにタンデムで移動する傾向があります。. したがって, この現象の最もよい例の 1 つは、株式を生産商品と商品の関係だろう. たとえば, 比較して金をぜひご検討ください。 コープ 下のグラフで…

goldcorp

このチャートを見てください。, 金の価値を見て改善を見ることは明確です。, 同様に 2005 宛先 2008, コープの株式も. 悪影響, 金の価値が低下する場合, コープ滝同様の値. したがって, この情報を知ることにより、同時に 2 つの取引を実行するトレーダー; 収益を倍増.

負相関資産- 上述の通り, 否定的 相関 1 つの別のものに対して資産移動. したがって, 場合は 1 つの値が上昇傾向に, 他の値の傾向にダウンする傾向があります。. この完璧な例は、アメリカ合衆国ドルとシルバーの関係だろう. この負の相関は下のグラフを見て参照してくださいに簡単です。…

以下の下でファイルさ: 戦略の取引のアイデア タグが付いて: 相関関係

自己相関

7 月 5, 2015 によって ショーンオバートン 11 コメント

それは週末を 7 月 4 日です。. 私の妻は、この午後用事を実行しているし、私の息子の昼寝. 私は、実行のために外に行くことができません – それはテキサス州の7月です (すなわち, 信じられないほど熱いです) と, 赤ちゃんがウェイクアップした場合にどのような? 私の休日の午後を過ごすための唯一の方法はどちらかにしました) テレビを見たり、 2) マイケル・ホール・ムーアの最近の記事に飛び込みます, “時系列で系列相関“.

私は数学をスキップして、この非常に素人友好を維持するつもりです. でも、ほとんどの数学的に挑戦トレーダーは学ぶことができるいくつかの重要なテイク遠かっがあります。.

相関関係に素人のガイド

それでは、mathinessで簡単に行ってみようとは何か相関関係を思い出します. 相関関係は、二つの点の間の角度に直接関連しています.

それはそれは、紙やパソコンの画面の一枚に収まるものだから、二次元で理解することが最も簡単です. 点数 (1,0) と (2,0) 0°の角度を共有. 基本的には, ポイントが同一線上に位置します.

No angle

相関関係は、二つの点の間の角度に直接関連しています. これらの点は同じ行に置きます, そう互いの間の角度が0°であります. 彼らは同じ行にあるという事実は、それらを作ります 100% 相関.

相関関係は、二つの点の間の角度のコサインであります. 電卓を取得し、それを試してみてください. 0°の余弦は、 1.

COS(0) = 1.0, あります。 100% 相関関係.

上の画像を見てください. 点数 (1,0) と (2,0) 同じ回線を共有します. それは同じライン上の点であることは意味がありません 100% 相関? 未満のポイント 100% 別の行に相関嘘.

この直感的なを維持するために, おそらく取引から知っていること 60% 相関がに注意を払う価値があります, それは非常に予測するものではないのです. それは幾何学的に何を意味します?

私たちはどこcos⁻¹角度を取得したいです(私) = 0.6. コサインのものに巻き込まないでください. 私はちょうどあなたがこの角度の関係を実現したいです.

と角度 60% correlation is 53°. They're kind of close together, あまりにも近くありません.

と角度 60% 相関関係 53°であり、. 彼らは一種の一緒に閉じています, あまりにも近くありません.

これらのラインはかなり遠く離れています. A 60% 2外国為替ペア間の相関関係は同じ球場に入ります, しかし、あなたはほとんどPIPのピップを追跡していないしています.

外国為替の価格は、上記のグラフ上の点のようなものです. 1 バー前, 2 前のバー… 16,000 バー前EURUSDの価格がありました 1.11342, 1.11297…. 1.31974. EURUSDの過去のデータは、空間内の点を形成. それは、します。 16,000 次元空間, これは精神的に完全に理解できないです, それはまだポイントです. それはあなたがそれに線を引くことができることを意味!

私たちは通常、2つの通貨ペアを比較することにより、外国為替での相関関係についての話. ほとんどのトレーダーは、ユーロ/円、英ポンド/円が相関していることを知っています. あなたが間に線を描画しています 0 そして、EURJPYポイント, その後の間に線を描きます 0 そして、GBPJPYポイント, 次に、相関関係を決定するために角度を算出します.

EURUSDの例では、私たちだけが1線を引くことができます. 私たちはラグで自身に対してEURUSDを比較した場合? それは、私たちは2 EURUSDの線を描く聞かせ!

メモリ機能

EURUSDの例を使用して, あなたは自然に期待します 100% 相関あなたは二度同じラインを引いた場合. それは価格の同じシリーズです. 自分自身でそれは私たちにあまりにも多くを教えてくれありません.

自己相関のアイデアは価格に遅れることです. 今のところです 15:00. 私はから価格を取ることができます 15:00, 14:00 と 13:00 1時間遅延と比較. 新しい遅延シリーズはから価格です 14:00, 13:00 と 12:00. 1時間のギャップがあります 99.9% 元の価格のシリーズと相関.

マイケルの記事では、ますます大きくタイムラグを見て私を奨励しました.

EURUSD Autocorrelation

EURUSDの相関は、時間差が大きくなるようにそれ自体に対して減少します.

横軸の数値は時間差であります, のグループで行われ 100. 縦軸は相関を示します.

EURUSDは周りの後にすべての情報を失います 3,000 データの時間. 即ち、相関関数が到達点についてです 0%.

自己相関は、多くの場合、メモリ機能と呼ばれています. トレーダーらによると、自分自身に質問をするためにこれを使用することができます, “どの程度まで戻って時間に私が行くと、まだ有用な情報を得ることができます?” 私は、高い信頼度であなたを伝えることができます1時間チャートを取引している場合, それは超えて何かを検討しても無駄です 3,000 時間.

重要性のための私の個人的な閾値があります 75% 相関関係. EURUSDはを通してその自己相関を維持 800 データのバー, あなたが密接にズームインするとき、あなたは、チャート上で見ることができます.

トレーダーのための持ち帰りは、あなたの周りに過去の行く一度ということです 1,300 バックバー, あなたの情報は急速に少なく貴重になります.

以下の下でファイルさ: あなたの概念を歴史的にテストします。 タグが付いて: 自己相関, 相関関係, 相関と取引ペア, ユーロドル

Is Your Account Overleveraged?

3 月 7, 2014 によって カレン ・ スミス Leave a Comment

Did your broker ever tell you that you can leverage your trade? Here is a quick primer if you aren’t familiar with the term.

レバレッジ (also called buying on margin) means that you can borrow funds to place your trades. たとえば, let’s assume that you have $500 アカウント内. You could borrow $4,500 from your broker to place a $5,000 貿易. This means that your account would be leveraged 10:1.

Leverage can be a great way to increase your return. この場合, you would magnify your return 10 times over. The downside with leverage is that it also magnifies your losses proportionally as well.

Dangers of Overleveraging

You shouldn’t be afraid to buy on the margin for fear of making some bad trades. You will inevitably make some wrong trades with or without being leveraged. The problem is that taking on too much leverage can completely wipe you out. Here are some things that you need to keep in mind.

Overleveraging your account is a disaster waiting to happen

You May Face Margin Calls

You need to put aside enough money in your account to cover any losses that you incur. The money that you set aside to cover losses is known as the usable margin. Your broker will allow you to keep a trade open until the loss is equal to your usable balance margin.

This is a complex topic, so let me illustrate with an example. You opened an account with $1,000. You decide that you want to buy 10 ミニロット (10,000 単位) of the EUR/USD. You decide to use $500 to place a $100,000 trade by leveraging your account 200:1. This leaves you with a usable margin of $500.

Every pip is worth about $10, which means that even small fluctuations can have a substantial impact on your account. You will get a margin call as soon as it falls 50 pips below the purchase price. You would either need to increase the size of your usable margin or close the trade.

Why Margin Calls are a Concern?

As I stated earlier, your losses are significantly higher when your account is leveraged. Rather than losing $50, you will lose $1,000 if your account is leveraged 200:1. This can obviously cost you a lot of money if you made a bad trade.

しかし, being overleveraged can also cost you if you made the 右 貿易. You may have accurately predicted that the currency would increase by 100 pips in the next 48 時間. しかし, the forex market is often very volatile. The price may drop by 50 pips before rebounding to the strike price. You would face a margin call and close your trade at a $500 loss before you got to realize your profit.

Placing a trade at a 200:1 余白はこの場合間違った決断をされているだろう. 何が起こったとあなたのアカウントを利用する場合 50:1 代わりに? 各 pip はだけの価値があるだろう $2.50. いると $375 価格は下落した場合、利用可能なマージンで 50 ピップ, つまり、あなたのブローカーからマージン コールを受信しません。. 価格はリバウンドする時点で 100 購入価格以上のピップ, 利益を獲得するいると思います $250.

レバレッジ比率が違いをしただろうな $250 利益と $500 損失. 貿易の際念頭に置いてそれを維持することが重要です。.

どのくらいのレバレッジを使用する必要があります。?

誰もミスをする外国為替トレーダー. 時間をかけて投資で良くなるだろう. しかし, 教訓を学ぶ前に、あなたのシャツを失うことはないことを確認する必要があります。. 初め外国為替投資家なら, then you will probably want to use a much more conservative leverage ratio. Some investors recommend using a ratio of 3:1 or having no leverage at all.

Even seasoned traders need to be careful when making trades. Many aggressive traders use leverage ratios under 10:1. More cautious investors may use a leverage ratio of 3:1 以下.

Choosing a leverage ratio is a blend of art and science. Here are some things that you will want to keep in mind:

  • The market volatility. Prices can fluctuate much more significantly at some times than others. The average daily movement for the EUR/USD was 185 でピップ 2008, 比較すると 110 でピップ 2013. You can face a margin call much more quickly in a volatile market, so a lower leverage ratio would be smarter.
  • Correlation between currency pairs. Prices can vary considerably between different currency pairs. ユーロ/米ドルの最後の年の間の平均の動きだった 110 ピップ, ポンド/円は 189. おそらく 2 番目のペアを取引した場合、低いレバレッジ比率を使用したいだろう.
  • 計画の期間. あなたの貿易を実行にかかる時間を考慮する必要があります。. 3 日間開いたままにあなたの貿易を計画します。. それは当時の少なくとも 2 つの「平均的な」損失を発生可能性があります、利用可能なマージンを設定することをお勧めかもしれない. 現在の市場での通貨ペアの平均ピップの運動と思われる場合 150 あなたの利用可能なマージンがカバーできるかどうかを確認したい場合がありますし、ピップ、 300 ピップ ドロップ. さらにもっと保守的な市場はさらにもっと不安定になり始めて場合する場合可能性があります。.

ショーンも爆破のトレーダーのチャンスに影響を与えるある特定の貿易のリスクを示す偉大なビデオを準備.

外国為替マージンを設定している場合に留意すべき要素が多い. これらに留意し、どのくらいのリスクを取ることができますを決定する必要があります。. 成功外為トレーダーは多くの場合の投資を活用します。, 彼らは賢明なそう方法を知っているが、.

以下の下でファイルさ: 外国為替市場のしくみ?, お金を失うことを停止します。 タグが付いて: 相関関係, 外国為替, レバレッジ, マージン, ボラティリティ

相関関係対. 共和分

5 月 6, 2013 によって ショーンオバートン Leave a Comment

相関と共和は、一般的取引コミュニティによって誤用される 2 つの基に回帰分析概念. その定式化の複合体, 両方ともインター関連し、を使用して 2 つ以上の製品との関係を計算 (すなわち商品, 外国為替, 株価) 特定の期間にわたって.

相関関係

値 +1 (正の相関) または -1 (負の相関) 割り当てられているどのように効率的に互いに反応する 2 つの価格. 相関は、タンデムまたは反対の方向で移動するペアを指定します。.

長期相関組み合わせの良い例は、EURUSD は、USDCHF の交差, ような方向で取引します。. コインの他の側に, EURGBP と、AUDNZD の反対の方向の貿易します。. 彼らは負の相関を示す -0.81.

ただし、この図は、十字架が互いに移動したことを示します, この否定的な結果の長期的持続性不確実性のわずかな程度があります。. プロのトレーダーは通常の上または下のペア エントリ ベンチマークを設定します。 0.9 または -0.9.

相関の重要な欠点があります。, 収益性に大きく影響します。. 2 つのペアは相関がありますが, 彼らは完全なユニゾンではまだありません。, 価格のわずかなドリフトを引き起こす可能性. EURGBP と、AUDNZD の場合, それはドリフト -0.19.

上の記事を読む 外国為替の相関関係 トピックの詳細について.

相関関係

画像クレジット: Vassia Atanassova
左側のボックスは、強い相関関係を示しています. 真ん中は、弱い相関を示しています. 右端には相関関係のイメージが表示されます。.

共和分

共和分の価格の動きを分析し、識別する 2 つの値が指定した期間にわたって同じ平均または平均価格に敏感度. それはペアを移動する方向について何も言っていません。. 共和分だけ時間をかけて、それらの間の距離が安定しているかどうかを測定します。.

金と銀なら, たとえば, 我々 は、彼らは一般的な平均値を追跡見つけることが. 反対の方向に取引を一日一日. 将来的にいくつかの不明な時点で, 彼らはその平均値に向かって戻る必要があります、それゆえ彼らは共和分. ヘッジファンドは、一般貿易のペアを識別するプログラム統計的裁定モデルに数式を使用します.

Another important factor to keep in mind is the look back period of the mean and standard deviation. 本質的には, if you make the look back value 700, then the regression channel will calculate what the average price is over 700 期間. This can be too inefficient and will limit the sensitivity to changes in the market dynamic.

反対に, if you set a short look back period, then it will cause a whipsaw effect and will be far too sensitive. It is important to get a balanced look back within the range of 200-350.

Gold and sliver chart show correlation and cointegration

ゴールド / Silver Example

• Top Section: Standard Deviation and Linear Regression
• Middle Section: Relative Performance Gold (dark blue) and Silver (light/ turquoise blue)
• Bottom Section: Gold Daily Chart and Time Line

上記のグラフは金と銀と吹き出物が貿易の機会を引き起こす可能性がある程度の全体的な相関をハイライトします。. 異なる共和分シナリオの数を一周する P1 と 2 番目のセクションでこれらを参照, P2, P3 と P4 のラベル.

シルバーのスパイク – 3 月

3 月中の銀の価格の重要なスパイク送信の低い標準偏差チャネル下の線形回帰値 -2.0. 価格の重大な不一致を活用するには, トレーダーは短絡銀と行く長い金見ているだろう. 性能面では, 銀として全体的な利益の結果だろうこれ大きく弱体化, 5 月の金の下交差点.

銀の売られ過ぎ-7 月

銀の価格が金に相対的なレベルで弱り続けます. 6 月と 7 月に, 回帰値トップの標準偏差チャネル上を通過します。, 銀は売られ過ぎし、価格にお越しの方にもその意味に戻すことを示す. トレーダー銀と短いゴールドのロング ポジションをオープンすることを決定します。. 予想として, その平均に戻るし、すぐに両方のスポット価格の間のギャップを閉じます.

銀のオーバー シュート-12 月

銀の価格が金をオーバー シュート再び. これは長い金を設定します。, 短い銀チャンス. パフォーマンス レベル, トレーダーを活用
普及し、位置からの利益.

シルバー ・ Selloff-4 月

2 番目の標準偏差チャネルを開ける, 銀は大きく弱体化しながら金の価格を安定させる. これが今の長いトレーダーを指定します。
シルバー, 短いゴールド チャンス.

以下の下でファイルさ: 戦略の取引のアイデア タグが付いて: 共和分, 相関関係, ゴールド, シルバー

Forex Correlation

11 月 9, 2011 によって ショーンオバートン Leave a Comment

Correlation strategies appeal to forex traders because it removes the stress associated with picking market direction. When two correlated pairs diverge from one another, the idea is to simply buy one pair and sell the other.

What are correlated currency pairs?

Correlation offers a mathematical probability of two “time series” moving in the same direction. Applying the idea to forex, it means that we need to pick two currency pairs. EURUSD and USDCHF are two popular choices due to their extremely high correlation, so we’ll use those.

Now we ask a simple question: “If the EURUSD rises, what is the probability of that the USDCHF will also rise”? Our calculations will pump out a simple a number between -1 と +1. +1 means that that if Currency A rose in value, then it is 100% certain that Currency B rose in value. -1 means that if Currency A increased in value, then it is 100% certain that Currency B decreased in value. 値 0 means that the movement of Currency A exercises no effect at all on Currency B.

Traders generally consider a correlation significant whenever the number is greater than 70%. EURUSD and USDCHF are so popular because they hold the strongest correlation among the major currency pairs. When market volatility was very low a few years ago, it was around -93%. 今日, the correlation tends to hang around -80%. The European debt problems and Swiss National Bank’s intervention have a lot to do with the decrease in this number. Their trading relationships are far less stable.

Risks of correlation strategies

Let’s move back into familiar territory with my favorite example, the moving average. If you take the average over the past 20 バー, you know from experience that the average will differ if you study a 50 period versus a 200 period average. If you look at the average on a 5 minute chart versus an hourly chart, the number will vary yet again.

The take-away here is that the correlations work the same way. The correlation between EURUSD and USDCHF might even be positive if you look at a short enough time scale. As you back away in time, you will notice that the further out you go, the more steady the correlation numbers look. If the weekly correlation of the EURUSD and USDCHF is -80%, you would expect the numbers to get more wild and erratic as you scale all the way down to a tick chart.

The same problem with the moving average also appears. Studying the correlation over 50 periods provides a responsive number, but it is also far less consistent than the 200 period correlation. What a short period gains in responsiveness, it loses in stability.

You should also consider whether the correlation that you’re studying makes fundamental sense. Just because the temperature change in Mongolia predicted the direction of USDJPY for the past week does not make it a good idea to use in the future. The same goes with pair trading.

EURUSD and USDCHF should be highly correlated for two reasons. They both contain the same currency in the pair (米ドル), which half weights them with the same instrument. さらに, the EUR and CHF both have strong trading relationships with the US. You would expect both the Euro Zone and Switzerland to share a need for buying and selling US dollars. They need them for buying oil, importing and exporting to the US, など. Anyone with a cursory understanding of macroeconomics could explain why this relationship makes sense.

Correlation traders typically settle on pairs that share a common currency. The EURUSD and USDCHF trade both share the US dollar. When you buy EURUSD and buy USDCHF, you are really:
Buying EUR and selling USD
Buying USD and selling CHF

Notice that the USD cancels itself out. What you are really doing is buying EUR and selling CHF. This is commonly known as the EURCHF pair. Assuming that the spread is not outrageous, it makes more sense to simply buy or sell EURCHF directly rather than going through the convoluted process of managing two open trades.

If you decide to pursue the two pair approach, you must consider the need to balance the trade sizes against each other. Using standard lots as the example, 100,000 EUR is 137,500 米ドル. 100,000 USD is 90,900 スイス フラン. If you buy one standard lot of EURUSD, you are buying $137,500 of it. When you buy a standard lot of USDCHF, you are only buying $100,000.

$137,500 obviously does not equal $100,000. Unless you intentionally decided to trade different sizes, you may want to consider equalizing them.

Solve for x:
€100,000 / $137,500 = x * (₣90,900/$100,000)
x = €100,000 / ₣90,00 * $100,000 / $137,500 = 0.803
You would need your EURUSD trade to be 80% of the size of the USDCHF trade.

What correlation is not

Correlation only provides insight into the probability of direction. It says absolutely nothing about the strength of a particular move. A few months ago the USDCHF climbed 1,000 points in value within a single day. The EURUSD only moved a few hundred pips. The USDCHF moved dramatically further than the EURUSD both in terms of pips, but more importantly, as a percentage of price.

Consider if you were short EURUSD that day and short USDCHF. You lost a ton of money. 反対側に, if you were long EURUSD and long USDCHF, then you got lucky and earned the move. Regardless of what happened, correlation told you nothing about the outcome when they move in the same direction. For that reason, I prefer looking at a less intuitive method called cointegration.

共和分

Conintegration turns the problem on its head. Rather than asking whether or not two pairs move in the same direction, it asks how likely are they to remain a certain distance apart. 当然のことながら, that distance tends to vary with time. What you want the cointegration formula to tell you is how likely two pairs are to come back to a standard distance. If you see two pairs spread unusually far apart and the numbers tell you that they usually come back together, then it makes sense to consider a pair trade.

Ernest Chan has a friendly introduction to cointegration that I highly recommend. A much uglier, math intensive introduction to the subject, albeit one that is also far more thorough, is in the book Pairs Trading by Ganapathy Vidyamurthy.

以下の下でファイルさ: 外国為替市場のしくみ?, 未分類 タグが付いて: 共和分, 相関関係, 外国為替

メールで無料の取引戦略

トレンド分析

申し訳ありませんが. No data so far.

アーカイブ

  • ルール
  • 外国為替市場のしくみ?
  • インジケーター
  • メタト レーダーのヒント
  • MQL (オタクのため)
  • NinjaTrader ヒント
  • Pilum
  • QB プロ
  • お金を失うことを停止します。
  • あなたの概念を歴史的にテストします。
  • 戦略の取引のアイデア
  • 未分類
  • What's happening in the current markets?

翻訳


無料の取引戦略

プライバシー ポリシーRisk Disclosure

著作権 © 2021 OneStepRemoved.com, (株). すべての権利予約.