Algoritma dan Strategi Forex Mekanikal | OneStepRemoved

  • Articles
  • Sophisticated Web Sites
  • Dagangan automatik
  • Testimonial
  • Hubungi

Kerja 8 hari seminggu

Disember 6, 2016 oleh Shaun Overton 22 Komen

Reaching an all-time high in my equity curve means it’s time to buckle down and keep improving. My Dominari strategy has done very well over the past 7 months and especially this and last month.

Dominari Equity Curve December 6, 2016

Is the party going to continue?

I certainly expect so. Drawdowns are inevitable, but that’s part of trading. Short-term performance is exciting, but my ambitious goal is to turn my starting balance of €8,000 into €50,000 within the next 3 tahun. As of this writing, I’m at €9,323.

You’re probably wondering how a 16% profit leads me to extrapolate an annual return of nearly 100%. The answer is that I dramatically changed my leverage at the end of September… just in time for that ugly drawdown. If I was trading on my current leverage, the current live return would be around 40% (iaitu, right on track to hit my goal).

What really counts is what I’ve really done. Setakat ini, I’m up €1,323 with another €40,677 to go by December 6, 2019.

The research for Dominari is effectively finished. It’s been slightly more than a year since I began researching the strategy. Although minor variations of Dominari popped up or came from traders copying my signals, none of them improved the long term outcomes.

One version that improved the risk profile was to trade with limit orders. The original blog post mentioned limit orders, but the variation placed them considerably further from the current market than what I tried previously. I also lacked a system for choosing settings appropriate to every pair, which I’ve more than likely resolved. The problem is that I have a million things on my to-do list and only 8 jam sehari. You’ll see some of my top projects when you scroll down.

Pilum: The latest and greatest

Pilum is a strategy based on a statistical process that identifies momentum. One of the scary elements about most quantitative strategies is that most of them are mean-reverting. They buy when the price drops and sell when the price rises. The approach is favorable (iaitu, profitable) in the long run, but it takes some psychological fortitude to trade.

Pilum is a major advancement because now I’ll have a strategy that should profit exactly when Dominari is most vulnerable to a drawdown.

dominari trade outcome histogramThe new strategy uses had pesanan to enter the market. Sesuatu seperti 90% of these orders never execute. But when they do execute, I win 75% masa. Selain itu, my profile of winners to losers is very comfortable.

Most traders understand the ideas even if the statistical jargon is unfamiliar. Pilum’s biggest winner is larger than its biggest loss. The average winner is bigger than the average loser. Dan, it wins 77% masa.

Pilum trade outcome histogram

Setakat ini, I’ve done a sort of piecemeal backtest using R. When I finish the Quantilator (see below), I’ll redo the backtest in a fully fledged trading platform. Kemungkinan besar, I’ll use QuantConnect to test the strategy level approach.

Trading platforms drive me crazy! The biggest problem that I have as a trader is continuously reallocating capital across my portfolio. MetaTrader, NinjaTrader and the likes implicitly assume that I want to trade some percentage of my account balance on every trade. Either that, or that I trade fixed lots.

Trading that way is extremely inefficient. I’m trying to trade 40+ mata wang, so I need to be able to decide which ones need the money for trading and which ones don’t have signals. Kemudian, among the ones that do have signals, I need to dish out their allocations proportionately. The allocations aren’t the same for each instrument. If you know of any good FX platforms that meet this requirement, then let me know in the comments section.

Testing Pilum on its own is important. More important than the performance of Pilum is how that performance interacts with Dominari. That means taking the daily equity values of each currency. Does Dominari lose when Pilum wins and vice versa? Should I allocate capital 50-50 between the strategies or does one strategy deserve the lion’s share of the portfolio? Is one strategy so good that it should get all of the money?

The main concern with portfolio allocation is how it relates to leverage. Dominari historically make 96% annual returns, inclusive of trading costs. Tetapi, it’s also trading with leverage of roughly 19:1. It’s possible for markets to rip over stops and create significant losses.

USDCHF lost 40% of its value in one hour in January 2015. Say that the scenario was even more extreme and that nobody could place a trade during that time at any price. Yang 40% move is multiplied by the 19x leverage used. That’s a theoretical 800% kehilangan; more than the money in the account.

Everyone loves leverage because they think of profits. Leveraging losses is a lot less exciting.

Jadi, if you could earn 96% annual returns and only use 5:1 leverage, that is exponentially superior to earning 96% pada 19:1 leverage. I need to compare the returns of Pilum to Dominari per unit of risk. That allows me to do cool things like

  • Minimize the negative variance of the returns
  • Increase absolute return
  • Dynamically increase/decrease strategy allocations if I find patterns in their interactions

It’s a lower tech way of averaging strategies, like the litte guy’s version of what Numerai is doing… except that I have to create all of the strategies myself.

Quantilator

I spent the last few months sending surveys to segments of my subscribers asking how I can better serve you. Articles about indicators are overwhelmingly my most popular content. The trouble with that content is that I can’t complete the research fast enough to keep up.

The most valuable thing I’ve learned from the developing algorithms for the past 11 years is my process of deciding whether or not an indicator offers predictive value.

Moving Scale

Say that you’re interested in gaps: do gaps predict future returns? What I normally do is code a gap indicator in R, implement my analysis methodology and give a verdict. My methodology is kind of like a system for building systems. Using my approach usually takes an hour for every new idea that comes along.

An hour is pretty short. An hour is REALLY short compared to when I didn’t have a research methodology. I used to waste bulan on junk strategies.

With Quantilator, I’ll be able to analyze anything in under 5 minit. I’ll only have to follow 3 steps:

  1. Run a script in MT4 to export price data and indicator data
  2. Upload the exported data to Quantilator
  3. Analyze the results

This tool will be 100% percuma. I’m planning to go through the most popular indicators in MetaTrader to analyze whether or not they offer an edge. I’m building a library of small edges that can be combined into powerful strategies like Dominari and Pilum. Dan, in the spirit of open source, I plan to make that library available to you for free.

I’m writing this tool in Django, which is a Python framework for displaying web content. The initial version will do the analysis. I’m hoping to use this as an education tool. A bit of momentum can justify make it a fully fledged library with sample data, indicators and training videos and more.

Quantilator’s name comes from a key concept in my system analysis methodology; I break data into quantiles. These quantiles calculate average market returns for a given period of time. The quant in Quantilator refers to quantiles, but I really like the implied double entendre of making you a quant. Lagipun, that is what I’m doing for you!

Kemaskini: Yang Quantilator is now freely available at http://q.onestepremoved.com/

Filed Under: Peraturan, Petunjuk, Menguji konsep anda sejarah Tagged With: Backtest, MetaTrader, peruntukan portfolio, sistem portfolio, python, quant, QuantConnect, quantile

Analyze your Trading Algo with 3D Charts

Jun 28, 2016 oleh Lior Alkalay Tinggalkan komen

These days, any mention of the term 3D is associated with entertainment. But in fact, when it comes to charting, and more specifically to charting your trading algo, 3D charting is not only insightful but provides important practical advantages.

The most common chart to measure a trading algo is profit over time. That lets you know how much money the algo is making over a specific duration, usually from a few weeks to several months. As the chart below illustrates, it gives you a good idea how well your trading algo performs over time and it gives an indication of the periods when it was underperforming.

The thing is that, while profit over time are the two most important dimensions, they leave plenty of dimensions out—dimensions that can help you answer important questions. Such as why, during a specific period, was your trading algo under-performing? Or how much risk are you taking in a given time? Sering, the answers to such questions can be the difference between profit and loss, between success and failure of a strategy.

Trading Algo

Trading Algo in 3D

First things first. Before we start running 3D charts on our algo it’s important to go over a few practicalities and make the 3D chart work for you.

Assuming you’ve already exported the data of your algo Profit and Loss to Excel you’re likely to have two columns of data, Contohnya. Time and Profit. Adding a third column will allow you to run a 3D chart, whether it’s volatility, risk or whatever additional dimension you deem necessary.

Once you have your three columns you click to generate a chart—you must choose a type called 3D surface chart. As you will notice, almost always, the Time stamp will be the X-Axis, Profit the Y-Axis and our third parameter will be the Z-Axis.

Now comes the important part—making the chart comfortable to work for us.You must remember that our goal in using a 3D chart in the first place was to identify areas of either exceptional profits or exceptional losses to optimize our algo.

As can be seen in the charts below, Excel divides the Y axes into ranges and each range is colored. The best practice is to choose the same color for levels that are not exceptional and select a contrasting color for the highest range and another for the lowest range. This allows us to spot the exceptional.

The Z axes changes the angle of the chart; the steeper the angle, the higher our Z parameter—say risk or whatever else we choose.

And finally, make the 3D chart clearer through formatting the Plot area. Play with the Y rotation angle as well as the Debt Level until you are comfortable working with the chart

Trading Algo Case Studies

Once you are clear as to how to make a 3D chart, it’s time to decide which dimension is relevant. Biasanya, besides time and profit, the following dimensions are worth considering—risk, volatility and duration.

Sebagai contoh, the chart above shows a profit over time of a specific strategy; let’s call it Strategy A. Tiba-tiba, out of the blue, the profit plunges rapidly. It’s not clear why, yet.

Then we add another dimension—risk. Risiko, dalam kes ini, will be the Dollar amount risked in a given moment. Sekarang, the reason is apparent; just before the profit collapsed, risk was rising, serta. Maybe leverage jumped, maybe several positions were opened simultaneously; it depends on the strategy. But by using a 3D chart we were able to easily detect where trouble was coming from.

Trading Algo

Using 3D charts is not only good to spot weaknesses in a strategy but strengths. Let’s take a look at another strategy, which we’ll call Strategy B.

We will test how Strategy B performs during volatility. Dalam kes ini, the volatility will be the standard deviation of each pair we trade. What we see is interesting. When volatility is high, Strategy B performs exceptionally well and not so well when volatility is average to low.

Trading Algo

In such a case, we should consider using the strategy only during high volatility to optimize returns.

More uses could be to measure duration per trade. If the duration is getting longer at certain areas perhaps the trigger for the entry or exit is not working well. The benefit with using a 3D chart here is that we put the opening time stamp on the X-Axis and the closing time stamp on the Z-Axis so we can actually analyze duration per trade over time. A 3D chart then is much more accurate than a two dimensional chart where duration is a trailing average.

Kesimpulannya

There are endless samples and ways in which 3D charts can allow you improve your trading algo and identify both weaknesses and strengths within your strategy. Pasti, you can manage with a 2-dimensional chart. But the benefit of 3D charting is that, many times, it allows you to zoom in and identify areas of change much easier.

Filed Under: Menguji konsep anda sejarah Tagged With: algoritma, leverage, turun naik

Optimizing Your Algo: Tips for Beginners

Jun 6, 2016 oleh Lior Alkalay Tinggalkan komen

You have created a trading algo. The Algo is profitable in the backtester. Before unleashing it with real money, you’ve got to first tighten the screws. Yang, ensure your algo is fine-tuned so it can deliver optimal returns. There’s one major challenge ahead of you.

Pertama, your strategy is rather simple. You may go through the detailed process of building and optimizing a strategy, including curve fitting, correlation and so on. But you want a simpler process; something leaner, that will fit your modest needs.

Kedua, you may not yet have mastered the full technique of optimizing. You are still learning and want to try off with a simple process.

One technique I find especially simple in optimizing your algo is kebarangkalian. The probability method, in essence, contains many components of a full optimization technique. Walau bagaimanapun, it tends to rely more on common sense and logic to narrow the options and optimise the algo. That makes it a pretty good way to begin the entire concept of optimizing a strategy. Lebih-lebih lagi, you will find it easier to digest.

The essence of the strategy—optimize by elimination.

Algo Case Study

The following Algo is a simple one. Let’s call it RSIMV which is RSI and Moving Average. Here is what RSIMV describes through conditioning:

If Open Positions = 0 kemudian

Jika (MA(30)>MA(14)) and RSI=<60 kemudian

Open Buy (50,000) {It will buy 50 banyak}

Set Stop Loss = Price – 50{Pips}

Set Limit= Price+ (50*2)

End

Strategi: If the moving average cross points on a bullish trend and the RSI is equal or below 60 it means that the rally has some length before reaching an oversold level (RSI above 80). That points to a good buying opportunity.

Looking at RSIMV, you can conclude there are four parameters to optimize: RSI and two Moving Averages

Starting with the Moving Averages, we will look at the 14 dan 30 hari. Seemingly, the options are endless, with many combinations of moving averages to test. Dalam teori, itu adalah betul, but that is where kebarangkalian comes in.

Algo

MT4

When we look at the chart, we can see that the longer the averages (orange and red) the lesser the chance that there is a combination of a low RSI and a bullish momentum.

Lebih-lebih lagi, a combination of a low RSI and a bullish signal hanya occurs when the two averages, the fast and the slow, have more or less a 2 kepada 1 nisbah (such as a 30 dan 14).

Those two conclusions help us narrow the parameters we are looking for.

The highest likelihood of finding a better set of averages is with faster averages, not slower, and those that have a ratio of 2 kepada 1. And let’s not forget we already know that 14 dan 30 kerja. So we shouldn’t move too far up the scale.

We will use 25 dan 12 as the first combination and 20 dan 10 for the second. Both are faster than the original parameters, have a roughly 2 kepada 1 nisbah, and are close to the original settings.

  1. 25,12
  2. 20,10

Moving into the RSI parameter, narrowing the options is even simpler. We know the RSI cannot possibly be higher than 60, because then we will be left with insufficient upside before the pair turns oversold.

Sebaliknya, if we try an RSI below 40 it’s unlikely that it will occur while the moving average cross is bullish.

Sejak, as in the Moving Averages case we know the original setting worked, we know we only need a minor tweak. With no way to go but up we are left with two reliable options – RSI<55 and RSI<50.

Hence our options are:

  1. C) (55)
  2. D) (50)

As we can see from testing all the alternative parameters, what we needed was a better entry for the RSI. As we intended… minor tweaks.

Algo

Don’t Optimize Too Much

Ironic as it may sound, optimization sometimes has a downside. At times, we are tempted to over-optimize to such an extent that our newest strategy no longer resembles our original, pre-optimization plans. That can throw us into an eternal loop and waste precious time. Don’t be tempted! Don’t fall in love with the optimization process. Lagipun, optimization is merely tightening the screws, not building the engine. If your strategy works, confine your optimization to minor tweaks. Jika tidak, optimization won’t help and you’ll need to start from scratch.

Dan, finally, a practical tip; always keep records of the results of your original strategy and compare it to your current, post-optimization strategy. This way you can always make sure that you’ve really optimized your strategy.

The Bottom Line

Pasti, the optimization technique isn’t perfect. But the take away here is that if you really understand your strategy, you can use logic to in order to find better settings. If you’re a beginner and lack the knowledge for advanced optimization techniques, optimizing through the logic of probability is a powerful tool to have.

 

Filed Under: Menguji konsep anda sejarah Tagged With: purata bergerak, pengoptimuman, RSI

Oscillators you need to use

Mei 31, 2016 oleh Lior Alkalay 8 Komen

Pengayun, one of the most interesting groupings of technical indicators, are designed to signal overbought and oversold levels. Oscillators are a family of indices that go beyond the mathematics. They focus on one important thing and that is momentum, or more specifically changing momentum. Before we delve into which Oscillators are best to use and how, let me save you some unnecessary pain. Let me tell you first what oscillators aren’t.

How Not to use Oscillators

Some traders believe that Oscillators are some sort of magic indexes. Rest assured when I tell you they are not. Oscillators’ main use is not to tell you whether to buy or sell. Sebaliknya, they alert you to when it might be a good time to execute a buy or sell strategy. That is a very big difference. Those who attempt to use Oscillators as an ultimate buy or sell signal should be ready to learn a tough lesson. Those that will use it to fine tune their timing, Walau bagaimanapun, will find Oscillators a very powerful tool.

Now that we’ve established what oscillators are good for let’s focus on which oscillators are worth your time and how to use them.

Petunjuk MACD

Perhaps the most widely used Oscillator in Forex, yang MACD needs no special introduction. What it does need is a proper explanation of how to use it and when.

The idea of MACD is to signal your entry point when you’ve already figured out where the trend is going. It’s not going to alert you to a trend. What that means is that you first have to perform your technical analysis. Once you reach a conclusion, kemudian you can use the MACD.

On MT4, the MACD comes with default parameters (12, 26, 9). 12 represents the fast Exponential moving average, 26 the slow exponential moving average and 9 the Simple MACD average. Biasanya, when you trade on a daily basis, those parameters are fine.

Now in the chart below we see two points, A dan B. In point A, the histogram moved above the average and that is supposed to be a buy signal. Tetapi, technical common sense says that a pronged bearish trend cannot end abruptly without some form of double bottom. Oleh itu, one should ignore that signal.

But in point B, itu cerita yang berbeza. After a double top that hits a resistance level and hits the trend average, there’s a case for a short. But we need to know when. Notice how after the second top the histogram in the MACD falls again below the average? That’s our mark and that is how you use MACD to time your trade. Sekali lagi, the lesson here is that Oscillators are for timing, not for point to the pair’s direction.

oscillators

Stochastic Oscillator

This is one of the most interesting indicators in the Oscillators family. What I like about this indicator is that it essentially gives you a 2-dimensional picture of overbought, oversold and momentum. Unlike the MACD, that’s not always accurate on overbought/oversold level.

The idea of the pengayun stokastik is twofold. Pertama, it’s normalized from 0 kepada 100, anything below 20 is oversold and anything above 80 is overbought.

Kedua, using the convergence between the %K line and the %D line tells you something. Not only can you tell when there is an overbought/oversold level but also when the trend turns bullish or bearish. Thus it affords a 2-dimensional use of momentum. Keliru? Here’s a classic example of how I would use a stochastic oscillator.

In the first part, we can see that in point C, after the pair has bottomed, the stochastic oscillator was below 20. That signaled an oversold level. We can conclude that there the pair is bottomed out, through a double bottom pattern. We can use the oversold level as enforcement but wait before dipping our toes into a buy position. Only in point D, as the blue line crosses the red line, we get our signal for entry.

Walau bagaimanapun, one other thing is important to note and that is point E. In point E we get the blue line crossing the red line as it does with C. Walau bagaimanapun, since the cross occurs very close to the overbought signal that should deter us from establishing it as an entry. Which means if the crossing in point D was close to the stochastic 80 tahap, we should have avoided entry.

oscillators

Purata Julat Benar

Last but not least, one of my favorite indicators, the Average True Range or ATR for short. Unlike the other two Oscillators the ATR is useful in anticipating potential rises or falls in volatility. Also unlike the other two, there is no oversold or overbought levels. If the ATR is high it suggests volatility is high. Sebaliknya, if the ATR is low it suggests volatility is low.

How can we use this to predict volatility? We know, sudah tentu, that volatility is cyclical. Thus we can assume that when the ATR is at record lows for a prolonged period (point F) it’s a signal that a spike in volatility is coming. Dan, Sesungguhnya, we can see volatility did come and we got the big spike.

If we decide to use the support as an entry signal we can ATR to gauge whether there’s a chance our buy trade will have a strong momentum. If the ATR was at a record high when we decide to buy that would have been a cautionary note. Not to entry but because it signals that volatility might fall and that means momentum might have been weak. The same principle, sudah tentu, works for a sell signal.

oscillators

Filed Under: Menguji konsep anda sejarah Tagged With: pelbagai benar purata, MACD, pengayun, Stochastic

Beware of a Trading Strategy That Does Too Well

Mei 10, 2016 oleh Lior Alkalay 2 Komen

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, agak kerap, 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. Mudah-mudahan, 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.

Biasanya, a solid strategy has an average memenangi nisbah daripada 45% kepada 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.

Sebagai contoh, in the month of January 2014, the win ratio was 52%. That means that for every 100 trades executed, 52 menguntungkan.

But in the second part(merah), 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 bulan. Secara semula jadi, di 80%, that was far beyond the norm. What would come next was inevitable.

Selepas 3 months of more than 80% of profitable trades, the win ratio fell to roughly 20% for the following 3 bulan. 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?

Pertama, 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 dagangan. That’s a pretty hard hit. And if you risk $50 in every trade you lost $6,000 on aggregate (80 losing, 20 profitable) selepas 3 bulan. 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 bulan, 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. Sudah tentu, 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. Rata-rata, you expect the limit to be reached within 3 kepada 4 hari. 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, serta. You could use a trailing stop loss which is the most obvious tool to avert such cases.

Sebagai alternatif, 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) tahap. Make it a practice to exit the trade even if the target was not reached.

Trading Strategy

Filed Under: Menguji konsep anda sejarah Tagged With: risiko, nisbah kerugian menang

Become an Algo trader in Baby Steps

April 4, 2016 oleh Lior Alkalay 10 Komen

The world of traders is divided into two groups; those who trade using algorithms and those who don’t. Those who trade using algorithms, aka algotraders, are well aware of the advantages of trading with an algo… And for those who don’t use algos? They are equally aware of the algo advantages but are reluctant to dive into its complexity; they are deterred from learning how. But the road to success in trading is not by avoiding challenges, but overcoming them, perhaps in baby steps.

First Baby Step to becoming an Algo trader

Let me ask you a question. What do you think is the first thing you’d need to do to become an algotrader? You might respond, “Learn programming, sudah tentu! How else?” Well, you’d be wrong.

If you plan to learn programming for the sole purpose of becoming an algotrader, you’re likely to get lost. Akhirnya, in despair or frustration, you’ll give up on algotrading.

There are numerous languages, from MQL to R to Python, and you have to decide which one to start with. You might find yourself wasting valuable time learning far too many trivial functions. It may take quite a long time before you even create a trading algo, let alone a profitable one.

But there’s another way, which I call reverse engineering.

The first step is to figure out which trading algo you want to make. Dalam erti kata lain, what are the functions and strategy it should implement? Then you test it and finally, move on to the programming part. Dengan cara ini, you’re focused like a spotlight. You know exactly what your algo should do and can focus on the exact functionalities you need to learn to make it happen.

Everything will just come intuitively; which language, how and in what. All the pieces will fall much quicker into place because you already know what to look for.

The best way to start is by using a flowchart. It is actually one of the first things you learn in programming schools.

And what determines the flow? Sudah tentu, it’s the conditions. What we call the “ifs.” “Ifs” can be one condition or have many “ands” and “ors.” That’s how you decide what your algo should do in any given circumstances. The conditions to the algo are what the brain is to the body; they do the thinking.

Second Baby Step: Use Excel

Once you’ve made a flowchart of conditions, rather than using a complex tool, use Microsoft Excel or some other spreadsheet software.

Algo

Sumber: MT4

Extract historical data of a price data; start by using only the closing price. If you want to trade on a daily interval, extract daily data and so on. Use a separate column for each of the conditions in the flowchart, that way it’s easy to write and figure out. Add another column for a buy and sell output to mark when you “opened” and when you “closed” a position. And finally add one column of accumulated profit/ loss.

Use separate columns for each conditions and fill the chart. All you need now is to run a linear chart on one column, accumulated profit/loss, and look at the algo’s historical performance.

Once you master the basics you can move on to move advanced back-testing and curve fitting. But for a start that will do.

Algo

Akhirnya, Learn to Program

ok, you’re not a “baby” anymore; you have a good idea of what an algo trader needs to do. Now that you’ve got the concept down pat, you’re ready to begin learning programming.

In terms of which language to start with, that will depend on the circumstances. If you are already using an MT4 platform, it’s a no brainer; learn MQL which runs on MT4. The MQL website is filled with “how to” materials. And since you already have a diagram of your algo and an idea what you want to do, finding your way should be simple.

But if you trade with a different broker, you’ll have to decide which best suits. Secara peribadi, I recommend starting with MQL, just because it’s easier. Kemudian, you can move into Python, which is a rather easy language to learn or C++ if your algo needs to work fast. If you algo is heavy on the math then perhaps R would fit.

Here are some places you can learn online:

MQL

Coursera

Code Academy

EDX

Atau, sudah tentu, you can learn from a book. I am more of a book person, but that’s just me.

Then there is another issue—API. API is the mechanism that enables your algo to communicate with your broker and execute your trades. Some brokers work better with certain programming languages than others. Most large brokers have communities and forums that can go into detail as to the best way to use an API.

Unlike the first two baby steps, no one would ever say that learning to program was a baby step. Sebaliknya, it’s more of a giant leap. It takes time to learn and to master, though it is worth it in the long run. Sementara itu, you can always use libraries of codes on the web for more complex algos. The thing is that once you’ve accomplished the first two baby steps, making the final leap into programming is a no brainer.

Filed Under: Menguji konsep anda sejarah Tagged With: algoritma, API, cemerlang, MQL, pengaturcaraan, R

perubahan besar kepada Dominari

Mac 9, 2016 oleh Shaun Overton 24 Komen

I said it di sini dan di sini dan di sini. The biggest issue with my Dominari is trading costs. Things aren’t going to really take off until I do one of two things.

  1. Reduce the trading costs
  2. Make more money on each trade

I’ve been working on Dominari since around September or October of last year. After racking my brain for months, I more or less wrote off the idea of improving the trade profitability.

That suddenly changed last week on Friday after the market closed. The best reason to trade my own systems live is that the agony of underperforming forces creativity. The feeling reminds me a lot of Daymond John’s (the guy from Shark Tank) new book the Power of Broke. When life isn’t going your way, it’s the resourceful and creative who are best able to get to the top.

Nobody wants to feel broke or under extreme stress. As much as we hate those feelings, they’re often the strongest drivers of performance. That’s how I feel right now with Dominari. I’m so close to getting there and wasn’t sure how to fix that missing ingredient.

If it weren’t for that stress, I would not have had my simple but very powerful insight last Friday.

And please don’t laugh. The change is so dumb and obvious that you’re going to wonder what’s wrong with me. When you’re in the thick of designing a system, the ugly truth is that sometimes you get lost in the weeds. Or to use another botany metaphor, you only see the trees instead of the forest.

My key insight was to slightly modify the exit strategy to use limit orders, whereas previously I only exited based on the close of the bar. I noticed two repeated behaviors that finally beat me over the head enough that the point finally sank in.

The number of occasions where my trade closed in the optimal location seemed to be significantly outweighed by the amount of money left on the table. The key insight for me was realizing where to optimally place that limit order. And for those of you on my newsletter, it happens to be closely related to the Auto Take Profit that I’ve been talking about all week.

Backtest assumptions and results

My operating mantra when doing backtests is to minimize the number of assumptions. Spreads for retail traders have changed dramatically from 2008 to today. I remember working as a broker at FXCM when our typical spread on GBPCHF was something like 8-9 pips. I now routinely pay something like 2 pips. It’s impossible to model what happened in the middle without haphazardly guessing.

I find it far more convincing to analyze the raw signal, both on historical and recent market data, then to interpret whether trading costs are likely to be favorable in today’s markets. “Raw signal” is the ideal signal, one which assumes perfect execution, no slippage, no rollover, no spreads and no commissions. The natural result is that you’re overstating historical performance, but the benefit is that you have a very clear idea whether the core idea is a system capable of predicting the market with reasonable risks.

The total leverage employed in the portfolio is 7:1. If I have a $50,000 trading account and held a position in every currency pair in the portfolio, then the notional value of those trades would equal $350,000 (50k * 7).

Another key point is that I used a fixed position size of $12,500 setiap perdagangan. The size of the trade never increases or decreases during the backtest, which allows me to isolate the impact of the raw signal without adding the variable of money management.

Here are my trade metrics with version 1 of Dominari. Click the images to view them in full size.

Version 1 backtest of Dominari

The first version of Dominari had a profit factor of 1.26.

After here’s the change with Dominari version 2.0.

My new version of Dominari increases the profit factor to 1.59 with a significantly lower drawdown.

My new version of Dominari increases the profit factor to 1.59 with a significantly lower drawdown.

My best case scenario was to hope that the profit factor would jump another 10 points or thereabouts, maybe stretching the profit factor to 1.35 or thereabouts. It’s incredibly exciting to see the edge over breakeven more than double (going from a $0.26 edge to a $0.59 cent edge).

What I’m most excited about is the skew in the returns. Most mean reversion systems look for an edge but are overwhelmed with the impact of losing trades. That was the case with version 1.

Skew of Dominari version 1

The largest losers outweighed the largest winners in version 1.

This new version of Dominari is the very first bermakna perkembalian strategy that I’ve ever developed where the winning tails (ie, the biggest winners) nearly equal the losing tails (the biggest losers). It’s almost always the opposite with mean reversion strategies. Berkata cara lain, the risk profile of the extreme outcomes significantly improved with version 2.

Fat tails in Dominari v2

The impact of the biggest winners is nearly identical to the biggest losers with version 2.

And the metric that most traders care about the most, pengeluaran, is wildly improved. Version 1 showed a drawdown of 5.72%. The new version is a fraction of that at 1.77%.

Out of sample backtest for Dominari version 2

The out of sample performance is nearly identical to the in sample performance, despite significantly different market conditions.

When I walked my test out of sample onto recent data, covering 2013-2015, the performance characteristics of version 2 are nearly identical to the in-sample test. The profit factor was identical at 1.59, and the max drawdown was 2.01% untuk 2013-2015.

Translating the theoretical into expected performance parameters

Lagi, those metrics above are in the ideal world of perfect execution and no trading costs. The real world performance will have lower returns and higher drawdowns. The advantage to having live trade data is that I can now make some kind of intelligent estimate of my expected trade accuracy and profit factor. Just how overstated are the idealized returns likely to be?

The process that I went through to calculate the expected profit factor in the real world is a 5 proses langkah. I don’t think it’s going to make any sense if I try to write out the steps in conversational English. Sebaliknya, I’ve chosen to share a spreadsheet where you can view the step by step process for how extrapolating live trading data into expected performance with the new strategy. Klik di sini to view the spreadsheet.

The expected profit factor for my live trading is expected to be between 1.29 kepada 1.39. The expected percent accuracy for live trades should jump from 62.55% kepada 70.8%.

The traders who will get first crack at the Total Access Apprenticeship are those are subscribed to the free newsletter. If you’re not signed up, make sure to fill in your email address in the orange box at the top right of this page.

Filed Under: Peraturan, Menguji konsep anda sejarah Tagged With: Backtest, ekor lemak, GBPCHF, leverage, bermakna perkembalian, faktor keuntungan, skew

Engineers Can Leverage Their Experience to Trading

Februari 25, 2016 oleh Lior Alkalay 5 Komen

There are many kinds of engineers in the world. Malah, given the vast variety, it would be an effort in futility to try and name them all. But what does it really mean to be an engineer? And the bigger question: how exactly is this related to trading? A good friend of mine who is an engineer said, very aptly, “Scientists do the work of God; engineers do the work of man.”

Although I am not sure he can claim that quote as original, there is nothing better to describe what engineers do. Being an engineer is a mindset. You must be able to solve problems and build mechanisms in the imperfect world of man. And often times, those conditions are far from ideal.

And that is exactly the state of mind you need to build a profitable strategi perdagangan, whether discretionary or algorithmic. Jadi, if you are an engineer, that’s great! This article could help leverage your experience in trading. And even if you’re not, you might still learn something useful.

Engineers define the project in detail

If I were to ask an ordinary trader what trading strategy he plans to build, what might be the answer? More than likely I’d hear that he wants to build a strategy that is profitable. And while that it is, secara semula jadi, the ultimate goal it’s hardly enough to build a successful strategy.

If I were to ask an engineer the same question, Walau bagaimanapun, I’d surely get a very different answer. Engineers define each project they’re working on in great detail. In our case, kemudian, the trading strategy they’d likely wish to build would have a number of inputs. An engineer’s definition of a strategy might be something like this:

Strategy Interval: 1-3 Hari

Type: Momentum

Maximal Drawdown: 20%

Value at Risk: $500

Target Profit Limit: 100 kepada 150 pips

Target Stop Loss per Trade: 50 kepada 75 pips

Target Win Ratio: 50%

By having these very detailed parameters, the engineer already knows several things. Pertama, that he has to design a trading strategy that’s built on momentum (rather than something else). Kedua, it has to have a maximal draw down of 20% with a maximum risk of $500 at any given time. Ketiga, each trade has to have the potential of at least 100 pips and a stop loss of maximum 75 pips. And fourth, in the longer run, sekurang-kurangnya 50% of all trades must be profitable.

Jelas, an engineer doesn’t choose a trading strategy arbitrarily. He already knows exactly what he wants to build and chooses all the tools (purata bergerak, dan lain-lain) and strategies accordingly. Pasti, it does not guarantee he will be successful. And he may eventually have no choice but to change his targets. Lagipun, he is doing the work of man where nothing is perfect.

But the point is that setting a plan in detail narrows irrelevant options. Oleh itu, everything is more result-oriented.

Engineers anticipate what could go wrong

Kebanyakan orang, when they have a good trading strategy, think about how much money they can make. Awak tahu, they dream about how good it can get. But an Engineer’s natural instinct is just the opposite. Sebaliknya, an Engineer is trying to figure what could go wrong.

An aeronautical engineer would test an airplane in extreme weather to ensure it doesn’t crash. Begitu juga, an engineer building a trading strategy will test it for failures. The end result, sudah tentu, is that the engineer will build a better and safer strategy.

Engineers are open to ideas

When there is a particular mechanism of functionality to be filled an engineer looks first for a readymade mechanism. Dalam dagangan, contohnya, it could be finding a good tool to identify volatility. Or perhaps a good signal for momentum. Once found, provided that it is acceptable, an engineer will incorporate it in his strategy.

An engineer will not be fixated on investing his own idea. Engineers do not believe in re-inventing the wheel. Secara ringkasnya; if it works, it works.

Kesimpulannya

Many engineers might now realize they already have the mental tools needed to succeed in trading. They just need to implement their ingrained work habits and apply them properly. And many successful traders will find that they have already implemented the lessons learned here.

Engineer or not, successful trader or not, it’s never too late to learn how to think “smarter.” In the long run, it will enhance your trading strategy.

Filed Under: Menguji konsep anda sejarah

Monitoring my live trade execution

Februari 10, 2016 oleh Shaun Overton 29 Komen

Dominari’s biggest risk is its trading costs. In the midst of losing 6 days in a row, I found myself extremely concerned about Dominari’s performance. Did the signals go bad all of a sudden or is this a normal drawdown? Is Dominari losing because of trading costs?

I decided to start analyzing my FXCM account. Part of the nerves were driven by the fact that it took 2 weeks to setup the account. The compliance process took far longer than usual because I’m a former employee. Two weeks later, I turned on the account just in time to a) miss the biggest equity growth and b) to catch the biggest drawdown.

I felt more hostile to the FXCM account performance because I didn’t have any profits to pad the losses. This is all coming from my original risk capital. And I’m having my third child soon. Giving birth to kids in the US is incredibly expensive. I’ve got better uses for the money than to throw it away in the markets!

Jadi, the real question is: am I losing because it’s just a rough patch or because FXCM is eating my lunch?

backtest-equity-fxcm

This image is a Backtested equity curve over the same period of my live performance. I’ve traded live since January 28, but the trading didn’t begin until the afternoon. Seperti yang anda lihat, I again missed another patch of strong performance.

The rest shows something of a fairy tale. The backtest shows a return of 19.13% over that period, whereas my live performance is down 10%. How much of that is due to commissions, penyebaran, rollover and slippage?

The backtest shows a profit of $956.65 with no trading costs.

My real results, yang 1) show a profit on the backtest but 2) are actually showing a loss in real life, can be used to estimate a floor for my trading costs. The formula for that is
( Total profit and loss + komisen + rollover) / jumlah perdagangan, which is currently $1.58 in costs per trade.

The commissions and rollover are easy to separate out using either Myfxbook or the FXCM account report. The grand total spent so far on commissions is -$239.80 dan -$3.05 on rollover.

The hardest part to separate is the spread paid. I’m not recording the spread paid on every trade (maybe that’s a mistake and I need to add it). But I’m going to use the table below to estimate. I took a random sample of 30 trades from the 501 trades completed at the time of my analysis.

Spread PaidSlippage
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

The average slippage (the right column) is a stunning -0.044%. I’m getting negative slippage on average with FXCM. That’s outstanding! FXCM is improving my fills even though my entries are requested at a worse price. Whatever misgivings I’ve had about FXCM in the past are alleviated. That’s impressive execution.

Estimating the spread paid is much more difficult. I’ve chosen to take my average trade profit on a $5,000 account as the starting point. The trouble is that the value of an average winner can depend on the account performance. If I use stagnant position sizing, then the drawdown doesn’t effect the value of the average winner. Under that assumption, the average winner is $3.48 setiap perdagangan.

But if I use compound position sizing, the drawdown eats away most of the profits. That drops the average trade value down to $1.70.

I converted the spread paid from pips into percentages. Using EURUSD as an example, yang 1 pip spread works out to 0.0001/1.12727 = 0.000089. The reason for doing this is so that I can compare the spread on EURUSD to something with a much wider spread like AUDNZD. The spread is wider on AUDNZD, but the value of a NZD pip isn’t the same as a USD pip. Percentages allow for an apples to apples comparison.

The average spread paid in my sample was 0.00026157605, yang 0.026%. Putting that back into terms relative to my account balance, I’m paying 0.026% * $5,000 = $1.31 per trade in spread. Across 420 dagangan, itulah -$550.20 in spreads.

Total costs are spread, commissions and rollover:
$550.20 + $239.80 + $3.05 = $793.05

On a per trade basis, yang $1.78 in costs per trade from my estimates.

The total profit on the backtest was $956.65, but I missed about $550 of it because trading didn’t start until 17:00 on the 28th of January. That leaves the backtest profit somewhere around $406.65.

That puts the re-estimated profit and loss at $406.65-$793.05 = -$386.40. The actual loss is -$469, which I feel is a reasonable discrepancy based on the fact that I’m estimating how much profit was contributed on January 28 instead of knowing for certain.

The conclusion is that I need to turn off this trading at FXCM. Even if I joined their active trader program and traded in the top tier, it would only save me half the commissions. Most of the trading costs are in the spread and not commissions. I’m seriously considering a move to a broker that will allow me to make a market by posting limit orders. Tetapi pertama, I’ll need to go over my Pepperstone account to review the trading costs for myself and clients.

Filed Under: Peraturan, Menguji konsep anda sejarah Tagged With: Backtest, FXCM, Peralihan, gelinciran, penyebaran

Live demo menguji strategi baru dengan had pesanan

November 24, 2015 oleh Shaun Overton 17 Komen

Saya datang dengan menakjubkan mencari backtests sepanjang masa. Ini adalah contoh terbaru menggunakan Rata-SB.

backtested equity curve

Keluk ekuiti daripada strategi baru tanpa kos dagangan.

Versi percuma dan andaian strategi yang membuahkan $79,618.82 untuk pulangan uncompounded daripada 796.19% dalam tempoh 3 tahun. Strategi perdagangan semua salib FX utama. Seperti yang anda boleh memberitahu, kualiti isyarat kekal hampir malar seluruh keadaan pasaran yang pelbagai. Ia kelihatan hebat.

Masalahnya ialah kos dagangan. Ia sentiasa didagangkan kos yang membuat hidup sukar.

Kos dagangan menggugurkan keuntungan dengan 98.22%

Kos dagangan menggugurkan keuntungan dengan 98.22%

Saya sentiasa mengambil pandangan yang sangat pesimis apabila ia datang kepada kos dagangan dengan andaian dan gelinciran. Ia memerlukan banyak jujur, tetapi membuat usaha untuk mengelakkan andaian rosy menjimatkan banyak sakit dan kekecewaan di jalan. Andaian adalah benar-benar teruk pada mata wang silang di mana kita menganggap spread dan utara gelinciran 5 pips.

Prestasi dengan pesimis andaian kos perdagangan jatuh kepada hanya membuat $1,000 dalam keuntungan. Strategi ini tidak perlu untuk pergi ke dalam tong sampah, tetapi ia jauh dari bersedia untuk masa perdana. Tidak ada senario di mana ia masuk akal untuk berdagang dengan pesanan pasaran.

Ciri-ciri umum

Dagangan purata setiap hari: 39
Pasangan mata wang yang diniagakan: 27
Ketepatan peratus: 66.52%
Gaya: Perkembalian Mean
Carta: Setiap jam

Bagaimana untuk berdagang di murah

Saya terkenal berjimat. Seorang dari antara saudara persaudaraan saya di kolej masih memberitahu cerita mengenai saya mengira perubahan longgar dan mengesan dalam MS Wang.

Itu jenis mentaliti mendorong isteri saya gila… tetapi ia adalah satu aset sebenar untuk seorang peniaga! Peniaga membuat wang mereka di pinggir seperti setiap orang perniagaan lain.

Saya menghabiskan petang semalam pengekodan strategi baru ini dengan sentuhan sedikit. Daripada membayar spread pada setiap perdagangan tunggal, bagaimana jika saya menggunakan had pesanan untuk mencuba dan mendapatkan penyebaran?

Penyebaran mentah semasa pada EURUSD adalah 0.3 pips, yang bernilai $0.03 setiap microlot. Komisen dagangan adalah $0.03 setiap microlot. Jika saya memperolehi tambahan $0.03 setiap microlot, bahawa sekurang-kurangnya meliputi kos dagangan. Pada pasangan seperti NZDCHF penyebaran ini mentah 1 PIP, yang menambah tambahan $0.04 ($0.10 – $0.03) setiap bahagian. Iaitu, isyarat kemasukan membuat tambahan $0.04 dan keluar juga membuat tambahan $0.04 pada setiap perdagangan tunggal.

Walaupun pasangan tenang di NZDCHF masih mempunyai unsur bunyi pada setiap bar. Saya tidak melakukan apa-apa penyelidikan untuk menyokong teori, tetapi pengalaman subjektif saya mengatakan bahawa sumbu daripada 90% atau lebih daripada bar akan sekurang-kurangnya selama penyebaran luas.

Peniaga membuat wang mereka di pinggir seperti setiap orang perniagaan lain.

Berkata cara lain, jika penyebaran pada EURUSD adalah 0.3 pips, maka perbezaan antara harga yang terbuka dan rendah pada 90% bar hendaklah sekurang-kurangnya 0.3 pips, terlalu. Itulah andaian saya, apa-apa cara.

Contoh berpusing strategi untuk menggunakan had pesanan

Mengatakan bahawa isyarat untuk memasuki pasaran hanya muncul. Harga semasa untuk EURUSD adalah 1.06457 x 1.06462, yang 0.5 pips. The backtests menganggap bahawa saya akan melanda 1.06462 meminta harga dan membayar spread.

Idea untuk ujian saya adalah untuk menetapkan perintah had saya di 1.06457. Oleh kerana saya seorang peniaga runcit, ini bermakna saya meminta pasaran untuk bergerak turun setengah pip sebelum saya akan mendapat untuk mempunyai kedudukan yang. Memerlukan satu langkah yang kecil memihak kepada saya secara teori mendapat lebih daripada melompat ke dalam pasaran dengan kedua-dua kaki.

Ujian live demo bermula

Saya secara teori boleh memodelkan idea dalam Ujian Prestasi yang, tetapi terdapat andaian kritikal yang menjadikannya sia-sia.

1) Purata merebak terdapat di saya 2009-2011 tempoh Ujian Prestasi jauh lebih luas daripada mereka hari ini
2) Penyebaran berbeza dengan ketara sepanjang hari. EURUSD adalah rutin serendah 0.2 pips dalam sesssion Eropah, tetapi dengan mudah boleh memukul lebih 1.0 pips dalam bahagian-bahagian yang paling membosankan perdagangan Asia.

Perkara kedua boleh menjadi benar-benar merosakkan Ujian Prestasi yang. Ia adalah lebih baik untuk menguji idea pada demo secara langsung dan mendapat sesuatu yang lebih dekat dengan data dagangan sebenar.

Demo testing

Yang pertama 15 jam ujian demo hidup.

Saya hanya 15 jam ke dalam ujian, tetapi sekurang-kurangnya segala-galanya adalah permulaan yang baik.

Matlamat untuk ujian ini adalah mudah: meletakkan sekurang-kurangnya 300 perdagangan dalam akaun. Yang hanya perlu mengambil kira-kira 2 minggu sejak strategi yang begitu hiperaktif.

Kriteria untuk kejayaan adalah sama mudah: adakah masa nyata prestasi perdagangan demo memenuhi atau melebihi prestasi ujian tersokong sepanjang tempoh masa yang sama?

Saya memulakan dagangan pada petang November 23, yang bermaksud bahawa saya perlu memukul saya 300 ambang perdagangan di seluruh hari ke-10 perdagangan. Kekerapan perdagangan tidak berubah-ubah, tetapi yang perlu berlaku kira-kira pada 4 Disember.

Walaupun saya mempunyai data demo hidup, Saya akan menjalankan Ujian Prestasi kemasukan pasaran dari November 23 hingga Disember 4. Jika perdagangan demo, yang menggunakan had pesanan, melebihi Ujian Prestasi kemasukan pasaran, maka saya mempunyai asas yang munasabah untuk menganggap bahawa strategi yang bersedia untuk berdagang di akaun kecil sebenar.

comparison scale

Saya juga seterika keluar bug yang muncul semasa simulasi secara langsung. Kemungkinan besar, tarikh-tarikh ini akan ditolak ke belakang. Saya sudah dijumpai 2 isu-isu yang memerlukan siasatan selepas hanya 22 dagangan. Tidak ada gunanya dalam menilai strategi jika ia tidak melakukan tepat seperti yang dinyatakan.

Kod strategi yang sama dua kali?

Anda mungkin menyedari bahawa lengkung ekuiti ujian hadapan adalah dari MetaTrader. Mengapa saya akan menguji dalam satu platform tetapi melaksanakan dalam satu lagi? Kesemua backtests saya telah dibuat pada Maha Melihat.

Jika anda mempunyai dua orang bekerja pada masalah dan kedua-duanya tiba di jawapan yang sama, maka mereka mungkin menjawab masalah tersebut dengan betul. Logik yang sama terpakai kepada pengaturcaraan. Jika saya program versi strategi dan Jingwei program versi strategi yang, mereka sepatutnya meletakkan perdagangan sama. Sebarang percanggahan bermakna bahawa pengaturcaraan seseorang adalah salah.

Saya secara rutin menggunakan kaedah ini kerana kesilapan sedikit dalam logik boleh membawa kepada hasil perdagangan langsung berbeza. Ini perbezaan antara membuat wang yang banyak dan kehilangan wang yang banyak. Ya, Saya mengorbankan kecekapan. Pertaruhan untuk strategi yang begitu tinggi bahawa ia adalah lebih baik untuk membuat 2 orang melakukan kerja yang sama dalam pertukaran untuk kepercayaan mengetahui bahawa ia dilakukan dengan betul.

MetaTrader kalah dengan pelihat oleh setiap langkah. Satu-satunya sebab yang saya tulis kod saya dalam MetaTrader adalah bahawa saya tak sabar untuk menguji idea. MQL4 adalah mudah bagi saya untuk kod – pengaturcaraan untuk MetaTrader merupakan salah satu perkhidmatan utama kami.

Selepas Jingwei selesai pengaturcaraan versi Maha Melihat minggu depan (dia off untuk Kesyukuran), Saya akan mempunyai asas untuk membandingkan versi MT4 saya terhadap perempuan. Ia sangat tidak cekap, tetapi saya juga tahu bagaimana mungkin saya membazirkan minggu kepada menganalisis dagangan diletakkan mengikut kaedah-kaedah yang tidak betul-betul sepadan strategi saya. Lebih baik selamat daripada maaf!!!

Bagaimana untuk menggemukkan margin

Satu perkara yang saya benci tentang perdagangan runcit adalah bahawa sangat sedikit tempat menawarkan ECN benar. Dagangan di tradisional broker forex runcit bermakna bahawa saya perlu menunggu untuk penyebaran turun untuk menyentuh pesanan saya. Dalam contoh yang saya berikan menggunakan EURUSD, ia memerlukan bahawa langkah pasaran 0.5 pip memihak kepada saya sebelum saya isi.

Dagangan di ECN yang ketara akan meningkatkan kebarangkalian menerima isi atas perintah had. Dengan menggunakan contoh EURUSD di mana harga semasa adalah 1.06457 x 1.06462, Saya akan membuat pesanan had pembelian pada tawaran di 1.06457. Jika sesiapa di pasaran menjual pada masa itu, ia bermakna bahawa sekurang-kurangnya sebahagian perintah itu akan diisi dengan serta-merta.

Kesannya, dagangan di spread runcit mengandungi senario terburuk bagi pelaksanaan. Harga perlu menyesuaikan 0.5 pip memihak kepada anda untuk mendapatkan diisi. Jika anda berdagang di ECN dan harga jatuh 0.5 pips, anda akan mendapatkan diisi setiap kali. Tetapi anda juga mendapat peluang untuk mendapatkan diisi lebih awal dan lebih cepat kerana jika sesiapa datang dan pergi pendek di pasaran, perintah itu duduk di atas buku menunggu seseorang untuk memukul.

fat margin

Peniaga Smart melakukan segala-galanya dalam kuasa mereka untuk menggemukkan margin

Saya meneruskan dengan ujian demo sekarang. Jika ia memenuhi atau melebihi keputusan Ujian Prestasi, Saya kemudian akan tahu dengan tahap tertinggi keyakinan kemungkinan bahawa kaedah yang sedia untuk live trading. Saya mungkin akan bermula dengan beberapa ribu dolar untuk bulan pertama. Kemudian, jika ia berjaya, Saya benar-benar akan mula skala itu.

Tiada sebab yang semua perdagangan mesti berlaku pada carta H1. Saya sentiasa boleh beralih selang perdagangan oleh satu minit, dua minit… lima puluh sembilan minit. Dan walaupun terdapat, ada kemungkinan

Senario yang ideal saya adalah untuk perdagangan strategi yang pada tempat ECN, yang memerlukan baki minimum $250,000. Bahawa jumlah wang yang jauh lebih tinggi daripada saya dengan mengurangkan risiko selesa. Peraturan lama perdagangan adalah bahawa anda tidak menerima lebih banyak risiko daripada anda kalah selesa.

Ini bermakna saya mungkin akan dapat mencari rakan kongsi untuk memastikan strategi yang berjalan dalam persekitaran yang terbaik (ECN). Adakah anda mungkin rakan kongsi yang? Jika ya, menghantar e-mel kepada info@onestepremoved.com~~V dan memperkenalkan diri. Tiada apa yang akan berlaku untuk beberapa bulan, tetapi ia sentiasa mengambil seketika untuk membina hubungan dan berasa selesa dengan projek.

Filed Under: Peraturan, Menguji konsep anda sejarah, Idea strategi perdagangan Tagged With: Backtest, had, penyebaran

  • 1
  • 2
  • 3
  • …
  • 10
  • Next Page »
Strategi perdagangan PERCUMA melalui e-mel

Tren

Maaf. Tiada data setakat.

Arkib

  • Peraturan
  • Bagaimana untuk kerja pasaran tukaran mata wang asing?
  • Petunjuk
  • MetaTrader Tips
  • MQL (untuk nerds)
  • NinjaTrader Tips
  • Pilum
  • QB Pro
  • Hentikan kehilangan wang
  • Menguji konsep anda sejarah
  • Idea strategi perdagangan
  • Uncategorized
  • Apa yang sedang berlaku di pasaran semasa?

Terjemahan


Strategi Trading Percuma

Dasar PrivasiRisk Disclosure

Hak cipta © 2023 OneStepRemoved.com, Inc. Hak Cipta Terpelihara.