|
|
| ||||
| Automated Trading Theory Discussion Hello all, Here's the next of my open discussion threads. This time it is about automated trading systems. I'll start off by saying I do believe automated trading systems can work, but with help. In time I think I will be able to hand out business cards that title me as a Foreign Exchange Currency Automated Trading Systems Manager. Sounds nice right? So my belief is that automated trading systems can work, but will need to be monitored and tweaked to maintain efficiency and reliability. This thread is to discuss why most automated systems fail however. It's to discuss their limitations and their abilities. Let me begin the discussion. A computer can not make discretionary decisions. In my opinion this should rule out many indicators that need much discretion in making a decision based on them. Essentially, eliminate any indicators that do not follow price discreetly. RSI, CCI, MACD, stochastics, fibs, bollinger bands, nearly all indicators should be thrown out. Why do I say to eliminate just about every indicator out there? They don't follow price. They can form divergences. They can reach levels where their mathematical formulas are maxed out, such as in RSI, and can give neutral signals of being overbought and oversold. I believe it is asking too much of a computer to decide what to do in these situations. Can a computer effectively recognize divergences? Chart patterns? It would add more to the confusion of the system when you must tell a computer by how much an indicator must have diverged before entering a trade. At what point does the divergence become effective in predicting a future market movement? If MACD diverges down for 2 periods is that a long enough divergence to base a decision? 5 periods? Perhaps only when it has diverged for 10 periods. There are many situations that must be accounted for. This is setting up for more possibilities for the system to fail. Many times we look at several indicators and decide to throw out one of them since another indicator is giving more reliable signals. Can a computer decide which of these indicators to use? I will assume that to program a computer to do so would be too much of a project to profficiently carry out a trading system. There would be too many "what if" situations where you're only setting up the system to fail. I will go so far as to say support/resistance levels should be thrown out of the equation. Get rid of fibs and other similar tools. There are plenty of times that prices explode through support/resistance levels easily. Even if resistance/support is confirmed as movement is stalled, the trend can continue through said levels. To program a computer to try and recognize support/resistance levels is just creating another "what if" situation for it to fail at. Can you correctly tell me why sometimes support/resistance levels are held while other times they mean nothing? If you can't do so with 100% accuracy, how can you tell that to a computer which has no thought process? Thus, I believe that the way to program a trading system is to keep it simple. The system needs something that follows price solely since that is what we are concerned with predicting. We need something a computer can make decisions off of such that the indicator does not get maxed out, follows price, doesn't diverge, and is indiscretionary. My conclusion is to use moving averages. They are based directly off of price, can not get maxed out, do not diverge, and computers can easily make decisions off of them. Many will say that this is too simple to base a trading strategy off of. In fact, it can be as complicated as you want, for yourself. Do you create MA's off of the open, high, low, or close? Are they weighted, simple, exponential, triangular, etc.? Do you create it off of price closing above/below a MA or when another MA crosses? What period do you set the MA for? What time frame? I think those options right there are enough for you to think about. The point is that you create the system such that all the decisions were made by you. The computer can easily tell you when a cross or price movement will have triggered the trade. It doesn't need to recognize chart patterns, divergences, etc.. It simply needs to monitor price. The difficulty in deciding has been done by you. |
| Sponsored Links |
| |
| ||||
| Re: Automated Trading Theory Discussion Now on to my thoughts on setting up the system. We want a system that works well in any market, ranging and trending. To this I reply, a market is never ranging and a market is never trending. It is simply moving. I say this because what chart are you looking at to say a currency is ranging or trending? It has been shown that price movement slows down during times when major markets are closed and then explodes in movement when they open. Looking at a 10 minute chart would show many periods of inactivity or tight movement which could be categorized as ranging. Take a step back to a 2 hour chart or even a daily chart. Does the chart still show a ranging market? Conversely, look at a 1 or 2 hour chart. Does the currency look like it's trending? If so, take a step back to a weekly or monthly chart. GBP/USD has been trading in between 1.4000 and 2.000 since 1986. I argue that prices are just moving up or down. That is all we should be concerned with. Many times I hear to exit a trade when the chart tells you to. This means don't set profit limits. If you exit with 10 pips be happy and don't force a trade to make 100. If a chart shows 100 pips then don't cut yourself short with 10 pips. I'm an economist so a lot of how I think comes down to efficiency. To make it clear I'll describe extremes. You don't want to trade a daily chart with a 100 MA cross because it may be too slow. You don't want to trade a 1 minute chart with a 5 MA because it is too fast. Both situations present inefficient situations. In the first you're missing many opportunities to maximize profits and in the latter you're presented with too many signals which don't allow you to ride a price movement. So my thoughts are that a chart needs to be used such that periods of inactivity are eliminated. If a price is "ranging" then its a large enough range that MA's can effectively keep up with price to play it just as equally as if it were "trending." This can be accomplished on many charts. We could use a 4 hour chart with a fast MA such as a weighted 5 MA. Would this give us too many whipsaws? We could also use a 30 minute with a 50 MA. Would this be too slow? That is where I believe the success of the system lies. Find a MA that is overall quick enough to give a signal early, but not slow enough that the price movement is missed. It's not just the MA either. For the chart, is a 2 hour too slow such that each new candle allows too much movement so that when the next candle forms and you enter a position the run is already over? I'll present the converse of a 30 minute chart being too quick to enter a position. |
| ||||
| Re: Automated Trading Theory Discussion Lastly, I'll discuss limits. In my previous post I discussed how we should not cut our winners short. How would the system handle whipsaws or drastic movement against us to protect ourselves from profit loss? One option I present is that the system is ALWAYS in the market. We want the chart that doesn't trade flat and is always going up or down. So if there is a cross to enter short we assume it will go down and when it crosses long we expect the market to continue going up. I assume this because why do we exit positions? We do so because we expect our profits to be maximized and further market movement is not strong. When we exit a long position its because we expect the market to reverse and head down. Would you not enter a short position if you trade a chart such that there is no sideways movement and only up or down? It doesn't make sense. The system is based that we enter a long only in the belief that the market is going to go down. So profits are protected by closing a position for only a few pips loss or even because of a whipsaw, and entering a new oppositie position. So if you entered long, protecting profits would involve a new position short. This allows us to maintain a position in the overall movement to make such losses insignificant. What if the MA is too slow then? First off, we should be managing the system to eliminate this problem in the first place. Secondly, well I'm not so sure about secondly. I don't have a definitive answer to this problem. Certain ideas running through my head right now include exiting positions before the MA cross if price retraces 50% from the position entered in a certain amount of time. I'm taking suggestions on this part as well. Although, again, a lot of this problem can be minimized by finding the most efficient chart time and MA settings to make profits most efficient. It's sort of a 2 steps forward, one step back approach. We want to position ourselves to ride the 100 pip movement while taking small losses of 5-10 pips to guarantee ourselves a front row seat on the big ride. Strategies could also include entering 2 lots. One that is exited with a profit of only a few pips to guarantee some pips. The other could be exited when the MA crosses or for an even close on the position. This would be difficult because of the typical problems associated with being "stopped out." Price can swing large enough to exit a trade, but not warrant the movement to reverse. I'll conclude by summing up the problems of the system. 1. There is no clear profit protecting strategy. What happens when price reverses before the MA's can clearly tell us that? How do we protect ourselves? 2. Somewhat the same problem is telling the computer when to enter a trade. The computer would likely need a candle to complete and confirm the cross before entering the trade. Unfortunately what happens if we're looking at a 2 hour chart and the movement happens in that two hours then stops? We would have entered at the peak of the run and are vulnerable to a drop in price. I believe the solutions are to finding the efficient chart intervals, and type of MA or MA's used. It needs US. We need to tell it what to do, not what it tells itself to do. Automated systems will need us. Ok. Those are my thoughts. What do you all think? Thanks in advance. Matt |
| ||||
| Re: Automated Trading Theory Discussion check out http://www.learncurrencytrading.com/...?t=1215&page=5 theres an auto trader that trades ok, but when it doesnt trade certain days of the week it does really well, theres also a random entry experiment. also check out http://championship.mql4.com/ i think you may be right with MA trading as its one of the easiest, next to price movement such as candle patterns. |
| ||||
| Re: Automated Trading Theory Discussion Not sure if I was really looking to pick up someone elses system. Unfortunately on the championship site I can't read a lot of the information there. It's such an international competition that many of the leading competitors are typing in different languages. I'd like to get more of a discussion the theories people have. I presented several on the use of MA's as the only tool in automated systems. I still haven't come up with a conclusive exit strategy for a system yet. One of the problems is protecting profits. If I set a trailing stop, many times it will be hit even though the overall trend hasn't reversed. So I could get stopped out while the move continues for another 80 pips as the chart suggests. Another problem I'm seeing is that many times a strong trend ensues where it is easy to make over 150-200 pips by trading the system. Then one candle closes the position as it has crossed the signal MA to open a new position in the opposite direction. The problem is the new candle has erased most of the profit made. A prime example would be on October 12th. A signal to buy was made in my setup on a 4 hour chart. The signal to open a position in the opposite direction was made on the 22nd. The system would have banked almost 100 pips, BUT it lost the opportunity to bank nearly 370 pips. That is an extreme instance, but the situation is still not uncommon. Banking only 10 pips when a max pip profit of 60 was possible. Like I mentioned, a trailing stop loss may not be good because of getting stopped out. I'm considering a system where a slower MA produces the initial signal and a faster MA produces the closing signal. I'm also considering have one MA that is significant on a chart, say 100. When a currency closes above the MA then enter a long position. Look for a certain amount of pips and exit the position no questions asked. I still don't like the idea of missing out on huge pip runs. Although, for longer charts such as 4 hour I could look for 100 pips. On a shorter chart such as 30 minute only look for 20 pips. One problem with that is many times a price will stall around a strong MA, thus closing above and below it many times to whipsaw several times. These situations must be considered. I still haven't found my ideal MA automated strategy. Any help please? TIA. Matt |
| ||||
| Re: Automated Trading Theory Discussion the links i quoted above were to show that it is just as important infact MORE important knowing where to get out rather than get in. in reference to your 3 MA are the below examples, we'll call them 1,2,3 for ease. 1 = signal line 2 = trade line 3 = trend line when 1 crosses below 2 and both are below 3, sell. when 1 crosses above 2 and both are below 3 close, but do not buy. OR 1 = signal line 2 = close line 3 = open line when 1 crosses below 3 sell. when 1 crosses above 2, close but do not buy. OR the vegas tunnel method (ive heard) is quite succesful (more info http://www.moneytec.com/forums/f14/t...vegas-19312/)i also found this while searching 50-period Moving Average Cross Strategy. finally an idea i toyed with a while ago was using, eg a 21EMA on the open and a 21EMA on the close. the idea is in a down trend the close is on average less than the open and vice versa but never got much past that idea, oh well. Last edited by Trevman; 10-23-06 at 05:45 PM. |
| ||||
| Re: Automated Trading Theory Discussion I think I've toyed with that idea as well. Say have a 50 MA. Then a 3 and 15 MA. Buy when the 15 MA is above the 50 and the 3 crosses above the 15. Close The position when it crosses to below the 15. Buy back in when it crosses back above the 15 MA. This would allow several entries and exits on the way to the top. The idea was only enter long positions if the price action is above the 50 MA, a bullish signal. Only enter short positions when the price action is below the 50 MA. I assume this is what the tunnel method is similar to? I wasn't a member of forexfactory so I could not download the files to read about it. It seems to have a huge following though. Matt |
| ||||
| Re: Automated Trading Theory Discussion By the way, I understand that exits are more important than entry. I was trying to find a system that was always in the market though. So one entry would be anothers exit. So if I found the right entry on one, I also found the right exit on the other. Is it even possible to automatically get the correct entry/exit? Perhaps only with discretion and a human face? I'm trying to find the alternative. I'd like the system to always be in, but perhaps it's not necessary. The system will probably have to have insurances or costs. If the system is always in, then we take on costs of losing profit maximization. If the system is not always in then we lose on some of the battle. For example, while it may have exited at a peak, it would not have taken a converse position as it falls 100 pips until it crosses the signal line and then a position is entered. For security we'd have to give up those 100 pips. We would have given those up anyways perhaps on the always in system? Also need to find the system that works well most of the time. Trying to satisfy every situation is impossible. In doing so we probably would require the computer to make decisions that only a human can make. Is the best system the most conservative then? Adding costs of lost potential pips to only gain the most certain? I still think MA's are the only filters we can add effectively to correctly follow price. What are some ways they can protect us? MA crosses may not be enough. Even with MA crosses, what about using price crossing an MA instead of an MA. Just throwing ideas out there. Matt |
| Sponsored Links |
| |
| ||||
| Re: Automated Trading Theory Discussion In my opinion: 1. If in your system you can lock the ranges in 1 hour chart 2. instruct your system not to look more than 1: 1.3 Risk/ Reward 3. use volatility parameters. 4. automate the whole thing. 5. use good money management. 6. You'll be good. apfx |
| ||||
| Re: Automated Trading Theory Discussion apfx, What do you mean by "lock in the ranges in a 1 hour chart?" |
| ||||
| Re: Automated Trading Theory Discussion Here's a tip: MA cross systems don't work Save your time and spend it on something else. The MA systems always look good on the last 1,2 or 3 months you test them, but overall they will generate more losses than winnings. Try to design something that is based on patterns recognition around key levels. Better results are guaranteed! Astro |
| ||||
| Re: Automated Trading Theory Discussion You so sure about that astro? Try setting up 4 hour chart with 2 MA's. Make both of them 40 WMA, but one off the close and one off the open. 40 may not be the best period, but it's just an example. That's a simple MA cross. Proper money and risk management could make the profitable. Do you agree? Perhaps entering with multiple lots and exiting at progressive profits, such as 20, 50, 70, and finally when a SL or new signal is generated. I would appreciate if you could go into more detail about pattern recognition around key levels though. I still need convincing that a computer could be programmed to correctly recognize a pattern of all variations. The computer can easily tell when one MA is greater than another. Patterns are more than just 1 > 0. Matt |
| ||||
| Re: Automated Trading Theory Discussion Do a little research on the Technical Trading forum. You will find dozens of MA cross systems threads. 21emas, 34smas, 100wmas etc etc. They all work sometimes. The problem is that when they fail, they will eat up all your profits. Think about it for a moment. If trading was that easy why is everybody still looking for a system? Why wasn't it found yet? How come nobody discovered your 40 wma system yet? Entering multiple lots can make things only worse! You are talking about risk management? Tripling the amount of lots is tripling the risk!!! If trading one lot is risking 2% of the account for example, then entering 3 lots is risking 6%!!! As to pattern recognition, I think there are some charting software out there that can identify 1-2-3 patterns which are one of my favourite patterns, especially when they appear around key levels (round numbers, fib level, etc). It's very hard to program such a thing, but your brain can do it quite easily. By the way, here's a thought for you: We all know that MA is lagging, which means that by the time you see the cross, price has already moved quite a distance. Why not use chart patterns in order to identify the trend at the beginning? Many trends start after a reversal (1-2-3 for example). Enter when you see one! So now, when price crosses your MA then you know that you're on the right track and you are already in! Check my attached chart from yesterday: during asian session, price has formed a small 1-2-3 top (which was, to be honest, not a typical one) and reversed. There was an entry opportunity right after the UK market opened (on the 15 min chart), so I shorted @ 8790. Look where you would go short using the MA cross: 8730! that's 60 pips away!!! You're right. It's not as easy as "if price > ma then...". Recognising the patterns is very discretionary (in this example many would not classify it as a 1-2-3 top) but it gives you the advantage of getting in earlier and catching a larger portion of the move with stops at a logically better place! Hope this helps Astro |
| ||||
| Re: Automated Trading Theory Discussion one more final MA system ive just found http://www.adamforex.com/ in reference to astros comments, i think price action may have some indication as to direction but i don't think it is as efficient as it is in the stock market (could be wrong) |
| ||||
| Re: Automated Trading Theory Discussion Quote:
3 lots can be as big or small as you want them to be. I know GFT allows for mini 10K lot sizes even in standard accounts. You have to ask to do this and fax them signed papers, which I've done. I wanted the advanced charting options while still controlling a mini account. Only required a larger deposit. So 3 lots do not have to be 6% of your account. Even so, is it really 3 times the risk? It's about money management. The thread on the other forum describes it in much better detail, but I'll try to sum it up quickly here. Open a position with 3 lots. Have a hard stop loss say 20 pips from your position. All 3 lots are closed if it hits 20 pips, therefore -60 pips total. Say your play runs however and you take profits at 30 and 50 pips. Then you let the last lot run till there is a signal to reverse position, i.e. a MA cross, or it hits a stop at +30 pips which would the currency moves to your +50 position. The sequence of possible scenerios begins with -60 pips if the play fails. Then -10 if it gets to the first lot profit of 30 and drops to your hard loss. Then +110 if it hits the 30 and 50 profit taking areas and drops to the new stop loss of +30 pips. Last situation is 80 + X where X is an amount where a new MA cross signals the end of the run at the top of the run. It could be 30 pips, it could be 500 pips. It depends on the chart time frame and length of run. Disregard the best case scenerio and focus on the other 3. If the currency does what you say just once and you make 110 pips it already makes up for one trade that hit -60 and another that banks only -10. 110 vs. -70. You're still in the profit of 40 pips. If you hit the worst case scenerio twice then yes it will lose you 10 pips if you only hit the possible positive scenerio just once. -120 vs 110. What you'd be playing off of though is how often do you think your system would predict good situations? The cross has to be significant to mean the trend is changing. What if your system is correct in picking the +110 scenerio 65% of the time, -60 20% of the time, -10 10% of the time, and a best case scenerio where you make 100 pips off the last lot for a total of a +180 on the play only 5% of the time. Your expected pip P/L out of 100 trades would be +6750 pips. Are those percentage numbers unreasonable? 70% win, 30% loss. Lets change the percentage numbers. Let's say +110 happens 40%, +180 is still just 5%, -60 is 40% and -10 is 15. The expected pip P/L out of 100 total trades is still +2750. In this case you're expecting to be right only 45% of the time and wrong 55% of the time. Would you agree those are terrible numbers to be right? This also assumes that the best case scenerio is capped at 180. It could also find plays for 280, 380, if you play a 4 hour chart and it trends well. Entering 3 lots, using good money management, is just another tactic at maximizing profits. 100 trades would take a long time to develop on a 4 hour chart however. Even using all the majors it could take weeks. 2750 pips may not be enough for most people and the system would be dropped. This is why I started the thread to try and find the efficient MA and chart time. Perhaps looking at a 2 hour chart instead of a 4 hour would present the same pip potential, but more signals to make it more efficient. Quote:
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anyone with Desktop Market Analysis? | Fasdraw | Beginners Forum | 16 | 09-07-04 06:25 AM |