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

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

順序の再試行ロジック

1 月 21, 2013 によって ショーンオバートン 5 コメント

バックテストとライブ取引の違いは、何がうまくいかない、バックテストの. 戦略はでEURUSDに対して正しく取引場合 2011 昨日, あなたは同じテストが今日正常に動作することを知っています.

backtesterを設計したり、それはライブ取引で発生する問題の種類をキャッチすることができますされていません. 私は、最も一般的なソリューションプラットフォームによって、一般的な問題を一覧表示するための努力をしたと細部へ.

 

メタト レーダー

ほとんどの古いEAが停止を添付したり、注文に利益を取ります. 周りからNFAルール 2009 接続されているすべての終了条件なしで入力するすべての外国為替取引を必要とします.

ルールは米国のMT4ブローカーのための悪夢を作成しました. 彼らは戻って行くことを余儀なくされました, メタトレーダーを変更し、とチケットを禁止 停止または制限します.

解決策は、取引の正確な実行を確認することです. 貿易が入ると, だけにしてエキスパートアドバイザーの試みは停止を追加したり、利益を取る必要があります.

それは追加の通信時間を必要とするルールが残念です. プロセスは、オーダー実行を遅く, 引き起こす可能性があります トレード状況がビジー状態 エラー.

order denied

これらはあなたが生きて取引を配置するときに見たい言葉はありません

当社のエキスパートアドバイザープログラミングテンプレート

カマルO. 私たちのEAのテンプレートコード内の単語RETRYCOUNTとはretryDelayについて金曜日に尋ね. これらの 2 言葉はすべての可能な状況を処理するコードを維持するために重要です, または少なくとも 99.9% そのうちの.

我々はにそれらをデフォルトで設定します 10 試みと 1,000 (ミリ秒), それぞれ. それです, 順序は、までご注文しようとします 10 別々の時間. 各試行は、少なくとも待機します 1,000 (ミリ秒) (1 2 番目) 別の試みを行う前に.

試行の間で, 我々はまた、貿易コンテキストが使用中であるかどうかを確認してください. それがない場合には, 我々は進みます. それ以外の場合, コー​​ドは、指定された最大値まで新しい注文を提出する機会を待ちます.

同じリトライ広告待機ロジックは、ストップロスを提出に適用され、利益を取ります. トレーダーは発見することができ、最も恐ろしい現実の世界の出来事の一つは接続しない終了条件で開かれた貿易であります. このような事が本当に起こるのか.

同じ再試行ロジックは劇的にその発生の可能性を減らすために私達のテンプレートコード内の所定の位置にあります. 我々はプログラムごとに専門家の顧問のためにこれを行います. あなたは、再試行ロジックが含まれていないエキスパートアドバイザーを使用している場合, その後、あなたのEAのソースコードは、より堅牢なことについてお問い合わせ.

NinjaTrader

NinjaTraderは、主にプログラマのためのエラーや問題を処理します. しかし, NinjaTraderのソリューションは、ユーザーを失望させる一般的な状況があります. 戦略を無効とするたびにすべての取引を閉じます いっぱいになります。 発生頭に浮かぶ.

最も単純な取引戦略が、何が良く使用して処理されます 管理対象外のアプローチ. 保留中の注文を使用して管理対象のアプローチは、ほとんどの戦略を書き換える必要性を作成します。.

NinjaTraderのユーザーが私たちを契約最も一般的な理由の一つは、彼らのライブ取引に間違って何かに関し、. 二回何かをプログラミング回避する最善の方法は、最初の試行で現実世界の取引のためのコードをご用意することによるものです.

以下の下でファイルさ: メタト レーダーのヒント, NinjaTrader ヒント タグが付いて: managed order, メタト レーダー, ninjatrader, トレード状況がビジー状態, unmanaged order

ライブテスト混乱状態

1 月 14, 2013 によって ショーンオバートン 2 コメント

我々はメタトレーダーとNinjaTraderプラットフォーム間で信号を起動信号分配システムを構築しています. ライブ口座の取引が、 $20,000 持分, EAは、新しい受注を制限 3 およびマイクロロット. 試験中の目標は、壮大な災害を作成せずに問題を発見することです.

忍耐のために神に感謝. 今日はどこ戦略の内部更新を開始しました 76 過去からの信号 3 ヶ月以内に送り出さ 30 秒. アカウントはすべてを解約しました 76 分の下での注文. スプレッドコストによる損失, しかし, 唯一まで苦しみます $50.

 

 

私たちは私たちの目標サイズを取引した場合、何が起こっているだろう 3.6 ミニ注文ごとのロットの代わりに、 3 およびマイクロロット? 損失があったであろう 12 悪い倍, または $600.

私ははねのけることができます $50 として “おっと” 損失. $600 ダウン投げドレインが私のギャグになるだろう.

あなたの馬をホールド

自動化されたシステムを開発する非常に多くのトレーダーは昨日、新しい戦略を取引を開始したいです. 長年の経験は、それが製作に災害だと言われます.

これは、プログラミングのルールです. 何かが間違って行くことができる場合, そうなる. ちょうど見て ナイト・キャピタル 昨年のラッキング $389 100万の損失 30 分. おっとっと!

あなたはナイト・キャピタルは、そのライブ口座で新しいソフトウェアを解き放つ前に、より堅牢なソフトウェアのテストプログラムを実装することを賭けるために何をしたいです? それは半分の十億ドル規模の機関に発生することができる場合, それはあなたに起こることができます.

ソフトウェアや専門家の顧問への更新は、常に大きな誤差の可能性に直面しています. あなたは忍耐と規律を持っている場合, デモ口座でのテストはいつも行くための最良の方法です.

デモ口座のオプションは、残念ながら我々の状況では使用できません. 我々は、少なくとも必要があります 180 連続したテストの日は、私たちの要件のすべてをオフにチェックします. MT4はにデモ口座期間を制限します 30 日.

A $1 bill from the board game Monopoly

他の本当の理由は、私は本当にデモアカウントを気にしないということです. 貿易だけの価値がある場合でも、 $10, 私は真剣に、彼らはモノポリーのお金に発生したときにエラーを扱うことはありません. 私は、ねじアップがあまりにも多くのお金がかかるしないライブ口座でテスト幸せなメディアを求めます. 私はまだ気にそのように, それは私の腕と脚の費用はありません

以下の下でファイルさ: メタト レーダーのヒント, NinjaTrader ヒント, 戦略の取引のアイデア

自動化された取引 Ii

1 月 7, 2013 によって ショーンオバートン 1 コメント

The second part in Nathan’s interview series with me focuses on the role of high frequency trading in the markets and testing trading strategies. If you missed the first automated trading interview in the series, you can read it here.

Nathan Orange(Nathan):
Do you have any specific thoughts or opinions on HFT (High Frequency Trading)? This is such a hot topic among traders and I would imagine you have a unique insight into algo trading in general.

Do you see machines eventually replacing the “human” trader or could HFT eventually get banned from the markets? At least for day traders it seems to give quite an unfair advantage to the HFT camp for executions?

ショーンオバートン(ショーン):
There is a huge difference between algorithmic trading and HFT. HFT is obviously automated due to the speeds involved, but that does not imply that all automated trading is HFT. It’s only a subgroup.

 

Nathan Orange(Nathan):
確認して, there are plenty of automated systems that are not HFT. I bring it up under the context that HFT uses deceptive algorithms for their order posting tactics.

 

 

ショーンオバートン(ショーン):
HFT is uniformly destructive to capital markets and their purpose. It nickels and dimes investors and traders through market manipulation. Just last week Nanex detected a single organization that pushed through 4% of all the order flow on US equities quotes. さらに悪いこと, not a single one of the orders executed. Posting orders without the intent to trade is blatantly illegal.

The other negative consequence of HFT comes from the rebates that the dark pools and exchanges pay to “liquidity providers,” which are really the HFT bots. The arrangement tangibly alters the motivation for participating in markets. Rather than investing or even speculating on price, the HFT algos generally do not care about market movements. They just want the liquidity rebate.

Nathan Orange(Nathan):
This to me is the bigger issue. The whole arrangement is shady and as you said it alters the motivation for market participation. What steps or changes do you recommend?

 

 

ショーンオバートン(ショーン):
、 Market Ticker blog is one of my favorites on that subject. Karl Denninger advocates a regulatory rule of a two second minimum order time. I support the idea. Nobody can plausibly claim that an order placed for such a short duration is for any trading purpose. If an order is not intended to be filled, it should be not permitted.

 

Nathan Orange(Nathan):
I cannot argue with that logic. Back to testing, how important is accounting for commissions and slippage to the integrity of any back-testing data in your opinion? To me, as you go down the scale from longer term trading to day-trading the importance grows exponentially.

 

ショーンオバートン(ショーン):
I fully agree. The consequences of trading costs pile up with increased frequency. Shorter time frames multiply the frequency, which as you pointed out, grows exponentially.

My personal preference is to skip trading costs and commissions on short time frames so that I can obtain a sufficient sample size for my analysis. I do not foresee myself ever trading on one minute charts, but I almost always use one minute tests to analyze randomness within a strategy. Unlike most systems developers, the profitability of a system is a backseat concern.

I read a newsletter this morning written by a multi-million dollar businessman. He concluded today’s article saying that if you start a business to make a lot of money, you’ll more than likely fail. You have to excel at providing a quality product and service in order to succeed over the long run. When the inherent business excels, only then does the long term money follow.

Trading is a business in precisely the same sense. Most traders rush through the system development process to spit out quick profits. They rarely, if ever, consider a strategy’s performance over a lengthy period of time. Everything is about the here and now. さらに, good systems frequently lose money. You need something more in the toolkit besides the random scorecard of profit and loss.

Nathan Orange(Nathan):
Good systems do have losing periods, yet many traders seem to be convinced there is a “holy grail” approach out there that will buck this fact. If some of the most successful traders ever have posted losing periods (or even years) and have been around for 20+ years it seems hard to fathom beating their performance from day 1.

Regarding testing platforms, you were one of the first people that really explored the issues with back-testing Forex – can you provide more detail on the problems for those that are interested in developing and back-testing a system for FX (MetaTrader platform)?

ショーンオバートン(ショーン):
You’re opening a can of worms on this one. MetaTrader is hands down the worst platform available for backtesting. The data is notoriously unreliable. Even when good data is at hand, the instructions for importing it and turning it into something usable fill a dozen pages of instructions.

You’re much better off doing real analysis in NinjaTrader, TradeStation or MultiCharts. The metrics are vastly superior and require a tiny fraction of the effort. I still think that MetaTrader is sufficient for live trading most strategies.

Nathan Orange(Nathan):
I am a huge fan of live testing/trading alternate strategies. One of my biggest “A Ha” moments came during live testing alternate exit strategies. I traded my account with my original exit approach but also demo traded alternate exit strategies in real time. There is value gained that you don’t always get from a back-testing print out. How do you compensate for slippage when testing a strategy?

 

ショーンオバートン(ショーン):
Forex is thankfully unique in that it doesn’t come with unique problems other than rollover. The markets are the most liquid in the world. As a retail forex trader looking at charts longer than five minutes, you can generally assume that the historical prices are reasonably reflective of executable prices for the strategy.

I compensate for slippage and bad ticks by doubling my expected transaction costs. たとえば, I pay 1.5 pip spread on the EURUSD. When I test a strategy, I demand that it must hold up on 3 pips transaction cost on every trade.

Nathan Orange(Nathan):
Before we wrap this up, are there any specific strategies or common parameters that you have noticed in systems that make it? We both know how small of a percentage of traders become successful, but as it relates to mechanical systems are there recurring themes for those that are profitable?

 

ショーンオバートン(ショーン):

いいえ, there are no recurring themes that I see. The lowest common denominator is that they do not overtrade and that they use low leverage. Other than those two items, each successful strategy differs substantially from all the others.

The most important ingredient in system development is the developer. I have yet to program a successful trading system for someone without years of full time trading experience under their belt. You have to go through the school of hard knocks if you’re going to make it. Almost all of us are too stubborn to listen to good advice.

Nathan Orange(Nathan):
ショーン, I can’t thank you enough for providing such honest responses and sharing your insight. If you are interested in learning more or considering coding your system, go to MetaTrader Programming for more information.

以下の下でファイルさ: メタト レーダーのヒント, NinjaTrader ヒント, 戦略の取引のアイデア タグが付いて: アルゴリズム, バックテスト, HFT, high frequency trading, メタト レーダー, mt4, Nathan Orange, ninjatrader, 取引

取引戦略グループ

1 月 4, 2013 によって ショーンオバートン 42 コメント

フランシス・D. オーストラリアから私のオフに異なるEAのアイデアをバウンスするのが好き. 彼は、最新の電子メールに長いか短いのどちらかである信号から二重の損をしたばかりの恐怖を述べました.

この種の問題は、すべての時間を発生します. 私は最初の移動平均の上に価格十字架をフェードシンプルな戦略とそれを検出しました. たび価格十字架と移動平均の下に閉じ, 長い行きます. ショーツは同じ規則に従います. それは私が常に提唱愚かな単純な範囲の取引戦略のようなものです.

SMA Range Trading Rules

価格が下に交差したとき購入 200 SMA. 販売と価格は戻って上記交差したときに短い行きます

上記の例では、フランシスは文句同じことを強調し. どこにも行かせず、移動平均の周りの価格山車.

ランダム成果

SMA上記価格交差点に基づいて取引が損益分岐近くで出てきます. 受賞者は約発生します 66% 時間のと敗者の三分の一サイズであります. このような戦略は、どちらも作ることも、取引コストを無視したときにお金を失います.

戦略の受賞者の大半は小さな小さなされています. それはSMAに最も近いときは常に戦略は、その最大の機会に遭遇. 遠くにそれが行きます, それは間違った道を進んで保持可能性が高いです.

取引を反転すると、まだランダムな結果をもたらします. 唯一の違いは、勝者がに落ちるということです 33% 精度, しかし、平均的な勝者は今 2:1.

取引戦略の誕生

私はいつもスケーリング戦略が結果に影響を与える可能性があるか疑問. 戦略は、機会が最小になるとき勝つために最も可能性がある場合, 戦略は、市場に悪影響を移動すると、その位置のサイズを小さくしようとすると何が起こります?

別の方法として, それは位置にすべての小さな勝者とスケールでパスを取る場合何が起こります? [はい], それは敗者に調整されます, それはまた、結果の勝者を大きくする必要があります. 質問はその後、敗者の救済へのスケーリングとするときのレートを決定する方法になります.

ありがとう, フランシス! 新しいブログシリーズが誕生. 今、私は取引に拡張することを決定したこと, 私はいつ、どのようにそれを行うことを選択する必要があります.

洞察力や特別なものは何も心に跳ね上がっていません. 私は視覚的な人間です, 私はNinjaTraderを使用してExcelでほとんどのグラフを作成する午後の大半を過ごしました. 何簡単なプロジェクトとして開始すると、常に自分自身に成長します. それはほぼ取りました 4 時間情報を取得し、正しい書式設定します.

EURUSD price distance from SMA 200

グラフは、周波数に対するSMAからの価格のパーセントの距離が表示されます (すなわち, 価格はこの遠くからどのくらいの頻度であります 200 SMA?)

価格からさらに移動すると、私は取引にスケーリングを気に 200 SMA. 上のグラフを見てから私の本能は、私は変曲点に焦点を当てるべきであると言います. 曲線は、周りの素敵な屈曲部を形成し 0.3% 離れSMAから. 私が取得するまで、たぶん私は変曲点での購入を開始することができます 0.6% とか、ぐらい.

何をすればいいと思いますか?

アフターの考え

このシリーズは、最終的に収益性の高い取引戦略につながった. 旅を読むしたい場合, 記事を順番に読んでほしい

適切なタイム フレームを選択します。
研究計画
初期 backtests の厄介な驚き
範囲の取引の試み
範囲の取引結果
移動平均エンベロープ ダフ屋

以下の下でファイルさ: NinjaTrader ヒント, お金を失うことを停止します。, 戦略の取引のアイデア タグが付いて: エクセル, ninjatrader, scaling, SMA

NinjaTrader Backtest

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

Running backtests で NinjaTrader is relatively straight forward, once you learn the ropes. NinjaTrader uses a special window, called the Strategy Analyzer, to run all backtests and optimizations. The first step to finding this window is to click on File \ 新機能 \ 戦略分析.

When the Strategy Analyzer opens, the window is divided into 3 vertical panes. The left window allows the user to select the instrument to test. The middle window contains the statistics and バックテスト 情報. The final window on the right is not visible; it slides out when you put the mouse over the word “Backtest” in the top right corner.

Finding the symbol that you want to test

It’s important to emphasize that you need a data connection before diving into any of this. NinjaTrader is not a standalone platform. The information that you would like to test is not available by default. 代わりに, NinjaTrader uses the Account Connection to go out to the broker or data provider to obtain the historical data. Everything below is a moot point if you have not already downloaded historical data and/or do not have an open Account Connection.

The left pane lists all lists that have been created using the 楽器マネージャー. NinjaTrader supplies lists of the most common instruments available: the DOW, S&P 500 and major forex pairs. Testing an instrument like a junior gold mining stock or something less common requires creating a new list in the Instrument Manager.

One cool feature is that you can test multiple instruments at the same time. If you want to view your strategy’s historical performance on all S&P 500 株式, then select the list name. It is not necessary to select them individually. Every stock in the list will be included in the analysis.

If this all sounds terribly confusing (Account Connection, 楽器マネージャー, など), you’re right. It’s very confusing, which is why the learning curve for NinjaTrader is so steep. It takes a long time to figure out how all of these pieces fit together. Even my staff of professional programmers experienced an ugly few weeks when I started training them. If programmers have trouble figuring out how to use the software, you don’t have to feel bad about your own difficulties.

Strategy options

The right pane opens when the mouse appears over the word “Backtest” on the far right. Within it, the menu contains multiple sections that allows the user to define the strategy. Options near the top under “パラメータ” are the inputs or variables that the strategy uses. Common examples include the number of shares to trade, the stop loss distance and others.

The Data series section controls the chart period. 言う, たとえば, that you would live to バックテスト AAPL on 5 1 分チャート. The necessary steps are:

  1. Select APPL in the left pane
  2. Choose Last for Price Based on
  3. The type is Minute
  4. The value is 5, which here stands for 5 1 分チャート

Time Frame controls the period over which the バックテスト runs. Running an AAPL strategy for 2011 would cause a trade to enter 1/1/2011 for the Start Date and 12/31/2011 for the End Date.

The remaining sections largely do not apply. When they do cause problems, most stem from the Order Handling セクション. If you want to trade several signals in the same direction, then the option for Entries per direction must change from 1 to a predefined maximum.

Other sections

Anyone with trading experience in other platforms will find the middle pane intuitive, especially TradeStation users. Tabs at the top of the middle pane include the Summary and Graphs. Most of my personal trading analysis concentrates on these two tabs. The others are helpful for more detail oriented folks.

The Strategy Analyzer contains a number of buttons at the top left of the screen. There are four which I find to be useful.

The floppy disc icon stands for saving a file. とき、 バックテスト completes, and especially if it takes several minutes to run, then option to save results may save a significant amount of time. If you have multiple backtests and would like to share them, the only way to do so is to send someone all of your backtests. NT stores all of its saved results in a local database. The exact location is Documents\NinjaTrader 7\db\NinjaTrader.sdf. Sending your friends or colleagues this file includes all saved backtests to date. Make sure that the recipient backs up his own NinjaTrader.sdf file before using yours. それ以外の場合, the information will be lost.

Right clicking in the middle pane allows the user to export the summary grid to an Excel file. Although it does not look as convenient as the NinjaTrader format, the above problem highlights the need for sending and saving individual test results.

NinjaTrader doesn’t give the b, o and w enough visual importance in my opinion. The buttons are tiny, yet they control the most important feature of the バックテスト – the type of test to run. Do you want to run a バックテスト, optimization or a walk-forward optimization? These little buttons control the type of test run.

以下の下でファイルさ: NinjaTrader ヒント, 戦略の取引のアイデア タグが付いて: バックテスト, ninjatrader, 戦略・アナライザ

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, 戦略

三角裁定

11 月 8, 2012 によって ショーンオバートン 23 コメント

三角裁定は少しクールなサウンド外国為替用語です。. 何か近くに瞬時に売買利益の考えを表すこと. インスタント, 無料でお金はほぼ全員に訴える. 理論は音, 非常に現実の生活でやってのけることは困難だが、.

精通していない場合 合成通貨ペア, 私は非常にあなたが 12 月から件名に私の記事を読むことをお勧めします 2011. この説明のどれも意味になることを理解することがなく合成ペア コンセプト.

Triangular Arbitrage

通貨ペアは、価格を示して ときに三角裁定機会が発生します。, 同じ中 合成通貨ペア 別の価格が表示されます。. 場合は、EURUSD の言い値は 1.2820 合成通貨ペアの入札価格が、 1.2823, 三角裁定機会が存在します。.

、 合成通貨ペア 任意の交換の媒体を含むことができます。. 円のペアは非常に液体, ので、おそらく 5 月 USDJPY と EURJPY を使用して合成の EURUSD を構築.

三角裁定取引についての素晴らしいところは、同じ楽器を使用して複数の機会があるということです。. 名前のペアは変わりませんが, この例ではユーロドル, トレーダーは、他のいずれかを使用できます。 6 主要通貨取引で最高の価格の買物をする. ユーロドルを買っている仮定を使用して以下の例を一覧表示.

裁定取引通貨長い EURUSD の関わるアービトラージのアクション
円EURJPY を販売します。, USDJPY を購入します。
英国ポンドEURGBP を販売します。, Gbpusd します。
豪ドルEURAUD を販売します。, 豪ドル/ドルします。
NZDEURNZD を販売します。, NZDUSD を販売します。
CADEURCAD を販売します。, USDCAD を購入します。
スイス フラン販売 EURCHF, USDCHF を購入します。

例

トレーダーは、EURUSD の裁定機会をスポットと十字架を円と認める最高の機会を提供. 戦略の機械の実装はこの近似プロセスに従います:

  1. 購入します。 100,000 市場でユーロドル
  2. EURUSD の順序または要求された価格の近くの実行を確認します。.
    • 注文受信合成通貨ペアよりも悪いですまたは貿易をあまりにも高価になる貧しい実行した場合, 貿易を閉じるし、新しいチャンスを探してください. 費用は広がり、どのような手数料が支払われました。.
    • 順序は、合理的な実行を受信した場合, 続行.
  3. 満たすために合成の脚の半分を選択します。. 順序は問題ではないです。. それ、EURJPY が使用する最初の注文の場合, この作業は非常に簡単、. EURJPY と EURUSD のペアは、同じ通貨を使用します。. 取引の多くのサイズが同一でなければなりません. 名前の通貨ペア EURUSD を買ったので, 我々 は貿易のユーロ コンポーネントをヘッジする EURJPY を販売する必要があります。. EURJPY 販売 100,000 市場で実行する必要があります。.
  4. 貿易の残りの足は USDJPY. 私たちの短いドルを置く EURUSD を購入. ドルをヘッジするために, 我々 は、ドルを購入する必要があります。. このように, USDJPY を購入する必要があります。. ことはできません。, しかし, 盲目的に購入します。 $100,000. 買いましたが €100,000, 私たちは短い置く貿易 $128,200. ユニット サイズの購入をする必要があります。 $128,000 円に対して. 余分な $200 位置のサイジングの外国為替市場での制限のためオフに丸められます. 私たちは、危険性 accpept を余儀なくされて、 $200 位置
  5. 全体の貿易が今実行します。. 機会を逆自体に、入札は今質問の下と出口が発生します, 市場で期待どおり. 市場で開いているすべての取引を終了します。.

多くのサイズを修正します。

それは 1 つの例から三角裁定取引の概念を理解するは難しい. 私の読者を退屈のリスクで, 徹底のために下の 2 番目の例を紹介します。. 多くのサイズを修正する必要性は何を期待ほとんどのトレーダーを旅行します。. 死んだ馬を破っているように感じる場合は、このセクションをスキップします。.

オフの壁として使おう、NZDJPY 例. 関与のペアは、次のとおりです。:
NZDJPY, を取引 66.32
NZDUSD, を取引 0.8281
USDJPY, を取引 80.07

名前付き NZDJPY 価格です。 66.32. 合成の価格, しかし, は 66.305. 裁定機会 1.5 ピップが存在します。. これは、によってを計算されます。:

1 ニュージーランドドル/米ドル 0.8281 * 1 米ドル/日本円 80.07 = 1 NZD/66.305 円
66.32 – 66.305 = 1.5 ピップ

名前の通貨が質問の上入札価格を示しています. つまり、我々 は名前の通貨を販売し、合成通貨を購入する必要があります。. 標準の基本通貨の多くでは、契約と仮定すると, トレーダーに NZD を売り注文を実行します。 $100,000 市場で.

最初のタスクは、ドルの NZDUSD を使用してキウイを買い戻すことです。. 単位間の変換は必要ありません。. 名前付きおよび合成の両方の通貨を共有同じ基本通貨, NZD. 最後と最後のステップは NZDJPY 短いトランザクションで購入された円を販売するには. USDJPY を購入伴います USDJPY を使用して円を販売. ユニットのサイズについての警告を覚えています。.

我々 は、購入する必要があります。 NZD $100,000 価値 円 で 私たち ドル. あなたが見ることができます。, それは複雑します。. NZD ドルの基本通貨に変換します。:

NZD $100,000 * USD 0.8281 ドル/NZ ドル $1 = $82,810

我々 は購入する必要があります。 $82,810 USDJPY の価値. 外国為替市場に取引を制限します。 1,000 単位. 最小のリスクでは、購入することです。 $83,000 USDJPY と受け入れる $190 露出で.

なぜ三角裁定ですので一般的です

ほぼすべての小売外国為替ブローカー マーク、 スプレッド 直接の手数料を充電の代わりに. 目的は、取引の真のコストを偽装するには. ほとんどの仕掛けのような, しかし, それは予期せぬ結果を作成します. 普及に人工マーク アップ三角裁定機会の多くの理由であります。.

ブローカーは、のどの側面を決定する必要が、 スプレッド マークアップを受け取る. 時折, 全体のマークアップは入札価格から差し引かれるか、質問に追加. 多くの場合, ブローカー入札の両側にマークアップの部分を追加することによって彼らの賭けをヘッジし、聞いて.

マークアップは、常に十字架を高くなって. 極端な入札間違いし、直接望ましくないこれらの十字の取引確認を求める. パラドックスのようなものです。, その望ましくない特性三角裁定のコンテキストで肯定的なものになりますが、. 入札は実質レートより低い. 質問はその実質レートよりも高い. メジャーが合理的なスプレッドで取引するとき, それは十字架を恒久的な裁定機会の近くを作成するマークアップの一般的です.

貿易は、マークアップは、反対方向に傾斜を開始するたびにのみ実現できる利益を実現します。. ブローカーのほとんどのマークアップが適用される場合, 三角裁定取引ブローカー シフト マークアップまたは完全に大抵入札するまでに利益はないです。. フリップフ ロップは、通常発生するいくつかの時間を取る, 毎日の機会の数を制限します。.

証券会社はほとんど常として裁定取引トレーダーを表示します。 有毒なご注文の流れ. 裁定は、誰かがホイールで眠っているときにのみ発生します; 利益は最終的に誰かのポケットから出てくる. 証券会社が提供してインスタンスでも、 ECN 実行を通過または, 個人のお客様よりも銀行との関係を気遣うはるか. 証券会社、銀行の取引の腕のため基本的に卸し業者. 銀行がそれらを切断する場合, その後、何も販売するがあります。. この状況で三角裁定は、銀行からお金を稼いでいます。. トレーダーが速すぎるあまりにも多くのお金を行う場合, トレーダーは、銀行の要求で斧を得るでしょう.

トレーダーに、 FXCM ディーリング デスク 継続的な関係のチャンスに直面する他のブローカーがないや. 利益は、ブローカーのポケットから直接来る. 彼らは非常に長いためのビジネスにしてきた場合, 彼らは何をしている比較的すぐに知っています。.

戦略が成功するための最良の機会を複数のブローカーの間でに取引を分割. 注文を解除するより多くの機会と、します。. もっと重要なこと, 1 つのエンティティを知っているあなたの複合注文の流れ. それはそれに彼の出血は人を追跡する痛む敗者のはるかに困難乾燥.

外国為替プラットフォーム

メタト レーダー

三角裁定エキスパートアドバイザーを中 メタト レーダー 無骨な回避策を含む. 適用される同じリスク 裁定取引ブローカー 三角裁定にも適用されます。. 、 トレード状況がビジー状態 最大の関心事として際立っている問題. 現実的にかかることがあります。 3-5 単一の内で行われる場合、すべての 3 つの命令を実行する秒 専門家アドバイザー. このような大規模な期間で多くの悪いことが起こり. また, この方式に迅速にキャッチし、それをシャット ダウンするブローカーを期待するだろう.

共有メモリを実行するトレーダーの 3 つの個別のインスタンスを使用する唯一の実用的なソリューションです。 DLL. 1 つのインスタンスに専用にすること、 “悪い” ブローカーのマーキングを スプレッド. 他の 2 つのインスタンスが各片面と合成の貿易を実行します。 “良い” ブローカー. 実行、キューなしで同時に入力する能力を入手. 欠点は、EA が着信ダニにのみ更新します。. タイマー刻み間に長い間隔が発生した場合, それは入力から三角形の一角を遅らせます.

NinjaTrader

NinjaTrader 命令を実行することができます理想的に単一機関内で行われる場合. もう一度, これは、あなたのトラック哀れなほど単純なトレースになります. 数日間、現実の世界でのみサウンド エンジニア リングと偉大な戦略を構築することも. もう一度買い物行くブローカーを立ち往生しているし、.

マルチ ブローカー ライセンスと NinjaTrader を使用することを交換する最良の方法検出されないです。. 悪いブローカーの 1 つの戦略を適用します。, 良いブローカーの 2 番目の戦略を適用します。. 戦略も必要があります通信する方法, 共有メモリ リソースやイントラネットのクライアント-サーバーを通じて.

この web サイト上の販売のための製品としてよく設計ソリューションの構築に興味があります。. 場合はこのような何かを取引の利益します。, ください私にメールし、たいプラットフォームを言及. 私はトレーダーがする優先順位を設定するのにリストを維持します。.

以下の下でファイルさ: 外国為替市場のしくみ?, メタト レーダーのヒント, NinjaTrader ヒント, 戦略の取引のアイデア タグが付いて: 裁定取引, 専門家アドバイザー, 外国為替, mt4, スプレッド, 合成通貨, 三角裁定

対数の価格

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

Logarithmic charts allow traders to better distinguish between trending and ranging environments. Exponential charts inherently place more emphasis on changing prices by reflecting exponential changes rather than the linear price movement.

The most common way to show a logarithm is to decide which base number to use. The more mathematically inclined gravitate towards Euler’s number e. Most people unfamiliar with logarithms prefer base 10. It feels more intuitive.

We’re talking about math stuff, so allow me to bring it down to a more friendly level. The process of following logarithmic prices means following the exponent of the number. That’s what I mean by the exponential change.

Taking my favorite example of the EURUSD, the current price of the EURUSD is approximately 1.3000. If you take the natural logarithm, that becomes ln(1.3) = 0.2623, which is not terribly informative. It just looks like the calculator spits out a number. It may help to realize what the number shows. e0.2623=1.3000. 、 0.2623 is just the exponent.

ベース 10 works the same way. Log10(1.3) = 0.1139. Representing the number as an exponent, the trader can think of the current price as 100.1139= 1.300. Ten is the base number risen to a certain exponent. The result is the current price.

As the price rises, the exponent will change. しかし, it takes an increasing amount of price movement to get the logarithmic price to budge. The differences are usually not very clear between individual bars. The point of the exercise is to allow traders to distinguish between long term trends versus a drifting price.

Charting packages offer logarithmic charts to visually represent the exponential change. They typically display different distances between different price ticks. 間の差 1.20 宛先 1.25 is larger than the distance between 1.25 宛先 1.30.

As cataclysmic events like Enron unfold, the logarithmic chart exaggerates the move by making the earlier trends appear bunched together, whereas the free falling stock price sticks out even more than on the linear chart.

A great stock like Disney, which appears in the video, exhibits the opposite behavior. The price looks dead in the water for years until it exploded upwards over the past year or more. When viewed on the logarithmic chart, the price rise tends to look less exciting. It mutes blow off top and makes them appear more like a consistent trend.

メタト レーダー, for some unknown reason, does not even offer logarithmic charts. NinjaTrader offers logarithmic charts buried under an obscure menu.

Logarithmic charts in NinjaTrader

Changing charts from linear to logarithmic is very simple in NinjaTrader, once you know where to look. Special thanks go to koganam on the NinajTrader forum and Walker England for suggestions on this topic.

  1. Open a chart in NinjaTrader
  2. Right click anywhere on the vertical price axis. The wrong menu will appear if you do not click on the price axis
  3. Select properties
  4. Change the chart type to Logarithmic

以下の下でファイルさ: メタト レーダーのヒント, NinjaTrader ヒント, 戦略の取引のアイデア タグが付いて: グラフ, ログ, logarithm

NinjaTrader 市場再生

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

The market replay feature in NinjaTrader allows you to record streaming price data from your broker for future use and analysis. Many trading educators and systems vendors push the market replay feature in order to train students on how to use their products.

Using a market replay connection is identical to any other connection. Go to the ファイル menu, 選択します。 Connect and then choose Market Replay. Prices will start updating as though you were connected to the actual market. All functionality remains in tact as well. You can open charts, place Sim trades and do anything you would ordinarily do in NinjaTrader.

If you wish to record market replay data, click on ツール, その後、 オプション. 、 データ tab contains an option called Record data for market replay. Once you push ok, NinjaTrader will record all incoming price data for future use. This comes with a lot of overhead for the computer. If you have an older computer or care about maximizing performance, then I suggest leaving this unchecked during normal use.

以下の下でファイルさ: NinjaTrader ヒント タグが付いて: market replay, ninjatrader

最高入札ベストオファーで指値注文

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

今年の初め、私は詳細に市場作りのアイデアをテストしていました. すぐにおさらいするには, 市場を作るというアイデアは、現在の最高入札と最高のオファーのいずれかで指値注文を配置することを伴います (BBBO) または遠くに. 指値注文がいっぱいになったときに, トレーダーは大きな利点を実現. スプレッドコストはもはやリターンを圧迫しません.

A 取引実験に失敗しました MBの取引で手数料を得るために、私はクライアントの代わりに実行された取引のプロジェクトにsegued. 重要な問題は、取引コストを最小限に抑えた場合の戦略が唯一の利益ということでした. コストを削減する最も簡単な方法は、広がりを払っていないことです.

最高入札/最高のオファーをすることを実現するに指値注文を作成します. 現在の入札価格で置い買い制限は塗りつぶしを受信するたびに, トレーダーはすぐに無償入札で貿易を販売することができ.

それは理論です, とにかく. BBBOの考えは別のビッドまたはオファーが同じ価格で自分の後ろに立って継続することを前提になります. 最も取引の実験と同様に, その仮定はフロップ. 、 NinjaTrader 戦略は、順序を投稿だろう, その後、変更せずに元の価格でそれを残します. 時には順番が座っていました 10-20 分. 価格は戦略が注文をキャンセルすることを反対方向にカスタムインジケータラインを通過し、最高入札/最高のオファーで新しいものを置かれたときだけでした (BBBO).

私が経験について学んだ最も有益な洞察をご注文でフィルレートでした. 不思議, BBBOでそれらを配置するだけで実行になりました 75-80% 数百の試み取引上の時間の. MB取引のECNプログラムはかなり小さいです. 私は、価格受験者の不足のために、低実行速度をアップチョークをまい, でもEURUSDのような主要な組に.

だから, 我々は、インタラクティブ・ブローカーズに切り替えて、もう一度試してみました. 私は同じ結果を見つけることは非常に驚きました; BBBOでの注文のみが満たさ 75-80% 時間の. 市場がそのストライドを見つけ、上向きにズームとして本当に収益性の高い取引は常にスキップされました.

私は、低実行で再生する方法このくらいの通常の市場力学とどのような責任高周波アルゴリズムとラインに落ちるかわかりません. これは、HFTのALGOSが日常偽注文が市場価格を持ち上げることを意図して表示されているゲームに従事していることを一般的に受け入れられて表示されます, 吸盤が解除価格を受け入れる場合にのみ再びダウンしてスラムします. 、 高周波トレーダーとのインタビュー おそらく、HFTのALGOSは私の戦略は、その吸盤になることを期待して価格を持ち上げていた場合、私は疑問に思う製. 2ヶ月前からのインタビューは私の長引く疑いに追加.

第2の例: 他のトレーダーの行動をモデル化することができますHFTs. 誰かがスコットトレードやインタラクティブブローカーを通じて取引する場合, そのためには、それに接続されている一意の番号を持っている - 同じ番号をクライアントが注文を出すたびに. この番号は、関連するすべての取引情報にバンドルされています (時間, 価格, など。) 暗号化されたとして販売されている「強化されたデータフィード。「HFTはその後、トレーダーの行動を予測するために、これらの過去の結果を使用することができます.

私はこれがMBの取引で発生したとは思いません, 私の注文のサイズは確かにそれは注文スタックの中の個人を参照するのは簡単ですので、小さかったものの、. 私は日常的に見て 市場の深さ 私は、個々の小売トレーダーの注文を識別することができますように感じます.

多くの人がBBBOで指値注文を使用して、驚くほど低い充填速度を経験し、どのように助けることが疑問に思うことができません. あなたが持つかもしれない関連した物語を共有するには、以下のコメントセクションを使用します.

以下の下でファイルさ: NinjaTrader ヒント, 戦略の取引のアイデア タグが付いて: BBBO, best bid, best offer, Interactive Brokers, 指値注文, MB の取引

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page »
メールで無料の取引戦略

トレンド分析

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

アーカイブ

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

翻訳


無料の取引戦略

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

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