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

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

堅牢なエキスパートアドバイザー

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

あなたがしたい場合 プログラム専門家アドバイザー, それはあなたがファイルを使用する可能性がある方法を検討することが重要です. 私は、新しい参照の最も一般的な間違い MQL プログラマ 作る彼らはメモリに過度に依存していることです. 電源障害などのイベント, エキスパートアドバイザーとの取引時にハードドライブのクラッシュまたは弱いインターネット接続が大混乱をもたらすことができます. EAは、理想的にピックアップし、あなたが正常に条件を復元することができますたびに実行することができる必要があります.

メモリの問題

問題は時々設定を変更するような日常的なものから生じます. クライアントが私たちに来たときに私はそのハードな方法を学びました ダラスオフィス 2週間の非常に複雑なEAを注文します. すべてがで完全に働きました backtester. 一晩テスト, しかし, 何かがゴチャゴチャ行く前に数時間以上続いたことはありません. 私は、設定を変更していないクライアントに指示; ちょうどそれをオンにして一人でそれを残します. 何らかの理由で, これらの命令の重要性がで沈没したことはありません. それは、彼の定義することを実現するために私に年齢を取りました “一人でそれを残します” かなり鉱山と噛合しませんでした. 彼は取引中に行われた少しの微調整は、私がメモリに保存されている設定で混乱しました.

私は特定の方法でソフトウェアを使用するようにクライアントに指示することができます. 多くの場合, 彼らはある程度の命令から外れます. それは人間の本性です. 私は、これらの課題から学びました, 任意のプロたいものです. 私たち プログラミング テンプレートには、特別な指示の必要性を最小限にするための構造に変更しました.

グローバル変数

グローバル変数はメモリに頼るの問題を回避するための一般的なツールです. EAをチャートから削除された場合, それが作成されたグローバル変数は、あなたのためにアクセス可能です, EAまたはその他のEAはメタトレーダーの内の任意の場所から読み取ります.

グローバル変数の使用は、洗練されたに聞こえますが, それは実際には非常に単純なアプローチです. メタトレーダーは、変数名とそのインストールディレクトリに非表示のテキストフ​​ァイルを管理, それが保存されている値と、それが最後に変更された時間. たび以上に 6 前回からの経過週 MQL グローバル変数を使用します, メタトレーダーは、自動的に削除されます.

A マルチンゲール このシステムは、単純な統計量を追跡するために、グローバル変数を使用することを選ぶかもしれません. マルチンゲール リスクへのアプローチとワイルドです, そうトレーダーは現実的に最大レベルが取引一目で知りたいことができ. グローバル変数は、その必要性から、簡単な作業を行います. 取引する次のレベルは、グローバル変数よりも大きい場合に, その後 MQLコード グローバル変数を更新する必要があります.

覚えておくべき唯一のアイテムは、グローバル変数は、6週間後に期限切れということです. EAは、その現在の値にグローバル値をリセットすることで情報をリフレッシュする必要がある場合があります. そうすることでメタトレーダーの観点から変数新鮮に保つだろう.

A screen shot of global variables in MetaTrader 4

代わりにそれを格納する情報を読みます

私はに頼ることを好みます MQL'S注文を選択() 私は必要な情報を再作成するためのコマンド. それはより複雑であるが, 利点は、EAはいつでも機能することができるということです, 任意の場所, 設計通り. ハードドライブがクラッシュした場合, それは回復の観点から問題ではありません. あなたはダウンタイムの間にトラブルにまだあります, しかし. あなたのMT4のアカウントに同じEAをロードすることができ、それがすぐに情報を再構築しています.

上記を取ります マルチンゲール シナリオ, 私たちは、取引の開閉時間を比較することにより、取引レベルの数を再構築することができ. 貿易場合 #1 のクローズ時間を持っています 2011 12月. 5 00:00 貿易 #2 またのクローズ時間を持っています 2011 12月. 5 00:00, それは、同じ貿易グループの一部であることを教えてくれる. これまでのところ, 我々は持っています 2 取引レベル. 貿易場合 #5 で閉鎖 2011 12月. 5 00:00 しかし、何の取引はその後なかったです, その後、私たちは取引ことを知っています 5 合計レベル. EAは、すべての可能な組み合わせをループしているから、最高数を選ぶことができます.

注文履歴からの読み込みのアプローチは、この単純な例のためにやり過ぎのビットです, あなたはより多くの複雑な情報を計算する必要がある場合、それは動的に、エラーのリスクが最小限に便利です.

以下の下でファイルさ: 外国為替市場のしくみ?, メタト レーダーのヒント, 未分類 タグが付いて: EA, 専門家アドバイザー, global variable, マルチンゲール, メモリ, メタト レーダー, mql, OrderSelect, power failure, テンプレート

Calculate pip value

11 月 21, 2011 によって ショーンオバートン 3 コメント

One of the best trades of my life actually made extra because the appreciation of the same currency. I sold USD/JPY several years ago when it traded at 118.75. I knew there was an important G7 meeting over the weekend, so I placed an anticipatory sell stop on the expectation of a volatile weekend session.

Over the next several weeks, the yen gained on the dollar down to 112.00. When I took profit on the retracement at 113, I noticed that the pip values changed in the past two weeks. It started at $8.47 ピップあたり, but when I closed the trade, it was worth $8.84. The value of every pip jumped 4% in value while I held the trade. How did that happen?

How to calculate the value of a pip

Currencies are quoted in terms of the base currency と、 counter currency. When you say, “I bought 1 GBPUSD の標準ロット”, what that means is that you bought £100,000 in exchange for selling the equivalent amount of US dollars. GBP in this example is the base currency. USD is the counter currency.

If the current exchange rate of GBPUSD is 1.5500, then it takes £1 to buy $1.55. Buying £100,000 means that you sold $155,000.

Pip values come into play when the price changes. Say that the price increases by a single pip to 1.5501. You still own only £100,000. The dollar value, しかし, just increased.

The dollar cost of your trade was $155,000 (£100,000 * $1.5500 /£ = $155,000.)
The current dollar value of your trade is $155,010 (£100,000 * $1.5501 /£ = $155,010.)

You made $10 on a single pip trading a standard lot, meaning that the value of 1 pip is $10. The math is the same for mini lots and micro lots. The only difference is that the pip value is directly proportional to the money management and position size that you trade.

Calcualate pip values when USD is not the counter currency

That last example was as straight forward as it gets. The US dollar was the counter currency. All of the pip values stay in dollars, making it easy for American traders to keep a tally on their profits and losses. It gets more complicated when the counter currency, which is the second currency in a pair, does not use US dollars. That includes when the base currency includes dollars. USD/CAD and USD/JPY are good examples of this. The dollar is the base currency, but CAD and JPY are the counter currencies.

The current price of the USD/JPY is 76.90. Buying 1 standard lot means buying $100,000. That necessitates selling the equivalent amount of Japanese yen. $100,000 * ¥76.90 / $ = ¥7,690,000

When the price rises one pip to 76.91, the value of this investment just rose ¥1,000.
$100,000 * ¥76.91 / $1 = ¥7,691,000

The pip value is ¥1,000, which is where I left off with the example of the dollar acting as the counter currency. ¥1,000 sounds a lot more exciting than $10. 残念なことに, we must bring that number back into dollars for it to make any sense.

¥1,000 * $1/¥76.91 = $13.00 ピップあたり

Calculate pip values when USD isn’t in the forex pair

We can calculate the pip value in dollars, even when neither the base nor the counter currencies include US dollars. Let’s choose a cross pair to make the example a little more real.

NZDCAD trades at 0.77405. NZD $100,000 = CAD $77,405. When the price changes 1 pip to CAD $77,415, the trader earns $CAD 10. Now we have the same issue that we did when trading JPY. CAD $10 isn’t very useful to an American trader. 今のところ, we have to go grab the price of CAD in USD in order to determine the pip value.

USDCAD trades at 1.03612. $CAD 10 * $1 / CAD 1.03612 = $9.65. The US dollar value of one pip on NZDCAD is $9.65.

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

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.

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

単純な市場作り

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

私は非常に小さいがあります。 ライブ口座 MB の取引に使用します。 市場を作る. 同じレベルのリスクでリターンを増幅する市場を作ることに単純な理論を持っていた: のみ提供します。 (販売) 私は今後数ヶ月にわたって低下し期待の通貨に. 返還する必要があります購入を上回るし、指値注文からコミッションを得るために戻り値を保持します。.

私のアカウントは現在まで 32% 以上 34 日, これは、この特定の EA を駆け. 貿易のサイズを使用します。 9:1 2 つの通貨ペアのレバレッジ, EURUSD は、USDJPY. リターンの圧倒的なバルクの EURUSD アカウント. それは、高い需要が、高いボラティリティのためだと思う. USDJPY は周りに十分な非常に価値があるようにジャンプしていないよう.

戦略は万能ではありません。; あなたはまだ、市場の長期的方向性を正確に予測する必要があります。. 銀行危機に溶解するユーロを期待してください。, ユーロの今後の方向性を推測する私にとっては比較的簡単になります。 – ダウン. 広範な方向を正しく取得するしない場合, 戦略は明らかにお金を失うし、.

Mainting 低レバレッジはドローダウンの許容を確実にする重要です. どのように黄色と赤のラインはっきり広がって EURUSD 方向があいまいな残っている 8 月のほとんどのためのアカウント レポートに関するお知らせ. EURUSD は 9 月のマイナス面に強く壊れた, 実現口座資本は実現バランスからますます小さく発散を持って歩く始まります.

私は 8 月に EURUSD の EA を走り始めた 9, 2011 で 1.4386, 毎日の取引範囲の真ん中にあった. アカウント ステートメントを通過するよう, EA が時折交換実行を向上させることに注意してください。. 理論的には, 価格は下がる、, EA は低価格で継続的に売るべき. 何が起こるか, しかし, トレーダーは、常に私の注文の反対側に影響を取らないのは. 入札価格から設定された距離を維持します。, 市場を歩いて私の注文が可能します。. 執行価格が向上普及に設定された距離を維持し、リフィルを短い順.

通貨の現在の価格であると言う 100-102 (業界の慣例として引用された広がりを読むことです。 “100 102 で”). 100 入札単価を表すと 102 質問を表します. 減少するペアを予想される場合, 私は指値注文を質問として投稿のみを販売する戦略を作る市場を実行します。. まず、販売価格が 100-102. つまり、短いにします。 102 – 誰かが私の販売を購入するには, と、 “価格係” 私にヒットします。, 、 “価格メーカー”, で 102. 購入してすぐに終了しようと. 現在の入札価格で指値買い注文を投稿することを必要とします。, あります。 100.

誰もが購入を決定する場合 100 する価格の下落 101-100, 私、ドロップの言い値で、私の指値注文を歩く. 変更された注文は、現在のスプレッド 101-99. 誰かが今の私の貿易の反対側を取ると仮定すると 99, 私を作る 3 ピップ (102-99 = 3).

今順序を補充するための時間です。. 現在のスプレッドは、します。 99-101. 私は投稿に制限販売注文 101, 誰もがしたいようです。. 入札が増加するには 100. 私は移動する広がりの距離を維持するために私の販売の制限, 広がりを元に変更します。 100-102. 私の指値注文 “を歩いてください。” 私の元の価格に, 私が潜在的に同じをキャッチできるように 2 回移動.

別の結果, この時間は、負の 1 つ, 取引が急激な下降中にすべての価格で設定を取得しません。. 注文は価格歩くだけ, 市場に迅速に移動すると、彼らはまた歩いてください。. 移動の下部にある取引で取引を動けなく時折長い期間があります。. 普及であったときに私の最初の取引が終了していることを言う 99-101 市場が急激に落ちた 90-92. それと私の指値注文を歩くとき, 私を欠場する原因と 7 移動のピップ.

これは完全に悪いではないです。. 時々 私は 1 日以上開いている注文のこれらの種類とはまり, 支持と抵抗の強い徴候を与える. Myfxbook の素晴らしい機能の 1 つは右上隅でカスタム解析をつけることができます。. マイトレード開催のためレポートを実行する場合よりも 1 8 月 1 日 9, 2011, グラフにこれらの実行された価格を比較します。, どれだけうまく彼らは伝統的な支持と抵抗の概念と並ぶに気づくでしょう. キー価格水準に関する追加情報を得るようなものは、小さい順序で満杯. 私は、将来的に終了私小さい市場で注文を失うことが私の停止としてそのキー レベルで逆方向に大量の注文を開く検討するかもしれない.

私は EURUSD リターンの購入と比較しての迅速な分析を行なったし、8 月から戻り値を保持します。 9. 私は売却し、開催から 1 マイクロロット場合 1.4386 現在の価格に 1.3669, 利益をあるだろう $71.70. 代わりに, 役にたった $94.10 私の注文価格に沿って歩くため. さらに, 私はそれ以上に支払われる MB の取引 $28 価格をお客様に提供しているため、手数料は. エキストラを獲得しました。 70% 元の順序にこだわっての代わりに市場を作るだけで帰国オフ. それは有望なスタートをオフ私いるようです。!

1 つの警告は、EURUSD は私に対して移動するとき、私は私の位置のサイズを増加 350 ピップ. 取引の範囲の上部だったと思った. 注文を作って二重大きさで分類された市場を置き換えることを意図して真ん中に大きな損失を取った. 私はまだ私の位置のサイズの変化から来る特大のパフォーマンスへの影響の量をいじめているいません。.

以下の下でファイルさ: 外国為替市場のしくみ?, 戦略の取引のアイデア

自動化された取引の落とし穴

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

取引の心理学でしばしば焦点を本取引します。 彼らは、信頼の重要性について話しています。 彼らの話を知ることと、すべての貿易の背後にある理由を文書化します。 最も重要なこと, 彼らは損失の予期しない文字列を処理する方法について話す.

私はしばしばその最後の問題を治療する方法として自動化推進の記事を読む, 感情的な取引。 それは半分真実です。 取引で感情は単に離れて行くので、メタト レーダーを取引の場所します。 あります。, 結局その程度です, 所有・運営するコンピューター人間。 彼は完全に無表情な機械との干渉の対応, にもかかわらず、逆にアドバイス.

それができるし、できないことの現実的な評価でオートメーションの問題に取り組むことが重要です。 それは、すべての取引の問題に万能ではありません。 ATM の機械に突然アカウントになりますソフトウェアの魔法ピースにつまずくことがないです。 裁量トレーダーとしてあなたを苦しめる同じ問題の多くは自動化されたトレーダーとしてペストにいきます。 非常に感情的な取引パフォーマンスに苦しむ場合, それらが解決されるまで、同じ問題が解決するはず.

EAs と戦略は、工場やオフィスに固体の自動化されたシステムをもたらす同じ利点をもたらします。 基になるビジネス モデルがゴミの場合, オートメーションは、良いものに悪いビジネスをりません。 堅実なビジネスが存在します。, 体系的なアプローチは、人間が望む合わせて壮大な効率を達成できます。.

エキスパートアドバイザーは、バックテスト機能を提供しています。 残念なことに初心者のため, メタト レーダーにする機能も提供しています 最適化.  ほとんどが自分の最大の過ちを犯すところです。.

ことが可能であると仮定する完全に現実的ではないです。 プログラム専門家アドバイザー, コンピューター処理し、実行可能な戦略と徒歩を期待最大最適化試験を通じて設定を実行します。 私はしばしば壮大な持分曲線を示す最初の時間クライアントから歓喜のメールを受け取る, 信じられないほどの優勝率と一見必勝プラン.

私は考えることができる最高のアナロジーは、ショーン ショーンの家族男対大学生です。 私が大学にいたとき, 目を覚ますが可能でした。 10 だし、私はそれのように感じたときクラスに出席します。 それは学術の最適なアプローチをされていない可能性があります。, それは確かに最適なライフ スタイルが.

大人として, 私の最適なライフ スタイルは劇的に変化します。 私は今レジャー時間は重要なことを家族とプロの責任を両立させる必要があります。 最適なソリューションは、時間の経過は一定ではないです。.  それは常にシフトしているし、常に.

市場は異なっています。. 私の外国為替のキャリアの早い段階で 2006, 市場は、レコード低ボラティリティに落ちた。 日々, 結果のほとんど何も起こらなかった。 私、雇用者の異常に大きな割合’ クライアントは、お金を作っていた。 最も一般的な取引を間違えるのでそう – 彼らは勝者になってまで敗者を握り – 常に働いて. 1 つはほとんどの市場が戻ってくることをファームに賭けることができます。.

取引されている誰か 2008, そのため今日でも問題や, 最適なソリューションが今日の最適なソリューションがない証言できます。 バックテストは確かに専門家アドバイザーに大量の明快さと理解を追加中, それは全体的な話を言わない。 人間の勘と経験が切り離せません。 専門家アドバイザーの仕組みを知る, トレーダーが成功するためにそれを期待する理由およびそれを支持する市場条件の種類は、すべてプロセスに不可欠.

以下の下でファイルさ: 外国為替市場のしくみ?, 戦略の取引のアイデア タグが付いて: mistakes, pitfalls

  • « Previous Page
  • 1
  • …
  • 12
  • 13
  • 14
メールで無料の取引戦略

トレンド分析

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

アーカイブ

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

翻訳


無料の取引戦略

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

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