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

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

私はどのように悪いので欲しいです?

3 月 22, 2016 によって ショーンオバートン 10 コメント

あなたは絶対に定期的に取引システムのパフォーマンスをチェックする必要があります. あなただけでは、あなたの株式曲線を見てからの問題のほとんどを欠場するつもりです.

そのほとんどは数週間前に私に起こりました. 私は自分のアカウントを観察したところ, 私は、実際の結果が大幅に仮想的な結果を下回っていたことに気づきました. クイックレビューは、私だけかかったことを教えてくれました 271 前の週以上の取引, 私のバックテストのに対し見つけることが期待 360.

私は取引されました 75% セットアップの! 何が不足している取引を説明することができます?

欠陥を見つけます

私はDominariのメタトレーダー版に書いた一つの特徴は、最大拡散機能でした. 私は手数料を払っています, そのように支払うのまれではあるが可能なシナリオのアイデア 10 耐え難い見えた貿易を入力するスプレッドピップ. 私はだまさ防止するために、最大拡散機能を追加しました.

スプレッドが広すぎる場合、私はまた、何が起こるかに多くの思考を入れていません. 私の最初の本能は数秒間休止状態にEAを入れていました. その後、目を覚ますと広がりをチェックします. スプレッドは十分に狭くなっている場合, それは、市場の秩序を送信します. しかし、私の急いで取引を開始します, 私はまた、価格が私の元の要求された価格の近くにあることを必要とするのを忘れました. そのデザインは、市場がアップドリフトすることができただろう 10 ピップとその後, スプレッドが狭くなった場合, 劇的取引で取得する余分に払います.

スプレッドが広すぎる場合に支払わ広がりをキャッピングするための新しい方法は、指値注文を使用しています. この方法の利点は、2つの同時の問題を解決することです. 第1は、理解しやすいです. 指値注文は、限られた価格を持っています. 上の段落で説明した価格ドリフトが発生することはありません. 私は私なしで私が欲しい価格や市場の動きを得るどちらかと私は貿易を欠場します.

私は月に実行変更を行ったため、エクイティ・カーブ 16.

私は月に実行変更を行ったため、エクイティ・カーブ 16.

エントリに指値注文を使用する第2の利点は、指値注文は、ブローカーのサーバー上に載っているという事実であります. スプレッドは一時的に許容可能な価格に狭くなる場所冬眠方法は、潜在的に第二の画分を見逃す可能性が. 指値注文は、すべての見積価格をキャッチ, フィルの私の理論的可能性を向上させます.

現実には、取引の週後に理論を証明しました. 代わりに取っての 75% すべての可能な信号の, 私は今取っています 87.5% 信号の. つまり、新しい制限法の結果だと私の意欲は、貿易を入力して、より広いスプレッドを支払うこと.

もっと改善

私の心の上部に疑問がありました, “私はこれらの取引を入力するためにさらに多くを支払うことを喜んでなければなりません?” 良いような 約, 私はすぐに質問を算出することを決めたの代わりに、でたらめに推測します.

私はキャンセルされたアカウント内のすべての指値注文を検索するためのメタトレーダーでスクリプトを書きました. 私は単純に法外な広がりを支払っていた場合、私は、それらの取引の仮想的な性能があったであろうものを見て.

これは、これらの取引を入力するために、私はより多くのお金を支払うことを喜んでなければならないことが判明します.

があった 50 過去一週間以内に指値注文をキャンセル, 44 理論的に収益性の高いそのうちの. トレードあたりの平均の理論的利益は、すべての実行取引のための€0.33比べ€1.28. それは巨大です 287% 収益性の違い!

他のショッカーは%の精度でした. 44 うち 50 の精度を暗示 88%, 比較すると 64% 執行した取引上の精度. 50 信号は多くはありません. 私は逃した利益についてあまり興奮またはその不運でいます?

基本的な統計は、高精度で答えを与えます. 実際の精度があれば 64%, あなたが見ることを期待します 50 * 0.64 = 32 ランダムサンプリングで勝ちトレード. 私の観察, これらの指値注文との理論上の精度がありました 44 のうち受注 50, あります。 88% 正確です.

これは、これらの取引を入力するために、私はより多くのお金を支払うことを喜んでなければならないことが判明します.

、 標準偏差 ため 64% 上の精度 50 注文されました 0.48, 私たちは、その後、計算に使用することができます 標準誤差. 標準エラーに 50 注文はSQRTです(50) * 0.48 = 3.42 注文.

そして最後に, 標準誤差は、私たちにZスコアを計算するのに十分な情報を提供します. Zスコアは、観測値、期待値/標準エラーです, あります。 (44-32) / 3.42 = 3.5. A z スコア の 3.5 の確率を有します 0.000233 偶然によって生じます, または約 1 で 4,299 テスト.

結論: 統計は私の未実行の注文は私の実行注文よりも実質的に正確であることを高い信頼度で言います.

受注は両方のより正確であると貿易値ごとに高いと, 私は私がによって支払うことを喜んだ最大の広がりを増加しました 53%. それが妙に正確な聞こえますが, 取引あたりの値は、実質的に過大評価されるかもしれません. 私はボールが払っていることを推測を停め 40% 高品質の貿易のための貿易コストが妥当であると思わ. その数は私が詳細を測定するためには、より高い行かなければならないことがあり.

探査のためのアイデア

ライブ次数解析から驚くべき外挿は、スプレッドが成功の私の可能性を予測するために思われることです. スプレッドの拡大は、私はもっと成功する可能性が高い、より良いリスクで作ります:報酬率. 今後数日間の私のプロジェクトでは、スプレッドが私の信号の収益性を予測するかどうかを評価するために、信号生成時に私のスプレッドのログを開始することになります.

奇妙なことに, でも、狭いスプレッドが私の故障を予測逆説的な結果があるかもしれません. 私が質問に答えるための十分なデータを持っている場合、その上の詳細.

以下の下でファイルさ: ルール タグが付いて: 実行, 制限, 約, スリッページ, 標準偏差, 標準誤差, 統計情報, Z スコア

私のライブ取引執行の監視

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

Dominariの最大のリスクは、そのです 取引コスト. 失うことの真っ只中に 6 行の日, 私はDominariのパフォーマンスについての自分自身を非常に懸念発見しました. 信号は、突然のすべての悪い行くか、これは通常のドローダウンでありませんでした? Dominariが原因取引コストの失っています?

私は自分の分析を開始することを決定しました FXCMアカウント. 神経の一部は、それがかかったという事実によって牽引されました 2 セットアップアカウント週間. 私は元従業員だから、コンプライアンスのプロセスがはるかに通常より長い時間がかかりました. 二週間後, 私はに時間だけでアカウントをオン) 最大の株式の成長およびbを欠場) 最大ドローダウンをキャッチします.

私はパッドに損失を任意の利益を持っていなかったので、私はFXCM口座のパフォーマンスをより敵対的な感じ. これは、すべて私のオリジナルリスク資本から来ています. そして、私はすぐに私の3番目の子を抱えています. 米国の子供を出産することは非常に高価です. 私は市場でそれを捨てることよりもお金のためのより良い使用を持っています!

だから, 本当の問題は、: FXCMは私の昼食を食べているので、それはちょうど荒いパッチだかので、私は失っています?

backtest-equity-fxcm

この画像はあります バックテスト 私のライブパフォーマンスの同期間の株式曲線. 私は1月以来のライブ取引きました 28, しかし、取引は午後まで開始しませんでした. あなたが見ることができます。, 私は再び強力なパフォーマンスの別のパッチを逃しました.

残りはおとぎ話のようなものを示しています. バックテストはのリターンを示しています 19.13% その期間にわたって, 私のライブパフォーマンスがダウンしているのに対し、 10%. 手数料によるどのくらいいるのです, スプレッド, 転がる そして、滑り?

バックテストはの利益を示しています $956.65 ノー取引コストと.

私の本当の結果, を 1) バックテスト上の利益を示すが、 2) 実際に現実の生活の中での損失を示しています, 私の取引コストのためにフロアを推定するために使用することができます. そのための式は、
( 総利益と損失 + 手数料 + 転がる) / 合計取引, これは現在、 $1.58 取引あたりのコスト.

手数料およびロールオーバーはMyfxbookまたはFXCMアカウントのレポートのいずれかを使用して分離することが容易です. 手数料にこれまでに費やした総計です -$239.80 と -$3.05 ロールオーバーについて.

分離するための最も難しい部分は、有料スプレッドです. 私はすべての貿易に支払わ広がりを記録していませんよ (多分それは間違いだと私はそれを追加する必要があります). しかし、私は推定するために、以下の表を使用するつもりです. 私はのランダムサンプルを取りました 30 から取引 501 私の分析の時点で完了した取引.

スプレッド有料スリッページ
0.0001985231.49E-05
0.000153951-5.13E-05
0.0004558230.000227912
9.98E-050
0.000161242-0.00313413
2.76E-05-9.19E-06
5.55E-056.94E-06
0.000110898-1.01E-05
9.24E-050
9.91E-05-1.57E-16
6.55E-051.31E-05
4.85E-052.08E-05
8.22E-05-1.67E-16
6.87E-050
6.95E-05-1.65E-16
0.00015173-2.17E-05
9.43E-05-2.36E-05
9.38E-05-0.00225922
7.61E-05-0.0024735
0.0001600381.00E-05
0.000135020
0.0035426254.52E-05
0.000222978-0.00376275
7.62E-050
0.0004327977.73E-06
2.61E-050

平均滑り (右欄) 素晴らしいです -0.044%. 私が取得しています 負 FXCMとの平均で滑り. それは卓越したです! FXCMは私のエントリが悪化価格で要求されているにもかかわらず、私の塗りつぶしを改善しています. どのような私は過去にFXCMについて持っていた不安が軽減されます. それが印象的な実行です.

有料の広がりを推定することははるかに困難です. 私は上の私の平均貿易の利益を取ることを選択しました $5,000 出発点としてアカウント. トラブルが平均勝者の値はアカウントの性能に依存することができるということです. 私は停滞ポジションサイジングを使用する場合, その後、ドローダウンは平均勝者の値に影響を与えません. この仮定の下で, 平均勝者は $3.48 1 トレード当たり.

しかし、私はサイジング化合物の位置を使用している場合, ドローダウンは、利益のほとんどを離れて食べます. それがダウンまでの平均貿易額をドロップ $1.70.

私は割合にピップから支払わ広がりを変換しました. 例としてEURUSDを使用, 、 1 ピップスプレッドはということになります 0.0001/1.12727 = 0.000089. 私はAUDNZDのようにはるかに広い普及に何かにEURUSDのスプレッドを比較できるようにこれを行う理由は、. スプレッドはAUDNZDに広くなっています, しかしNZDピップの値はUSDピップと同じではありません. パーセンテージはリンゴの比較にりんごを可能に.

私のサンプルで支払われた平均スプレッドがありました 0.00026157605, あります。 0.026%. 私の口座残高の相対的な用語にその背中を置きます, 私が払っています 0.026% * $5,000 = $1.31 スプレッドの取引あたり. 横切って 420 取引, それです -$550.20 スプレッド.

総コストが広がっています, 手数料およびロールオーバー:
$550.20 + $239.80 + $3.05 = $793.05

取引ごとに, それです $1.78 私の見積もりから商品あたりのコスト.

バックテスト上の総利益がありました $956.65, しかし、私は約逃しました $550 それの取引がされるまで起動しませんでしたので、 17:00 1月の28日. それはどこかの周りのバックテストの利益を残します $406.65.

これは、再推定損益を置きます $406.65-$793.05 = -$386.40. 実際の損失は -$469, これは私が感じるが、私は1月に寄贈されましたどのくらいの利益を推定していたという事実に基づいた合理的な矛盾であります 28 代わりに、特定のために知っているの.

結論は、私はFXCMでこの取引をオフにする必要があるということです. 私は彼らのアクティブトレーダープログラムに参加し、最上位層で取引場合でも、, それだけで私は半分手数料を救います. 取引コストの大半は、スプレッドはなく手数料であります. 私は真剣に私は指値注文を掲載することにより、市場を行うことができますブローカーへの移行を検討しています. しかし、最初に, 私は自分自身とクライアントの取引コストを見直すために私Pepperstoneアカウント上で移動する必要があります.

以下の下でファイルさ: ルール, あなたの概念を歴史的にテストします。 タグが付いて: バックテスト, FXCM, ロール オーバー, スリッページ, スプレッド

制限の順序本

8 月 28, 2013 によって ティモシー ・ Lewkow 3 コメント

I remember the first time that I 本当に sat down and thought about it. Why exactly does a stock price change? Shrinking the economy and the number of shares helped. Examples starting with 10 oranges together with supply and demand arguments sparked good ideas. しかし, expanding a simple scenario into a full blown economy with high volumes and different order types never made any sense.

The story is not complete without considering the information contained in a limit order book. It’s the absolute best source for highlighting buying and selling power in a market in real time. The information within the data often results in more desirable entry and exits points.

A simple example of a limit order book

limit order book example

The orange squares represent units of stock that you can buy at market

Suppose that each block represents one share of stock on both the bid and ask side of the market frozen in time. The volume of shares in the above plot are 指値注文 waiting for execution or cancellation.

Say that Frank comes along and wants to buy 5 shares using a market order. その場合, his order will be filled immediately.

Remarkably, the current quote displayed of $20,26 は ない where Frank can trade- there are no shares available at that price. The quoting convention reflects the spread rather than tradeable prices.

、 5 empty colored squares represents the 5 shares that Frank bought with his market order

、 5 empty colored squares on the right represents the 5 shares that Frank bought with his market order

The order is filled by sellers in a first in, first out (FIFO) process. Those who waited the longest in the order book receive the first execution.

Frank’s market order for 5 shares receives execution at two different prices. 最初 2 shares fill at $20.27. 、 depth of market at that price is only 2 shares, forcing him to sweep the $20.27 price and move on to the next available price at $20.28.

4 total shares are available at $20.28. Because Frank only needs an extra 3 shares, he completes his total order at this level.

The best offer displayed when Frank placed the trade was $20.27, but his average fill is $27.276 (2 * $20.27 + 3 * $20.28). The slightly worse price doesn’t have anything do with slimy brokers. Slippage is the natural result of buying more shares than there are shares available.

Try making Frank a more aggressive buyer. Say he wants nine shares. Large orders receive worse fills because they suck up most of the liquidity on one side of the market.

Why A Spread Exists

Before answering this question, it is first worth understanding the difference between a quote driven and an order driven market.

Order driven market:

• Displays all of the current bids and asks across the market

• Has complete transparency

Quote driven market:

• Displays bid and ask prices from market makers, ディーラー, or specialists.This is the norm among retail forex brokers

• Often provides a guarantee that an order is filled

A quote driven market has more moving parts and will likely be involved in any market you wish to trade in. したがって, it is a good idea to think about the existence of a スプレッド in this setting.

When you post an order in a quote driven market, the dealer will either fill it with their own inventory or match you with another market participant. このために, part of your transaction cost goes to the dealer who has done this work for you.

In a simple model, the bid ask spread is the price that aggressive traders must pay to have their order immediately filled– think buying and selling the same security at almost the same instant. The spread is the compensation to a dealer for offering that immediacy.

A good way to think about the size of the spread is to consider a market with several competing dealers. この場合, there are two primary scenarios:

1. If the spread is too high, more dealers will enter the market to gain profit from the large bid/ask spread

2. If the spread is too low, dealers will lose money, and exit the market

These two factors ensure that the liquid market dealers make normal profits, and that spreads are of reasonable size.

Supply and Demand

The existence of a spread is quite natural and leads back to the simplicity of supply and demand. Start the argument small and work your way up! I found a great example in an article by Glenn Curtis 8 月 19 with the following story.

Suppose that a one-of-a-kind diamond is found in the remote countryside of Africa by a miner. An investor hears about the find, phones the miner and offers to buy the diamond for $1 百万円. The miner says she wants a day or two to think about it. In the interim, newspapers and other investors come forward and show their interest. With other investors apparently interested in the diamond, the miner holds out for $1.1 million and rejects the $1 mil- lion offer. Now suppose two more potential buyers make themselves known and submit bids for $1.2 million and $1.3 百万ドル, それぞれ. The new asking price of that diamond is going to go up. The following day, a miner in Asia uncovers 10 more diamonds exactly like the one found by the miner in Africa. 結果として, both the price and demand for the African diamond will drop precipitously because of the sudden abundance of the once- rare diamond.

Imagine the diamond becomes more popular. More buyers want it. More mines open, and more sellers emerge. In a rational setting, this creates a quote driven a bid ask spread. Add enough volume, and before long, you are back to the first example.

以下の下でファイルさ: 現在の市場で起きていること? タグが付いて: ask, bid, FIFO, 制限, order book, スリッページ, スプレッド

システムの期待

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

I found myself outside today looking for an excuse to make a video. It’s 80°F / 27°C, sunny skies and a soft breeze in Dallas. The last place anyone wants to be is in front of the computer when the weather is this nice.

No doubt that some active daytraders or people that hate their jobs are thinking the same thing. I suspect that the motivation for most people making automated expert advisors is the dream of making money without doing anything. Turn on the software and wait for the trading profits to roll in. That was certainly the case with the company Forex Made Sleazy… 私が言いたいのは, Forex Made Easy several years ago.

We do have a handful of customers that trade profitably, but even then, it takes a long time for an automated system to get to the point where it’s largely hands off. The best conceived ideas, which I would define as plausibly worthy of my own investment funds, takes a bare minimum of several months to execute from start to finish. This also presumes the unlikely notion that the idea has genuine potential to start with.

Even the most simple, valid concepts encounter substantial setbacks before the system can truly run hands-free. It’s usually not some kind of epic programming disaster where the client wants black and the programmer makes white. 誤解しないでください。; communication is critical. The smoothest projects are always the ones where both parties understand one another readily.

それにもかかわらず, even the most well-oiled team experiences countless hiccups in the process of morphing from idea to reality. Simple ideas often fall the most vulnerable to real world problems. Trade execution stands out as the most common obstacle. If anything goes remotely unexpected, a potentially profitable scenario may lead to unexpected losses.

I worked with one client that came up with a simple idea that mathematically showed a heavy positive expectation. Yet when we launched the idea in the real world, the prices that the system absolutely required in order to function never came through. Slippage occurred precisely when it was the most damaging.

We had to go back to the drawing board looking for ways to re-engineer the expert advisor where the importance of execution declined. That setback alone took several months to overcome in any meaningful sense.

The take away here is that it’s totally unreasonable to expect to hire a forex programmer and expect a dramatic shift in profits and life style. The best ideas take several months before they are worthy of running their full account balance. 残念なことに, most of the ideas out there are not good to begin with. That’s why making an EA that is profitable over the long run is so incredibly difficult.

以下の下でファイルさ: 戦略の取引のアイデア タグが付いて: プログラミング, スリッページ, system, 取引

Max spread and slippage

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

Many novice traders mix up the distinction between the slippage and max スプレッド. 、 スプレッド refers to the trading cost. Designating a maximum スプレッド forbids an expert advisor from entering orders whenever the cost of doing so exceeds a certain threshold.

Max spread

Forex spreads often widen around news events. It’s frequently a great deal of chaos where the end result is not much different from where it all started. Many traders find it preferable to sit out these events. It’s better to miss a trading opportunity than to pay an arm and a leg for it.

Max slippage

Slippage controls the execution of the order. MetaTrader offers a unique feature in the OrderSend() command called slippage. Most market orders are treated as pure market orders. It’s treated as a command to the broker to execute the order without regard to the price paid. The maximum slippage pulls back the reigns a little bit.

Say that the market price is 50 and an MQL program sets the maximum slippage to 2. The MetaTrader broker knows that it may only execute the price within a range of 2 pips from the requested entry price. Either the price 50, 51, または 52 will do.

The difference between maximum spread and maximum slippage

The easiest way to distinguish the two items is to remember the following two questions.

Does it look like I’m about to pay too much to enter this trade? もしそうなら, I should use the maximum スプレッド to prevent expensive trades.

Am I worried about the broker abusing my market order request after I send the order? もしそうなら, I should use the maximum slippage setting.

OneStepRemoved.com uses a hidden maximum slippage variable in our expert advisor programming テンプレート. We usually set it at 2 micro pips. You can ask us to make it an external variable upon request.

以下の下でファイルさ: 外国為替市場のしくみ?, 未分類 タグが付いて: スリッページ, スプレッド

メールで無料の取引戦略

トレンド分析

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

アーカイブ

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

翻訳


無料の取引戦略

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

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