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

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

Trading with the Commodity Channel Index

9 月 14, 2016 によって リオル Alkalay 4 コメント

When trading, one of the most important pieces of information to have is the ability to identify momentum—when it begins and when it ends. It can help you plan your next trade and to ensure that that trade is successful. It is in the process of charting momentum that the Commodity Channel Index is especially effective, and that is regardless whether you are trading commodities, stocks or Forex.

The rationale behind the Commodity Channel Index or CCI is that it is an oscillator that measures the deviation from the simple moving average over the period. Just like most oscillators, it has an overbought level and an oversold.

理論的には, using the CCI is similar to reading a Relative Strength Indicator (RSI). If the CCI is relatively high then the pair is overbought and when it is relatively low, the pair is oversold. 実習では, しかし, using the CCI is a bit more complicated than the RSI. Unless the CCI is calibrated correctly it is practically worthless in identifying momentum cycles. さらに, without correct calibration, it can generate plenty of false signals. But if you calibrated the CCI well it is an extremely efficient and powerful tool.

Commodity Channel Index: Calibration

The first step in calibrating the CCI is to identify when the current cycle began. This will help us decide the right period in which to run the CCI. In order to identify the beginning of the current cycle we can use Fibonacci Time Zones, which will give us an accurate measure.

たとえば, when we look at the Fibonacci Time Zones in the weekly chart below, we can conclude that the current cycle started 36 weeks ago. The rule of thumb is to divide the total period by three to give the average a bit more sensitivity. In the example below, it will be 36/3=12 weeks. That is the average the CCI should run on.

The reason we use Fibonacci Time Zones to calibrate the CCI is because the cycle’s length changes from wave to wave as they become longer and consequently the relevant average changes. Through the Fibonacci Time Zones, we can estimate with some degree of confidence when the cycle started.

Commodity Channel Index

Analysing the CCI

Once the CCI is calibrated, the rest is simple. The CCI, as previously mentioned, measures overbought and oversold levels. But rather than just looking at relative highs of the index we need to look at its behavior.

たとえば, in the Gold chart below, we can see that the CCI is converging with the price movement. That is a clear sign that bullish momentum is fading. If we take it a step further and continue our trend line all the way to the bottom, we can conclude another thing; that is that the pair, in this case XAU/USD, has already peaked and is heading lower in a bearish momentum.

Commodity Channel Index

Another way to chart the momentum is by examining the CCI behavior between the Fibonacci Time Zones. Notice that the CCI has a tendency to bottom out when the cycle ends and then rise. We can use that to ride on a rebound. There are cases, especially on a long term bullish trend, that we can get the exact opposite effect, すなわち, the CCI peaks every time a Fibonacci Time Zone ends. The idea is to observe the pattern and then use it to your advantage.

もちろんです, as I’ve said in the past, oscillators should always be used alongside other indicators to get the full picture, and the Commodity Price Channel is no different. As usual in trading, there are no guarantees, but certainly the well calibrated CCI can provide a very coherent picture of where a pair’s momentum is headed, north or south.

以下の下でファイルさ: 戦略の取引のアイデア タグが付いて: CCI, フィボナッチ, ゴールド, インジケーター

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, シルバー, トレンド

Why the Gold Silver Ratio is Worth Watching

7 月 19, 2016 によって リオル Alkalay 1 コメント

There are many ratios in the trading world that are worth watching. But when it comes to trading precious metals there is one key ratio that everyone must know and should watch. こと, もちろんです, is the Gold Silver ratio which is essentially the price of Gold divided by the price of silver. You might be asking yourself what insights one could possible glean with such a ratio? The answer is potentially very valuable insights.

What the Gold Silver Ratio Means

表面に, Gold and Silver should be identical, from a fundamental standpoint. They are both precious metals which investors buy as a hedge against fear. しかし, もちろんです, that explanation just barely scratches the surface. When we dive a bit deeper into the fundamental nature of Gold demand vs Silver the difference becomes more apparent.

ゴールド, as its reputation suggests, is a safe haven tool primarily driven by investments. Investments in Gold are often driven by fear and risk aversion (which are two sides the same coin). このように, we can attribute most of Gold’s price fluctuations to those sentiments.

Silver demand, 一方、, is driven both by safe haven demand by investments but also by Industrial usage.

That difference creates a very interesting dynamic. When investors’ fears mount, demand for Gold tends to be stronger and the ratio tends to rise. When fears fade then investors believe industrial output will rise. こと, もちろんです, tends to benefit Silver and thus the ratio falls.

The Gold Silver Ratio as an Indicator

Examining the Gold Silver ratio chart below, a trader is able to take the pulse of fear levels. If the ratio is rising it may signal an escalation in investors’ fears. その結果, that could signal that Gold demand is turning stronger. If the ratio is falling, fear is dissipating and Gold is turning weaker.

How is this useful in practice?

If you’re holding a long Gold position and the ratio is falling, you’re essentially riding a dying horse and Silver would be the better place to be. 反対に, if the ratio is on the rise and you’re buying Gold, that’s positive reassurance to own Gold over Silver.

もちろんです, for Silver, the effects of the ratio would be the exact opposite. A rising ratio is an indication of weaker Silver demand compared to Gold.

It Gets Complicated

But besides gauging which precious metal is strengthening at the expense of the other, there’s one other dimension. もう 1 回お願いします, the Gold Silver ratio chart sheds some light on this useful ratio.

The Gold Silver ratio has cycles. It has historical highs, where it tends to top out and fall, and it has historical lows. If the ratio is near its highs, then it might be a good idea to move into trading Silver. If the ratio is near its historical lows, it might be time to switch from trading Silver to trading Gold.

Gold silver ratio

Trading the Gold Silver Ratio

This might come as a surprise but the Gold Silver ratio is not just an indicator it’s also tradable. さらに良い, it’s actually rather easy to trade. 多くの場合, the ratio has simple and very distinct patterns that can follow a simple trend line. If you believe the ratio will trend higher, then you can buy Gold and short Silver with identical lot sizes. That way you will gain as the ratio rises.

For shorting the index one should do the opposite; short Gold and buy Silver with the same lot sizes.

たとえば, take a look at Point A from October of 2015. The ratio gained more than 10%, rising from 71, to where the trend line is above 80; that’s more than a 10% ゲイン. Compare that to trading the EUR/USD; 、 10% gain in the pair would roughly equal 1,000 ピップ.

当然のことながら, this simplicity doesn’t come cheap. 最初, you have to rely primarily on trend lines for short to mid-term trends (and you know what I think about relying too heavily on trend lines). もちろんです, you can use the historical lows and highs to figure out what’s coming next but that means opportunities might be fewer. 2 番目, this is margin heavy, since you essentially need to hold twice the margin, aka two positions in opposite directions.

Put another way, trading the Gold Silver ratio can be simple when it’s going right, but consider this could easily go wrong.

Gold Silver ratio

How to get started

If you plan to actually trade the Gold Silver ratio, first get used to using it as an indicator. その後、, once you have a better sense of the way it behaves, you can use your own discretion as to whether or not it’s worth trading. If you’re thinking about using the ratio solely as an indicator, let me throw this out there: Don’t entirely rule out trading it. 時折, when the ratio is at a multi-year low or high, there can be a very nice opportunity arising that you might not want to miss. しかし、実際には、, either way, as an indicator or as a tradable asset, the Gold Silver ratio is always worth watching

以下の下でファイルさ: 戦略の取引のアイデア タグが付いて: ゴールド, pairs trading gold silver, 比, シルバー

Trading Lessons from the Latest Gold Spike

2 月 19, 2016 によって リオル Alkalay 10 コメント

After a relatively long period of calm, Gold has come back from the dead. Half way through February, Gold prices have spiked by more than 12%. この, もちろんです, has got some traders scratching their head, wondering where the heck the spike came from… as if Gold moves materialize out of thin air.

まあ, Gold moves don’t just “happen.” In fact, the latest spike in Gold price provides some powerful trading lessons on trading Gold.

Charting Gold Volatility with MT4

Before we jump into the lessons to be learned let’s first focus on the cycles of Gold. That should help explain the latest Gold Spike. Despite what you may have heard, Gold does have cycles. 意外にも, the cycles are not in the price itself but in the level of volatility. In the past, I expanded on the advanced use of derivatives to predict an upcoming Gold move and direction. But the lesson here is far simpler.

In the weekly Gold chart below, we have measured Gold’s volatility through Standard Deviation (or StdDev), which is available in MetaTrader.

As one can see, Gold’s StdDev is remarkably simple to analyze. Every time the StdDev falls to 20 it jumps back up. And every time Gold’s StdDev jumps to 80 it falls down, back to the 20 低. The only exceptions were two extreme cases when the StdDev reached 145.

さらに, we can see that if StdDev has hit lows more than once the spike of volatility higher is almost certain.

ゴールド

ソース: MT4

First Trading Lesson

もちろんです, our StdDev analysis is not unique to the latest spike. But what can we learn? The first interesting lesson is that volatility spikes tend to concentrate around resistance/support levels. In our case, that is the 1,050 サポート, aka Point A. That means that Gold opportunities tend to occur around support and resistance levels. 今のところ, it may seem an obvious conclusion but here is what it actually means:

When you have a support or resistance level and StdDev is at 20 that’s the ideal time for entry. You will have both textbook support and resistance levels working smoothly. Then you’ll know that a strong momentum is coming.

Second Lesson

The second lesson is a simple but important one. A spike in Gold volatility does not necessarily mean a break of support and resistance levels. When technicals suggest that the support level will hold look at the StdDev. If the StdDev is at 20 それはいいですね; it re-enforces that simple fact that the support level will hold.

Third Lesson

The third lesson, which combines the first two, is perhaps the most interesting. It is the understanding that one jump in StdDev is not equal to one move. 詳しく述べさせてください。; say StdDev has hit the 20 low near the 1,050 サポート. Meanwhile, Gold prices have spiked but StdDev hasn’t yet reached the 80 high. That means that volatility is set to rise but it doesn’t necessarily mean that Gold will keep moving in the same direction.

むしろ, it means it will just move with a strong momentum. In the case above we can see Gold has hit the upper price channel resistance at Point B. But StdDev suggests volatility still hasn’t been maximized. And that means that the rise in volatility, next time, could come in the form of a short.

What Did We Learn?

So if we take our three lessons and try to summarize them, what did we learn? We learned that when StdDev is at its 20 lows it’s the best time to trade Gold. That’s because it guarantees that you will get a strong price momentum and it validates your technical analysis on Gold.

以下の下でファイルさ: 現在の市場で起きていること? タグが付いて: ゴールド, 抵抗, 標準偏差, サポート

主要ポートフォリオ更新

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

我々 は、黒の月に終了、 0.74% 戻り値. 私は誰も、パフォーマンスのようなもので上下にジャンプを実現します。, but I’m honestly very excited to see the change.

At the beginning of October, I made a substantial change to the portfolio. Previously I attempted to pick pairs that were doing well. This approach was something of a mixed bag. While some periods of performance were quite nice, such as June of this year, the month of August was pretty harsh on the portfolio. I also didn’t like that the pair selection process was still very subjective.

The QB Pro strategy, like any strategy, makes its most important trading decisions when it selects its portfolio. The strategy is not one that can make money in any given environment. 代わりに, it requires careful selection of instruments in order to give itself the best possible opportunity to earn a profit.

QB Pro equity curve October 2015

The equity curve for the month of October 2015.

Based on about 100 hours of research with Jingwei back in September, I’ve been able to reduce the amount of discretion when selecting portfolio instruments. たとえば, the mega-monster performance from August 2014-March 2015 was driven exclusively by the strength of the US dollar.

As anyone who buys gasoline for their car knows, the trend shifted this year out of currencies and into commodities. 具体的には, commodities have taken a real beating. China’s economy is sputtering, the US like it’s unable to raise interest rates and most industries suffer from serious gluts. Oil production in the US is widely rumored to possess a severe over-capacity, as evidenced by all the junk-debt ratings on US drillers. Gold mining stocks around the world have been the red-headed stepchild of financial markets, trading at PE ratios as low as 1.0.

That weakness spread to commodity currencies, even major currencies like AUD, CADとNZD. As I ran backtests using a portfolios of those currencies and their crosses, I noticed that the equity curve more less marched straight up through the summer. もっと重要なこと, that basket of pairs benefited from the Chinese devaluation, whereas my custom basket took a step drawdown.

I’m expecting more problems of out both China and the US through the rest of the year. Although China managed to settle down after the summer, the problems plaguing it are anything but fixed. Recent bankruptcies and bailout of state owned firms point to more cockroaches. と, you know the rule about cockroaches. Where there’s one, there’s 10 詳細. I expect more Chinese devaluation to follow.

QB Pro lifetime Oct. 2015

Lifetime equity curve of QB Pro’s high-risk version.

The commodity currency exposure is an indirect, systematic play on this expectation. The portfolio has done well in the current environment and, given that I don’t expect any improvement at all in China, should continue to do well.

The other variable is the Fed. I had the rather unfortunate luck of launching the portfolio just in time for a Fed governor to cast doubt on any US interest rate hikes this year. The change got off on the wrong foot. But QB Pro didn’t just stem the losses. It bounced off the equity low and marched upward in nearly a straight line for the rest of the month.

The Fed meeting in October forced the governors to pretend as though a 2015 rate hike is on the table. There’s always the chance that the Fed might hike rates just to prove a point. They’ve been talking about this for 9 ここ数ヶ月. The futures market at one point put the odds somewhere near 67% for a 2015 rate hike. Prior to the meeting, those expectations fell under 25%, then jumped back to around 50%.

Even if the Fed did raise rates, I see an impossibly low probability of a sustained program of rate hikes. The data looks like a car sputtering on fumes. There’s deflation everywhere expect for the financial markets and beef, どこ “investors” have been encouraged to park their money in junk debt in exchange for a pitiful 4-5% yield. The economy is sick. The idea of consumers breaking out their wallets and spending like the drunken sailors of 2007 is laughable.

My expectation for the next 6-24 months is that the Fed slowly retreats from talk of hiking rates and into another round of QE. That will mark the final admission that the Keynesian policies aren’t working and where the markets lose all confidence in central banks.

A confidence collapse would slam currency markets, but it should exercise the most severe impact on the commodity currencies that my traders and I focus on with QB Pro. The deflation would press prices even further to the downside, which provides ideal conditions for this type of strategy.

Open slots for new traders

I’m hosting a webinar on November 12 to teach you as much as I can about algorithmic trading. The webinar is going to cover in detail the QB Pro strategy, especially the SBスコア. I’m also planning to discuss the Fed and Chinese situation in more detail, as these are the two most important factors for us to consider when applying strategies. Make sure to sign up to the newsletter to be notified when I start accepting registrations. This is also open to traders in the United States, which is a big change from previous options!

If you’re interested in trading the QB Pro strategy in your own account, attending the webinar will be mandatory. And as a thank you for spending 45 minutes of your day learning from me, you’ll be given a strong financial incentive to trade QB Pro. More details to come soon, so make sure that you subscribe to the newsletter now before you forget.

以下の下でファイルさ: QB プロ タグが付いて: アルゴリズム取引, 豪ドル, CAD, China, 商品, Federal Reserve, ゴールド, NZD, oil, QE

金価格のピボットをスポッティング

9 月 15, 2015 によって リオル Alkalay 1 コメント

金は予測するは難しい. 多くの場合, 弱気の勢いを進めてみたいと思うとき, それは停止し、反転. また、多くの場合のみメルトダウンとそれに雄牛を運ぶために非常に強気に見えます. もちろんです, 不確実性のこの種は、取引に内在している部分であります, それは金に来る場合は特に. これは、あなたが私たちの取引を計画するために私たちを可能にすることが可能吹き出物やピボットをスポッティングに多くの労力を投資しなければならないことを意味. この記事で, 我々は、デリバティブを使用して、金の価格の正確なピボットを発見するのに役立つことができる方法に焦点を当てます.

デリバティブを通じて金価格

金で本当の問題は、それが落ちるか、急速に上昇することができますということです, 警告なしに. つまり、外国為替のペアだかのように、それは難しい、それを交換する人のための機会を発見することができます. しかし, これらのアウト・オブ・ブルーの急速な動きがあります, 多くの場合, 密接にデリバティブ市場に結びつい, 金取引のほとんどは、他の商品と同様に行われる場所. インプライド・ボラティリティについての私の以前の記事の一つで, 私は、誘導体は、比較的容易にあなたがボラティリティを監視助けることができる方法を説明しました. しかし、どのようなピボットについて? ご想像の通り: デリバティブ - または, すなわち, CMEのオプション価格は - その点でかなり便利かもしれません, あまりにも. どのように? どのような価格で私達を示すことで、ほとんどの賭けが集中しています.

ゴールドにオプションAnalyticsを使用して

CME以下 オプション解析 プットを示しています (短い) そして、呼び出し (長い) 任意の価格で金のオープンオプション. オレンジ色の列がプットされています, そして、青いものは呼び出しです - 他の言葉で, 買い手対販売. 真ん中の縦の赤い線は、現在の価格であります. 今のところ, この平均値とどのように地獄、それは私たちを助けることができるスポットピボット何をします? 非常にシンプルな. すべてのオレンジ色の列 (プット) 赤い線の左側に (現行価格) 価格が下落するのショートベットが待っています, すべての青の列しばらく (呼び出し) 価格が下落するのを待つ長いベットがあります.

見られるように 1,100 価格, ショートベットは長いベットよりも圧倒的に高くなっています. これはかなり単純な結論につながります: 金の価格は、下に交差している場合 1,100 レベル, それはすぐに短いオプションの山を誘発し、強い弱気の波をトリガーします, 私たちはから見なければならない非常に重要なピボットをマーキング. あなたは金に長い場合, 以下にブレーク 1,100 救済するための記号であるかもしれません, あなたが短い販売されている場合、一方, あなたは以下の交差して金を待つことをお勧めします 1,100 弱気の勢いは加速するために.

ゴールド

CMEグループ

もちろんです, これは私達の価格の右側に何が起こるかの鏡です, どこで 1,150 上記上昇する金のために待機しているコール・オプションの山があります. あなたが見ることができます。, これは、以下のプットの山よりずっと低いです 1,100 しかし、それはまだかなりのだと私たちの上部のピボットを作ります.

赤線の左側に (私たちの現在の価格以下のオプション), 強気の賭けの多くで - コール・オプションの数がプットよりもはるかに高かった場合 1,100 - それは突き止めることになります 1,100 強力なサポートゾーンとして. もちろんです, 左側にもう一度ダイナミクス (現在の価格以上) このミラーになります. このいわゆる画面は、基本的にCMEのための本です - あなたが購入し、販売注文に自分のアカウントを見たときに同じように, これは、金の上、私たちのために全体のCMEの為替の売買のオプションを示しています. これは、より広範な市場がその賭けを配置し、ピボットを見てどこに私たちが見ることができることを意味, そして、はるかに良い私たちの次の金の貿易を計画.

 

以下の下でファイルさ: 未分類 タグが付いて: ゴールド, インプライド ・ ボラティリティ

転送最適化を歩く

1 月 13, 2014 によって ショーンオバートン 6 コメント

歩いていたし、ランダムに雨が降り始めた場合, 明日は傘を持って考慮します。? もちろん、.

人々が行動を観察したとき、私はそのような修辞的な質問をする理由は、, それらはそれに応じて応答します. 彼らは何かが再び起こる可能性があることが予想される場合, 彼らは結果の変化に対応するために彼らの行動を変えます.

あなたは外国為替のロボットを考えるとき, 誰もが永遠に動作する戦略を開発するという夢を持っています. これは、変更する必要はありません. 初期設定は、常に動作. それをオンにし、ビーチに移動.

現実, もちろんです, それよりも複雑です.

walk forward optimization

ウォークフォワード最適化は継続時間の代わりに、静的な設定のいずれかのセットを探して全体最適化

あなたの戦略は、必然的にゆがんで行くときそれはあなたが何をする必要があるかの期待につながります. それはあなたが現在の市場にも驚くほど動作しない戦略を考え出すことは非常に可能性があります. しかし, 過去の天才は、将来の天才を意味するものではありません. あなたの戦略は、もはや将来的に動作しません可能性が常にあります.

何故ですか? それが今日雨が降れば、それはあなたが明日傘を運ぶかもしれないのと同じ理由です. 人々は一貫した方法で行う市場を観察. より多くの人々は、観測を行うと, 人々はそれに取引を開始します. 市場では、これらの変化に対応, あまりにも多くの人々がそれについて耳いるとして、最終的に機会が完全に洗います.

ウォークフォワードテストは、あなたの戦略が洗い流さしたかどうかを決定するプロセスです. データの1セットでテストすることにより, そして、ブラインドセットにそれをテスト, あなた自身にあなたの戦略が悪いかどうかの指標を与えることができます. ウォークフォワードの目標は、あなたの戦略が良好であることを証明することではありません. それはあなたの戦略が悪いことが知られていないことを証明することです.

ウォークフォワードテストのプロセスは非常に簡単です. あなたは、あなたのテストに使用する情報のセットを識別し、 最適化. 実際の例を使用して, 今ではの始まりに 2014. だから、多分あなたはからデータを見て、テストしたいです 2011 を通じて 2012. それはあなたの中のサンプルデータになります, し、サンプルデータのうち、あなたはすべての可能性があります 2013.

歩行フォワードテストを行うために, あなたはあなたの戦略をテストし、分析することになります 2011-2012. その後、, それはだかどうかを判断します “悪いことが知られていません”, あなたは、その後に先に歩きます 2103 見るために性能を確認.

あなたがやったことはブラインドテストであります. あなたはどのように戦略がで実行することになりかわかりませんでした 2013 あなたはそれをテストしたとき 2011-2012. ブラインドサンプルの上に置くことによって、, あなたはそれを失敗する機会を与えます.

それはあなたの最適化の弱点を識別するための絶対的な最高のツールだから非常に多くのトレーダーは徒歩フォワードテストで自分たちの信仰を置く理由は、. あなたは戦略をテストしているとき, それはあなたが過去の機会にオーバーフィットをした可能性が非常に高いです.

自己フィードバックは、現在の市場でループ

私はあなたに例を挙げましょう. 現在の市場では, トレーダーの多くはされています 叩い金 市場にどこの市場で毎日が開いて開きます。, 彼らはおそらくできる限り金を売却. 場合によっては、数分のスパンでの年間生産量の数倍です. あなたは何を参照してください5または10分間の絶対的自由落下であります. その状態は、一度日間持続します. しかし、それは永遠に続きません. 十分なトレーダーは、人々がオープンに金を強打することを見て起動すると、, 彼らは同じことをやって起動します.

効果的, 誰が彼らのためにその取引を行うために他のトレーダーを教えていた金は、市場のオープンにフォールオフしたいです. 人々は金が開いて最初の5分で落ちることを期待したよう, 彼らはその後、彼らの行動を変えます. いくつかは、オープンを叩いにジャンプし、短い移動しよう.

他の人は自分の動作を変更する開始します. 彼らは、5分間その金無料の落下に注意してください. その後、, 突然止まります, そのようなよりは平均値に戻ります. 非常に多くの分が開いてから経過した彼らは、タックと買いを変え始めましょう. 彼らは販売に先行重いボリュームが最終的に正常に戻ることを期待. 人々は彼らの行動を変更すると, 他の人が親切に対応します.

十分な人々がオープンに販売を開始し、その後、オープン5分で購入する場合, あなたは一人が別​​のアクションに応答する場合はパターンが形成されていることがわかります. それは日の最初のカップルのために働いていた状態がもはや将来的に機能する自己フィードバックループです.

あなたはこれらの条件に耐えることがある戦略を識別することができた場合, あなたが任意のテストと最適化をしなかった条件に耐えることがあります, あなた自身の将来に成功したのより良いオッズを与えます. それは非常に多くはないトレーダーは、あなたが発見したこの取引チャンスに物事をよく分かっていることを意味し.

フォワードテストを歩くためのアプローチは、として知られている問題に対する解毒剤であります カーブフィッティング. カーブフィッティングはcould haveの縮約形should haveの縮約形戦略究極のwould haveの縮約形であります. 昨日から、チャートを開いて、私はここで買っただろうと私はここに販売したと言っに似です, すでに蒸散何を知ります.

もちろん、あなたがしようとしています “稼ぐ” 其れでは. あなたは、市場が何をしたか、完璧な情報を知っています. 将来は, あなたは完璧な情報がわかりません. 戦略の目標は、そのあいまいさに対処することです.

新しい状況が必然的に発生していることをあなたが過去の市場の状況にまで完璧にフィットのすべてをしたカーブフィッティング手段, フレーズに似て一種の, “歴史は繰り返さありません, それは韻を踏みます,” あなたの戦略は、同じことを行い.

あなたは過去の実績でもない戦略をしたいです, しかし、あなたは歴史的な市場でお金を稼ぐための戦略を考え出すていません. 戦略を開発する目的は、将来の市場でお金を稼ぐことです. あなたはバックテストしているとき, あなたは、固体の歴史的性能とのバランスをしようとしています, 最も重要なこと, その歴史的知識が将来の業績に外挿することを確認すること. あなたの目標は、お金を稼ぐことです.

ローリングウォークフォワード最適化

ローリングウォークフォワード最適化は徒歩前方にアイデアを取り、継続的に新しいデータにそれを暴露することによって、戦略を改善. それでは、あなたが24ヶ月のサンプル期間を持っているとしましょう. それについて移動するための一つの方法は、二ヶ月の期間、あなたの戦略を最適化することであろう, その後、3ヶ月目に前方に歩いて. あなたは行動を観察し、あなたは、第2、第3の月の再最適化, その後、4番目の月を楽しみにして歩きます.

連続的にそうすることによって, あなたは戦略の減衰時間を排除し、それを継続的な市場の状況に適応する機会を与えます. これは、機械学習に赤毛の継子の一種であります. 経験と損失は戦略に徒歩フォワード最適化により改善し、市場の変化に適応する機会を与えます.

…あなたは戦略の減衰時間を排除し、それを継続的な市場の状況に適応する機会を与えます

散歩フォワード分析のためのもう一つの重要な考慮事項であります 自由度 系内で. たとえば, 例えば、あなたが、移動averaageクロスを分析しているとしましょう. あなたは、2つの移動平均を使用して、固定stoplossを使用して、利益を取るしています. それはあなたに4度の自由度を与えるだろう. 高速移動平均は、最初の学位であります. ゆっくりと移動平均は、二度あります. 第三はstoplossで、4番目はテイク利益であります.

あなたはシステムで許可するより多くの自由度が大幅に過去のデータにあなたのシステムをフィッティングチャンス0F曲線を増加させ. 絶対的な最高のシステムは、12自由度以下に保ちます. あなたは、大規模な取引の数、あなたが満足すること申し出性能を有する取引の機会を見つけたいです.

あなたの最適化の際に考慮すべきもう一つの要素は、あなたがのために最適化されたものです. ほとんどの人は絶対リターンに焦点を当てます. 戻り値は素晴らしいです, ほとんどのトレーダーは、について多くを気に どうやって 彼らはお金を稼ぐの代わりに、 いくら. 私はあなたに例を挙げましょう. 私が作っシステムを持っていた場合 $25,000 昨年, あなたはそれを望みます? ほとんど誰もがそう言います.

私が作っシステムを使用している場合 $25,000 昨年, しかし、あなたはに負けなければなりませんでした $15,000 あなたはお金を作った前に. ほとんどの人は、そのシステムを望んでいません. これが意味することは、最終的な結果ではなく、日々のパフォーマンスについてより多くを気にしていることです. 最適化、さらには徒歩フォワード最適化の問題点は、必ずしもあなたが現実の世界で気に何に焦点を当てていないということです: あなたがあなたのお金を作っている方法.

ほとんどのチャートパッケージは、ネット結果に焦点を当て、それはあなたのシステム内のいくつかの弱点を引き起こす可能性があります. あなたはレンジ取引している場合, あなたが本当にやったことは桜が少なくとも実質的なニュースの影響を受けている結果を選ぶです. 効果で, あなたはまだ影響を受けていません設定を選択しました 脂肪のしっぽ.

あなたはトレンド取引している場合, あなたは正反対をやりました. あなたが意図的に過去に起こった脂肪tailesを最大化の設定を選びます. トレンド取引戦略で, あなたはおそらく安定したパフォーマンスを見つけることするつもりはありません. 代わりに, 何を見つけることは、最適化を頻繁に長い引き起こすことがあります, 絶え間ないドローダウンの継続的な干ばつ. そして、突然、, ほとんどどこからともなく, それはあなたが経験したドローダウンの数倍を返すメガモンスターの勝者を見つけます. これは、架空のbacktestsの罰金です, しかし、現実の世界で、あなたは近く、日常的に損失を被るている場所, ほとんどのトレーダーは、痛みを取ることができません. 私はほとんどの最適化を見つけるの弱点は、彼らはパフォーマンスの一貫性を見ていないということです. 戦略を最適化するための潜在的な代替が見れることになります 線形回帰 経時株式曲線の. 最高の株式曲線は最強の線形回帰の傾きを有します.

ローリングウォークフォワード最適化を実装する人気チャートパッケージはAmibrokerです, 売買, MultichartsとNinjaTrader.

NinjaTraderでウォークフォワード最適化

コントロールセンターから戦略アナライザを開きます. [ファイル] をクリックします。 / 新機能 / 戦略分析.

NinjaTrader Strategy Analyzer selection

NinjaTrader中戦略・アナライザを開きます。

  1. 楽器や機器のリストの上でマウスの左クリックと右のマウス、マウスの右クリックメニューを表示します. メニュー項目ウォークフォワードを選択. また、上でクリックすることができます “で” 戦略分析ツールバーのアイコン. あなたがホットキーを好む場合, あなたはまた、Ctrlキーを使用することができます + W. 最後に, あなたもプッシュすることができます “W” 戦略分析の左上のアイコン.
  2. 戦略引き出しメニューから戦略を選択します
  3. ウォークフォワードプロパティを設定 (参照してください。 “ウォークフォワードの特性を理解します” プロパティ定義については、以下のセクション) し、[OK]ボタンを押してください.
NinjaTrader Walk Forward Optimization

NinjaTraderに散歩前方最適化を選択するための多くの方法があります

ウォークフォワード進行は、コントロール・センターのステータスバーに表示されます.

以下の下でファイルさ: NinjaTrader ヒント, あなたの概念を歴史的にテストします。 タグが付いて: AmiBroker, バックテスト, カーブフィッティング, 脂肪のしっぽ, ゴールド, MultiCharts, ninjatrader, 範囲の取引, 自己フィードバックループ, 短い, 戦略・アナライザ, 売買, トレンド, 前方を歩く

相関関係対. 共和分

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

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

Buy and Hold Gold

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

I came across a paper entitled A Quantitative Approach to Tactical Asset Allocation by Mebane Faber. This paper appears to have been extremely popular over the years. Reading through the contents and reviewing the charts, I loudly wondered if the strategy might apply to gold.

Rules for buying gold

The idea is very simple. Taken directly from the paper, the rules are:

BUY RULE
Buy when monthly price > 10-month SMA.

SELL RULE
Sell and move to cash when monthly price < 10-month SMA.

1. All entry and exit prices are on the day of the signal at the close. The model is only
updated once a month on the last day of the month. Price fluctuations during the rest of
the month are ignored.
2. All data series are total return series including dividends, updated monthly.
3. Cash returns are estimated with 90-day Treasury bills, and margin rates (for leveraged
models to be discussed later) are estimated with the broker call rate.
4. Taxes, 手数料, and slippage are excluded.

Test results

The tests were done using Kinetick’s free end of day data. The data extends from August 4, 1997 until December 10, 2012.

One thing which drives me crazy about NinjaTrader is that the percent return calculations are so opaque. The actual numbers used a clearly wrong. The buy and hold return for gold is easy to calculate. 、 1997 price was about $350 an ounce. 今日, gold trades near $1,700. The buy and hold return should be in the neighborhood of 385%. NinjaTrader claims that the return is somewhere near 150%. I’ve gone through the charts to confirm that the trades are correct. You can download the gold strategy for NinjaTrader and verify the trades for yourself.

The percent return metric is consistent within the platform, so luckily the exact numbers are unimportant. The only thing that really matters is whether or not the strategy returns a bigger number than the buy and hold approach.

Equity curve of buying and holding gold

A chart of gold’s daily equity curve, extending back to June 1997.

Equity curve of the gold trading strategy

The tactical gold strategy dramatically underperforms the buy and hold return.

Reverse gold strategy equity curve

Pursuing the opposite idea of buying on crosses underneath the SMA10 doesn’t help

The strategy severely underperforms the buy and hold return. The idea held in the paper itself is deeply flawed. Buy and hold is a silly concept. Most of the “返します” in the portfolio stem from long term inflation and the devaluing of the dollar. The prices of the securities rose because the dollar, which you can think of as the counter currency, declined enormously in value over this time period.

さらに, the idea of the price crossing the moving average implies that the trend escapes the moving average. The MA, 実際には, gets dragged along with the price. While this is true with a handful of monster trends, the way that price moves usually work is something along the lines of 10 steps forward, 9 steps backward. The results of the test indicate this.

If the proposed strategy returns less than buy and hold and the total buy and hold strategy returned 150%, then it stands to reason that the total buying return is trades taken by the strategy + trades not taken by the strategy. The test includes what are supposed to be trades not taken by the strategy – the reverse signals. Adding up the proposed strategy’s returns with the returns of the opposite signal only accounts for roughly one third (22% + 34%) の 150% earned. Where did the rest of the money go?

Most of the move happens around the short term moving average. The majority of the move has already happened after the price to crosses and closes above the moving average. The instinct of many novice strategy developers is to move to intrabar signals. Intrabar trading ignores the basic problem; you cannot know whether or not the bar will close above the moving average.

以下の下でファイルさ: NinjaTrader ヒント, 戦略の取引のアイデア タグが付いて: ゴールド, intrabar, ninjatrader, SMA, 戦略

メールで無料の取引戦略

トレンド分析

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

アーカイブ

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

翻訳


無料の取引戦略

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

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