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

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

One line of code makes all the difference

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

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

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

Live demo trading of Pilum

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

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

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

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

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

The accurate backtest of Pilum

The accurate backtest of Pilum

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

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

What I dislike

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

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

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

What I love

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

The accurate backtest of Pilum

The accurate backtest of Pilum

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

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

Detecting hidden risk

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

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

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

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

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

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

worst and best days

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

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

It gets even better

low correlation

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

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

The blue bars are the equity curve of Setting 1.

The red bars are for Setting 2.

Do you think these are tightly or loosely correlated?

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

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

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

The correlation between the 2 strategies is only 57%.

Combine multiple settings into 1 portfolio

Combined settings Pilum equity curve

This is a much nicer equity curve!

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

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

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

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

Pilum most probable daily profit and loss

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

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

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

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

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

Giant winners are far more likely than comparable losses.

The Plan

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

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

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

I’ll write an update on Dominari shortly.

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

Beware of a Trading Strategy That Does Too Well

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

Can a trading strategy be doing too well? That sounds counter-intuitive, certainly. Like suggesting that someone can be too rich or too successful. You might be thinking there’s no such thing. But when it comes to managing your trading strategy, one that is performing too well is a warning sign. That’s because, かなり頻繁に, an over-achieving trading strategy can turn into a honey trap.

In this article we will focus on a couple of cases studies where a “too good” strategy is something to watch out for. うまくいけば、, that’s a lesson one can learn from now rather than, painfully, at some later date.

A Trading Strategy with a High Win Ratio

The first case study is one of a strategy of mid- to short-term timeframes. In this case study, the frequency of executed trades is higher than 100 a month.

通常, a solid strategy has an average 勝率します。 の 45% 宛先 60%. That ratio might sometimes be lower if the risk reward ratio is very strong. But higher than that is almost always is unsuitable.

In the strategy below we can see that the average win ratio per month runs from as low as 44 to as high as 64. Sometimes it is on the rise in the higher range and sometimes in the lower range. Regardless which, eventually it will all revolve around the average.

たとえば, in the month of January 2014, the win ratio was 52%. That means that for every 100 trades executed, 52 were profitable.

But in the second part(赤), we can see things start to go a bit too well. The win ratio jumped to above 80% and stayed above that level for 3 ヶ月. 当然のことながら, で 80%, that was far beyond the norm. What would come next was inevitable.

後 3 months of more than 80% of profitable trades, the win ratio fell to roughly 20% for the following 3 ヶ月. Because a long-term win ratio always has a long-term expectancy of maximal 50-60%. That means that a prolonged period of a high win ratio can be followed by a prolonged period of a very low win ratio.

Trading Strategy

Why is it Risky?

最初, if you had 3 months of roughly 20% win ratio means you lost 80% of the trades. That means that, assuming you trade 100 times a month, you lost 80 取引. That’s a pretty hard hit. And if you risk $50 in every trade you lost $6,000 on aggregate (80 losing, 20 profitable) 後 3 ヶ月. That is a big blow.

The second reason it is risky is more psychological but still very common. That is that many traders fail to realize that an overly high win ratio is very temporary in nature. Having failed to see that, what do they do? They raise their leverage. And when the sweet turns to bitter and they have only a 20% win ratio for 3 ヶ月, then what? All they’re left with is an empty account.

What should you do? This is rather simple; you reduce the risk you take per trade by lowering your leverage. It’s true you will gain less but you will also avoid the pitfall that comes after. もちろんです, if your leverage is already low and your account can sustain a prolonged period of a low win ratio than let statistics reign. But be prepared, psychologically, for choppy times.

Trading Strategy Profits that are Too Much Too Fast

The second case study is common in trading strategies that are low in frequency. The durations may range from a few days to even a few months. Let’s say you enter into a buy trade after your trading strategy indicated a bullish trend. You set the limit at 1,290. 平均, you expect the limit to be reached within 3 宛先 4 日. But suddenly the trade advances in a fraction of the time and reaches relatively close to your trade.

Why is it Risky?

Because many times traders insist on waiting for their limit to be hit so they leave the trade open. But then the pair moves into overbought territory and before you know it the trend has reversed. You either close the position with a much smaller gain or, even worse, you lose the trade. Because you trade at a low frequency, this one outcome can be quite painful. You lost precious time when your position was open and missed the potential profit that you could have made.

What should you do? The solution here is rather simple, 同様に. You could use a trailing stop loss which is the most obvious tool to avert such cases.

別の方法として, you could use oscillators to identify a potentially hazardous situation. Add a component to your trading strategy to alert you if your pair reaches an overbought (or oversold) レベル. Make it a practice to exit the trade even if the target was not reached.

Trading Strategy

以下の下でファイルさ: あなたの概念を歴史的にテストします。 タグが付いて: リスク, win loss ratio

Spotting the next FX Swing

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

When trading in FX, scouting for just the right currency pair can be time consuming. もちろんです, you’re looking for the pair on the verge of producing the next lucrative trade. Many times it’s hard to decide which pair is the one with the most momentum.

And even if you do invest all your time homing in on the “right” pair, you just might get it wrong. Getting wrong means you’ll ride on a trend that’s barely moving. 幸いにも, there are some rules of thumb to help guide you to those pairs that will generate the big swing you’re waiting for.

FX Risk On/Off

The first rule of thumb for FX pairs with big swings is to ensure that the two currencies belong to opposite groups. たとえば, one of the most popular divisions between FX pairs is between risk on and risk off currencies. Risk off currencies tend to rise when investors are “jittery;” prominent members of that group are the USD and JPY. 反対に, risk on currencies tend to rise when investors’ appetite for risk has been whetted. Risk on currencies include the Aussie, the Kiwi, the Euro and most exotic pairs.

When you pick an FX pair which has currencies from opposing groups it has a greater chance of generating a big swing. That’s because you tend to get a dual movement. It’s not one currency which rises against the other it’s that one is rising while the other is falling. That divergence makes the pair’s fluctuation larger and therefore the potential could likewise be larger.

Let me give you an example as to how to put this particular rule of thumb to good use. Back in May 2014, when fears over the Eurozone surged, it was a classic risk on trade scenario. Selling the EUR/USD was one of the most lucrative FX trends since the Dollar was gaining and the Euro was losing. That created a much bigger fluctuation for the pair than it did for, 言う, the EUR/GBP or EUR/AUD. In those cases, both sides of the equation had currencies from the same groups that were losing value.

This rule of thumb is rather easy to spot. Is Russia in trouble? Good! The Russian Ruble is a classic risk on and it will be hit hard while the Dollar is most likely to gain. Thus your weapon of choice should be USD/RUB long which would gain the most.

The Broken Sideways

Another rule of thumb you can use is an FX pair with a broken range. One of the most noticeable things about an FX pair that trades sideways is that it stretches like a coil. The longer the pair trades sideways the stronger the burst of momentum will be upon a break. だから, if you spot an FX pair that’s been on a sideways trend for long, keep an eye on it. When the break does eventually occur the swing could be lucrative.

Mean Reversion

Our last rule of thumb is basically to look for an FX pair that’s hit its maximal range. We’re talking either a triple top or a double bottom or some such other indicator. Any or all of those indicators could suggest that the latest trend has reached its climax. The reversal which comes in the aftermath usually is rather significant. There are numerous ways to identify a mean reversion, which we elaborated on in past 記事. The key here is that once you identify it, as with the other rules of thumb, it raises the chance of generating a bigger swing.

結論として

もちろんです, even following all of those rules of thumb can’t guarantee a gain. These rules, by their very nature, are meant to simplify things. And as we all know FX trading has many more layers, including risk which should always be taken into account. But there are many FX traders for whom these rules of thumb are especially valuable. たとえば, for those of you who find it a challenge to spot the right FX pair to focus on. Or for those who, often times, become frustrated by choosing the wrong FX pair to trade.

以下の下でファイルさ: 外国為替市場のしくみ? タグが付いて: リスク, スイングトレード

Have Your Algo Running like a Swiss Watch

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

Setting up a trading algo that works smoothly, like a well-oiled machine, is not a trivial endeavor. 沢山あります, many parameters that you have to take into account. It begins with the signals your algo is generating to the margins in your account, ボラティリティ, gains and, もちろんです, リスク. Certainly you’ve used our previous tips to build your algo and to draft your strategy. So how do you incorporate all those elements and optimize your algo for the greatest precision?

How do all the quants make their algos run smoothly like a Swiss watch? You have to treat your algo like a machine, built up with numerous mechanisms. Because of course, that’s what an algo really is. I like to call those mechanisms boxes. Now don’t despair if you think it all sounds a bit too complicated. By the time you reach this article’s conclusion you’ll have realized that it’s all quite simple and logical.

An Algo Made of Boxes

So what is the approach quants use that I like to call boxes? You divide your algo into separate mechanisms, or boxes, あなたがする場合. Each box will become a stand-alone mechanism that receives input data and generates an output. There will be one box that we can consider the brain; that box decides if it is a go/no go for the specific trade. The brain box gets all the inputs from all the other boxes.

Algo Boxes

Signal Box- The signal box scans prices and parameters, such as the moving average or any other condition you have written into it. 基本的には, these inputs are the rules of engagement you had early written for your algo. One simple rule could be, しましょう, 14 days moving average < 30 days moving average = signal to sell. 通常, this box will be running prices in several pairs.

他の言葉で, its input data and its output would normally be three parameters; an entry signal, a recommended stop loss and a limit. もちろんです, もう一度, these inputs are according to the parameters you have already defined.

Risk Box- The risk box, as its name implies, is the box in charge of risk monitoring. This one is a bit more complicated. The risk box gets input from several sources. It gets the risk, すなわち. stop loss required, from the signal box. さらに, the risk box constantly reads your available margin.

Its output is a go/no go on each trade that exists, based on the parameters you entered. たとえば, how much you want to risk in total or the minimal available margin to be left in the account.

Let’s say you have a free margin of 11% and you set up a minimal margin of 10% in the risk box. The signal box will send output of an upcoming trade.

The risk box can calculate that the executed trade would take 2% from your remaining margin. You started with 11% so that would leave your free margin at 9%. したがって, the output from your risk box will be a no go for this trade.

If you had had 13% free margin rather than the 11%, the output would be a go. もちろんです, there are many more options to program into this box but this is the simplest one.

Volatility Box- The volatility box might be the most complicated to program. しかし, volatility charting is something we covered fairly thoroughly in these articles – ボラティリティ & あなたの貿易, ビクスの世界, ビクスの代替を使用. The box’s task is to chart market volatility and provide an output if volatility is about to change dramatically. A major change to volatility could, もちろんです, warrant a change in your strategy.

Execution Box (aka the Brain Box)- Easily can be considered the most important box of all. This box is in charge of making the finally decision. It gets input from all the other boxes and decides if the trade should be opened or not. It also decides if a strategy needs to be changed.

たとえば, if the volatility box signals an upcoming surge in volatility the execution box may decide to close some trades. Or it could instruct the signal box to change into a secondary signal model suited to high volatility. There are many other ideas that you can program into it.

Algo

How Boxes Help You Win

All of those boxes can help you make your algo run more smoothly and efficiently. どのように? Quite simply because it lets you optimize your algo to a much higher level. It provides you with flexibility to easily adjust each mechanism. もっと重要なこと, it lets you monitor the inputs and outputs of each box and assess which needs fixing.

Algo Box: The Bottom-line

もちろんです, the partitioning into various boxes is not a new algo concept. It’s also not rigid; there’s no need to do it exactly as I did. If you’re intrigued by the Algo mechanism box concept and want to delve into it a bit farther you’re in luck. I highly recommend the book Inside the Black Box by Rishi K. Narang. I’ve found that it sheds a great deal of light on what some might construe as a complicated strategy.

And for those of you that are short of time? You can use this as a basic guide on how to make your algo run smoothly, without reinventing the wheel.

以下の下でファイルさ: 戦略の取引のアイデア タグが付いて: アルゴリズム取引, 実行, リスク, ビクス, volatilty

取引時間の次元

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

取引のブロゴスフィアはあなたのトレードのタイミングの重要性についての記事. 確かに, 重要です。; 右の傾向を識別します。, 近くに開いたりするときに知っている - 貿易へのすべての積分. しかし、ここでのものです, 別の次元とのタイミングがあります半分だけの話です. あなたが参照してください。, 現実の世界では, それはあなたの入口と出口のタイミングだけでなく、間の時間についてだけではありません. 実際, あなたの貿易の持続時間は、あなたが思っているよりも多くの重要. この記事で私は両方の短期および長期戦略に影響を与えることができ、その時間内の様々な側面を説明します.

期間と返品

のは、理論的な取引状況を考えてみましょう, 2つの戦略を見て. 最初は獲得に設計された高周波一つです 1 pip, すべての貿易は単一の第2を取ると. 我々は、この戦略Aと呼ぶことにします. 第2の戦略, 戦略B, の利益を生成するように設計され 10 ピップごと 10 秒. だから、これは良い戦略であります? 紙の上, 両方が生成する必要があります 60 したがって、毎分ピップ等しくリターン. しかし、現実の世界では? まあ, それは全く別の話です.

実生活では, あなたは、2つの戦略の結果を集計するとき, あなたは大きな驚きのためにあることになるだろう. 戦略Aの下にはの利益を持っていました 50 後ピップ 1 分. しかし、戦略Bの下で、あなたはの利益を持っていました 66 ピップ. 今のところ あなたが優れている戦略だと思います? もちろんです, あなたは、Bを選ぶと思います. 興味深いことに, 1 トレード当たり, 各戦略が利益を得ました まさに 予定通り. 戦略Aが利益を得ました 1 ピップと戦略Bが利益を得ました 10 取引あたりのピップ.

だから何が違いを作りました? 時間. 次の2つのチャートに下記見ることができるように, 戦略A, 実行された場合, 当初の予想よりも平均的に少し時間がかかりました. 取引の継続時間の測定から、周りのクラスタ化 1.2 取引あたりの秒数ではなく、 1 2 番目. 戦略Bでは, 取引あたりの所要時間の測定, 平均, です 9 秒. 実行されると、, 戦略Bの取引が当初の予想よりも時間がかかりました. 最終的に, 一日の終わりに, 戦略Bが返されます 66 ピップまたは 32% 戦略Aの以上 50 ピップ. それは戦略Bは優れた選択肢であることを意味します.

今のところ, ビット近いまだこれを見てみましょう. 私たちは、執行した取引のそれぞれの時間を取り、標準偏差を測定するつもりです (Excelで簡単なエクササイズ). あなたは戦略Aであることを発見するだろう, 平均は次のようになりますしながら、 1 毎秒貿易, 標準偏差が高い. それは、このような戦略はあまり効率的であるサイクルが等しくない示唆しています. 反対に, 戦略Bは低い標準偏差を持っています, ほとんどの取引が近接している意味 10 秒. したがって, それは、より予測可能なリターンを有し、かつ, それゆえ, より効果的な戦略. あなたは戦略を測定する場合, リターンとリスクを超えてそれ​​を理解, 各取引が問題にかかる時間. そして、実際には, それは非常に多くの問題ではでき.

Time in Trading

Time in trading

所要時間とスイングトレード

だから今、私たちは時間のニュアンスが各戦略の最終的なリターンに影響を与えることができる方法を理解します. しかし、それは長い期間の取引に来るとき (すなわち. 数週間または数ヶ月) 他の要素が依然として存在します. この場合, それは貿易が正の時間となっているされています.

それでは、他の理論的なシナリオを見てみましょう. 今度こそです, 我々は戦略CとDを持っています, それぞれ2週間の同一の持続時間を有します. 同様に, 両方の期間の同じ標準偏差とほぼ同じリターンを持っています. しかし、一つの戦略は、他よりもリスクの高いです. 質問があります? 答えは、最短の時間のために利益を上げてきた戦略であります. 次の2つの取引を開いたと言います; 戦略Cがために有益でした 12 の 14 それはその目標に到達するために要した日数. 戦略Dは最初陰性でした 12 最後に急なリターンを生成する前に、日 2. 戦略D, その後、, あなたが長い時間のために損失を危険にさらしているので、明らかに、より危険です. これはまた、ことを示唆しています, たぶん, 戦略Dのエントリ信号は非常によくキャリブレーションではありません. 戦略Cは明らかに、より効果的でリスクが少ないです, 平均.

Time in Trading

 

Time in Trading

ボトムライン

もちろんです, 取引戦略の時間有効性を測定することに、より多くの側面があります. ちょうど時間を超えて検討する他の寸法もあります. しかし、ここでの教訓は明らかです. あなたがあなた自身の取引戦略を測定次回はその時はちょうどタイミングではありません覚えています.

以下の下でファイルさ: あなたの概念を歴史的にテストします。 タグが付いて: dimension, 期間, エクセル, リスク, 標準偏差, 時間

ヘッジファンドとして自分で測定します。

6 月 29, 2015 によって リオル Alkalay 2 コメント

平均的なトレーダーに, ヘッジファンドに自分の比較の考え方は、少し不条理聞こえるかもしれませんが. ヘッジファンドは何します。, which manages billions upon billions, have in common with your account? Let’s face facts; there are very few of us who have that kind of cash in our trading accounts. Years ago, there was an adage my father taught me, which I believe to this day. それです; “if you can’t measure it, it’s not working.” In business, put another way, if you can’t measure it then it’s probably not worth doing. And really, trading is just like any other business. So if you can’t measure how well your trading strategy is doing, then it’s not working.

Asking the Tough Questions

I’ve been on the receiving end of tons of “advice” on trading and investment – some good, some not so good. My father’s sage advice not only “fits the case” but comes from real world experience. A “measure” forces you to move into the adult world, where you need to ask (and accept the answer to) the tough questions. Do I have a good, sound trading strategy? Am I sticking to the goals I’ve set? Am I taking on too much risk? These are tough questions, and only effective measurements can provide you with the answers.

Why Hedge Funds?

だから, why would you measure your trading performance like a hedge fund and not, 例えば, an investment portfolio? 最初, the hedge fund space is the only segment in investment that is the closest to trading. And that is regardless of the hedge fund’s “style.” Furthermore, hedge funds are not limited to a specific strategy. They are usually able to perform and switch positions quickly, just as traders do. 実際, many hedge funds are closer, strategy-wise, to a trader than they are to anything else. 結果として, many of the methodologies developed to measure hedge funds are very applicable to trading.

Distribution of Return

The first measure of your strategy should come from distribution of returns. That may sound complicated but it’s really not. Let’s say your strategy is to gain, 平均, 100 取引あたりのピップ (and no, we’re not holding you to that). If you export your data to a spreadsheet program and measure each, the distribution of your trading profits should stack up fairly close to 100 ピップ. In order to illustrate we have two examples of profit distribution. In the one on the left you can see Trader A that failed to deliver the target (a gain 100 取引あたりのピップ) with widely scattered results. On the right, we can see the trader B has been able to generally earn in most trades very close to 100 ピップ. That’s an indication that the strategy that was set has indeed worked pretty much as planned.

Hedge Fund Distribution

シャープレシオ

The second tool, the Sharpe ratio, is among the most popular ratios around and essentially measures the return per unit of risk. The calculation may sound complicated, but really it’s rather straightforward. It is the average return after deducting the risk free rate divided by the standard deviation of the returns. 今のところ, what does risk free rate mean? When it comes to investments it means the benchmark rate. When it comes to trading, it means the rate you pay on your margin (すなわち. your broker’s fee, which could be as high as 7% p.a.).

ここのことだが、; if you trade primarily in the short term, the Sharpe ratio is less relevant. さらに, since we are talking about many trades per week or month, it would complicate your analysis and would not necessarily yield better results. If you want to compare your trading performance and you trade in the short term, you don’t need to benchmark yourself to interest rates.

So what is a good Sharpe ratio? まあ, the text books say a Sharpe ratio 上記 1 is generally okay while below 1 is considered not that great. From my own experience, しかし, a Sharpe ratio at 0.8 or above is absolutely fine. たとえば, if we take the data from the two sample traders above, Trader A would have a -0.4 Sharpe ratio while Trader B would have 1.8.

ボトムライン

So what’s the bottom line? What can we learn from the two measurements? Two big things. 最初; if your strategy is performing, say you planned to gain 100 pips on average and that’s what your distribution shows, then you’re on track. And the Sharpe ratio? If your Sharpe is low your returns are more a reflection of market volatility than your trading strategy. 逆に, the opposite is also true. もちろんです, there are many more indicators that hedge funds use, but these two will give you the answers to the tough questions every trader needs to ask.

 

以下の下でファイルさ: 戦略の取引のアイデア タグが付いて: hedge fund, 正規分布, リスク, シャープレシオ

最大レバレッジを使用して利益を成長し、リスクを軽減

1 月 12, 2015 によって エディ ・花 9 コメント

The gains can accumulate quickly when a prop trader is using a strategy based on maximum leverage with limited account size. In order to preserve and build those gains, it’s important to remove them from the trading account according to a good plan.

As described in previous articles in this series, the high-leverage, low-balance strategies used by leading prop traders can be applied to multiple trading accounts using different systems, with each account capitalized by not more than a couple thousand dollars.

The amount in the account typically ranges between $1,000 to several thousand dollars. その方法, there’s no psychological obstacle to using the max leverage on each trade.

Reduce the risks from drawdowns

When you have a winning system, profits pile up. It’s tempting to “let it ride” by using the same system to trade ever-bigger position sizes in the growing account.

しかし, when the entire capital is available in the trading account, it means that the capital is exposed to the inevitable system “blow up,” which typically causes a steep drawdown. Even if the trader escapes financial catastrophe, he or she may become so risk-averse afterward as to become indecisive and ineffective.

Pull money out each month

The smart way to avoid excessive drawdowns due to trading system “blow ups” is to pull money out of the account at the end of each successful month. その方法, when a major drawdown occurs, it won’t take all your money, just the couple thousand dollars that you can afford to lose.

Successful prop traders like Shaun sweep the profits out of each winning trading account monthly and move them into a non-trading account, where they remain safe. だから, each month the trading accounts open with their individual capitalization set at a given amount.

Pull out at least enough to cover one “blow up”

Once you’ve launched your forex system, you’ll want to think about earmarking enough money to cover at least one trading system failure. After you’ve secured that amount to be used for a recapitalization of your trading account, every subsequent gain is “free money,” at least in a psychological sense.

The first milestone is to pull enough money out of the trading account to cover at least one catastrophe. If you’ve been enjoying mostly winning months, next you should allocate 50% of your profits for high-risk systems.

You can’t lose what’s not at risk

覚えておいてください: When a prop trader is using maximum leverage, the only money that’s safe is the money already pulled out of the trading account. Profits should be pulled from each winning trading account, each month.

When a prop trader wins consistently using high leverage with a limited-size account, the gains from relatively small individual trades may compound quickly. Profits gathered from the overflowing small trading accounts can compound into large sums, and it’s important to manage those profits effectively.

If you’d like to learn more about using maximum leverage to pull profits each month, just contact Shaun.

以下の下でファイルさ: 外国為替市場のしくみ?, お金を失うことを停止します。, 未分類, 現在の市場で起きていること? タグが付いて: blow up, ドローダウン, レバレッジ, 取引を支える, リスク

Deeper Analysis For Comparing Trading Systems

8 月 22, 2013 によって アンドリュー ・ セルビー Leave a Comment

When first introduced to systems trading, a lack of knowledge and experience leaves many traders with limited options on which system to trade. As they expand their knowledge, these traders can soon become overwhelmed by the number of systems that are out there. Deciding which system is the best fit for a trader can require a tremendous amount of analysis, and many traders don’t consider all of the proper variables when making these decisions.

Many novice traders assume that the system with highest overall return is the best system. This is almost never the case, しかし. 何度も, incredibly high returns are the product of a level of risk that most retail traders are not comfortable with. No amount of money is worth losing sleep over. The same case can be made for a system that either trades too often for the trader to keep up with, or not often enough to make any money.

When reviewing different trading systems, we want to consider their returns with respect to profitability, ボラティリティ, and risk. We also need to consider the frequency of their trading signals to make sure that all of the system’s components will mesh well with our personality.

Compare trading systems

Criteria for comparing trading systems

Profitability

The most commonly used profitability metric is Compounded Annual Growth Rate (CAGR). This takes the long term return of your system and averages it out as if it occurred in a straight line. 明らかに, the fatal flaw here is that no system is capable of producing returns on a perfectly steady basis. しかし, CAGR does give us a convenient way to quickly compare systems. You will certainly want to dive deeper before investing real money!

Another interesting profitability metric is the number of winning trades, or the Win Ratio. This is simply a percent that measures how many of a system’s trades are winners versus how many are losers. The interesting thing about Win Ratio is that systems can be profitable overall with incredibly low Win Ratios. They can also be unprofitable despite very high Win Ratios.

For that reason, Win Ratio is very closely tied to Profit Ratio. This is the average return of a winning trade divided by the average return of a losing trade. Breaking down these two components is a good way to find out how a system is achieving its CAGR.

Systems like the 3 Day HIgh/Low Mean Reversion System can be profitable despite a low Profit Ratio of 0.64 because almost 74% of its trades are winners. 反対側に, a system like the スパイ 10/100 Long Only System is profitable despite only winning on 41% of its trades because its winners are more than four times the size of its losers.

ボラティリティ

While profitability is the end goal of just about every trading system, it may come at a cost. A prudent trader will identify what that cost is and then make an educated decision regarding whether the value is worth it.

One of those costs is volatility. Some systems, like the Moving Average Crossover with RSI System または、 50 EMA の単位系 provide an excellent combination of Win and Profit Ratios at the cost of severe volatility. These systems are known to experience drawdowns of 40-50%. At that steep of a drawdown, even the most seasoned systematic trader will begin to question his system and whether markets have fundamentally changed.

Even systems with less severe drawdowns can cause traders to lose sleep. As a general rule, you should estimate the maximum drawdown you believe you can tolerate, and then cut that number in half.

リスク

Another cost of high returns can be excessive risk. Most trading systems provide the option of dialing up or down returns based on adjusting risk through leverage. Taking on too much risk in order to chase higher profits has been the nail in the coffin of many formerly successful traders.

The amount of risk you expose yourself to is one of the few things that you can actually control when it comes to trading. It is essential to your success that you constantly monitor your exposure and always keep your risk of ruin at an acceptable level.

Frequency

It is also important to consider the frequency of the signals generated by your system. This is a two-fold issue. 最初, you have to make sure that your backtesting results contain a significant sample size. If you backtest over a ten year period and your system only generates three signals, the odds are pretty good that your results will be skewed.

You also want to make sure that the system trades at a frequency that matches your lifestyle. A profitable system with low volatility and risk won’t help you if it never trades. 反対に, the same system will be equally as useless if it forces you to monitor trades 24 一日あたりの時間.

The bottom line is that there are no right answers, and there are hundreds of different approaches to systems trading. The key is to find a system that works for you and stick to it.

以下の下でファイルさ: 戦略の取引のアイデア タグが付いて: 周波数, profitability, リスク, system trading metrics, ボラティリティ

Profit solely through money management

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

Most traders view the idea of profit protection as a concept that applies to an individual trade. Whenever a trade floats a large profit, they protect the unrealized profit by moving the stop loss closer to the market.

I like to view trading more as a collection of outcomes rather than the result of any particular transaction. This article looks out how to protect realized profits after they accrue in the account rather than protecting the unrealized profit from one trade.

The money management project started off by asking the question, “is it possible to make money with a perfectly random strategy solely using money management.” The strategy is not quite to the point where it will work in the real world. それにもかかわらず, this new method shows substantial progress toward that goal.

I operate on the assumption that a random strategy is one with 50% profitability and an R multiple of 1.0; we earn a dollar for every dollar we risk. The net outcome over hundreds of trials should average out to the starting balance. My earlier videos and blog on money management modeling verifies that this is indeed the case.

Random outcomes tend to fluctuate above and below the average value. At any given time, half of all possible outcomes should be above average. The opposite holds true for outcomes below the average. The idea here is to get away from standard notions of money management like 固定小数マネーマネジメント. The risk amount should follow not only the account balance, but also factor in the degree of profit accrued.

The fluctuations above the starting balance are totally random. If a trader is lucky enough to obtain a profitable, realized balance, then it makes sense to decrease the risk. 明らかに, decreasing the risk limits the potential profits.

Consider an example. We start with a $100,000 account balance risking 1% of the original balance. Note that all future trades base the risk on the original balance and ない the accrued profit and loss.

When a random winner rolls in, it brings the account balance to $101,000. The odds of winning on the next flip are still 50-50. Rather than risking giving it all back, I found that you increase your chances of a final, meaningful profit if you decrease the original risk as profits accrue.

Reducing the original risk by 1% for every $1,000 of profit changes the dollar risk from $1,000 宛先 $990. This may not seem like very much. That’s because it is not. The goal is to suck tiny little advantages as they come. A loss occurs half of the time in this situation. When it does, the account balance still shows a $10 realized profit.

If the second trade (we are now at $101,000) is a winner, the account balance increases to $101,990. A loser following the win drops it down to $100,010. The process is slow, but we’re also making money without a trading strategy. We’re just betting.

重要なこと, a change to the risk amount as a balance loses money completely destroys the money management strategy. It is critical that the risk amount not vary in any way whatsoever.

Real examples of how the median return increases with trades placed

Money Management after 200 Trades

The median outcome after 200 trades is 0.6%

Money management after 500 trades

The median outcome after 500 trades is 1.5%

Money management after 1,000 trades

The result after 1,000 trades is a 2.4% 戻り値

Money management after 10,000 trades

The result after 10,000 trades is a 19.7% 戻り値

以下の下でファイルさ: お金を失うことを停止します。, 戦略の取引のアイデア タグが付いて: 外国為替, お金の管理, ポジションサイジング, 利益, realized, リスク, unrealized

取引のリスクを特大

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

A long standing client flew in to our office last August. He wanted to build a scalping system that would churn through as many trades as possible. I tried explaining that gauging risk from only 6 months of data is not enough time and that the markets can be far wilder than imagined.

The Swiss central bank intervened the very next day, sending the EUR/CHF up 1,400 ピップ 1.20. The USD/CHF climbed even more in terms of pips. It was a shocking, jaw dropping display of market insanity.

Many traders almost certainly got caught in the wave of destruction. Low leverage positions received almost unthinkable margin calls in the course of several hours. It seems insane to think that an institution would come in and buy 20 billion euros in the span of several hours. まだ, that’s exactly what happened.

Staring at historical data does not tell you anything about future risk. The only thing that historical data tells you is the past sense of normal. That may continue into the future for a time, but eventually, things change.

My personal opinion is that the best you can do is to characterize the personalities of different instruments. The GBP/JPY is notoriously wild due to its speculative nature. The UK and Japan have no real trade relations to speak of. The currency pair is something of a market accident. They are two liquid currencies that happen to be exchangeable, but very few people in normal business need to exchange them directly.

The Swiss franc, 一方、, is a bastion of conservatism. The currency was historically backed by physical gold. It used to be fully backed. Then it declined to a 40% backing. I don’t remember what the backing is today, but it’s a fraction of what it used to be.

Not incidentally, the conservative behavior of the franc changed in line with the reserves behind the paper. The franc gets more wild as the gold supply securing its value diminishes. Volatility grows increasingly wild with the passage of time.

I encourage traders to look at the rate of change for an instrument when they attempt any kind of profiling. Rather than saying that the CHF is quiet, I tend to say that it’s historically conservative with an increasing tendency to undergo wild episodes. It’s basically the 30,000 foot view. Rather than asking what it’s like today, we rephrase the question to ask what it’s likely to do tomorrow.

Watching the EUR/CHF explode before he had a chance to trade likely saved my client from blowing up. It was a learning experience, but most traders are not lucky enough to learn from the sidelines.

If you have any kind of hyperactive trading idea that depends on range bound markets, I would encourage you to stick it into the “save for later” bin. This summer and fall are ramping up to be quite a wild ride. If anything, now is probably a great time to bring out strategies that only do well when it looks Armageddon is near.

以下の下でファイルさ: お金を失うことを停止します。, 戦略の取引のアイデア タグが付いて: intervention, リスク, 皮むき, SNB, ボラティリティ

  • 1
  • 2
  • Next Page »
メールで無料の取引戦略

トレンド分析

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

アーカイブ

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

翻訳


無料の取引戦略

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

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