.
Showing posts with label experiment. Show all posts
Showing posts with label experiment. Show all posts

Thursday, May 5, 2016

Five Common Mistakes in System Optimization ~ forex trading jobs in new york

0

I believe that one of the most important aspects of system design and use is system optimization. This step in system design is vital since it allows us to adjust a given trading system so that it can more efficiently exploit the market inefficiency it is based on. When done correctly, the optimization of a trading system gives you a more profitable version of your logic with better profit and risk targets in long term performance and a very robust strategy which is not likely to fail even if market conditions change significantly. When done incorrectly, optimization leads to curve-fitted systems which are "fit" to test profitably in the past but fail to profit in the same way in the future. What is the difference between correct and incorrect optimization ? On todays post I will talk to you about this very important aspect of system design and what mistakes system designers and traders usually make that make their optimizations invalid and the resulting trading system useless.

In the end, there is a good way and a bad way to optimize a strategy and definitely all systems can be adequately optimized if certain precautions are taken into account so that the most important "curve-fitting pitfalls" are avoided. I will now describe the five most common and dangerous mistakes made when optimizing and I will attempt to give some solutions to these very usual and sadly lethal blows to long term profitability.

1. Optimization period length. I think that the most common mistake when doing optimization is -without a doubt- the length of the testing period used to optimize. Strictly speaking, optimizations are not bound to be meaningful fit they are done within periods of less than 5 years given that smaller periods of time are not statistically relevant according to long term changes in market volatility. So if you want to optimize your system and avoid curve fitting, use a period of at least five years. Using a smaller period will most likely "fit" your strategy to very specific market conditions and will make it unable to perform correctly as the market changes.

2. Reliability of the simulations. It is very important to note that in order for optimizations to be valid, simulations need to be valid. Optimizing a scalper or a similar strategy which cannot be simulated accurately does not make any sense since the trading results - and thus the optimization results - are not going to represent live testing to any accurate extent. Designing systems that explicitely control one minute bar opening and that use adequate profit and risk targets - large enough to avoid interpolation errors - is critical for adequate optimization.

3. Ignoring the results surroundings. One of the most important aspects of system optimization is to take into account the results "around" the most profitable result you found. For example, if the optimal value for an indicator period for your strategy is 20 when doing a 5 year optimization what happens when the indicator value is changes to 19 or 21, what about 18 or 22 ? It is very important to consider the surrounding since they give you an idea of the possible changes of profitability you will get if the market changes enough so that your "optimal" settings are no longer that good. If your system is very profitable with 20 and then loses 70% of its profitability with 19, then the strategy is not robust enough and it IS bound to fail in the future as market conditions may drift - even if only slightly - from your set results.

4. Fine grid optimizations. Another common problem with optimizations is the use of very fine grids when optimizting. In general, the coarser the optimization the less risk there is to curve fit a strategy since the fitting is done in a "lose way" and results that may over estimate profits and underestimate future draw downs are also avoided to a good extent. In general you should not optimize to any grid lower than 2% and better 5% so if you are doing an optimization of a strategys SL from 20 to 200 do not use steps smaller than 4 to accomplish this.
--
5. Reoptimizing after Optimizing. When you optimize a parameter for given strategy, then optimize another one and then reoptimize the first one to the new profitable results you are most likely doing a sort of "fine grid" optimization in the sense that you are "fine tuning" the first variable to the seconds "best results". This is similar to doing a fully correlated optimization (although less computationally intensive) but it has similar dangers in the sense that increased correlation and probably further curve fitting is introduced. My advice here is to only optimize variables from a first set of parameters in order and avoid reoptimization of a variable after it has been optimized once.

As you see, these common mistakes in optimization are made by most people who want to improve their automated trading systems and all of them are bound to generate very good results using optimizations that are possibly going to be an over estimation of profit and underestimation of draw down in the long term. In a future post I will give you a diagram for optimizations explaining a little bit how I optimize my systems and what "general procedures" I follow so that my systems end up being robust, profitable and with a high like hood of maintaining their risk and draw down characteristics in the long term.

If you would like to learn more about my journey in automated trading and how you too can start to design and program your own likely long term profitable strategies please consider buying my ebook on automated trading or joining Asirikuy to receive all ebook purchase benefits, weekly updates, check the live accounts I am running with several expert advisors and get in the road towards long term success in the forex market using automated trading systems. I hope you enjoyed the article !

forex trading jobs in new york

Read more

Friday, April 15, 2016

Intelligent Trading Answering Every What if ~ forex trading journal spreadsheet

0

I believe that the worst characteristic a person can have as a trader is unfounded optimism. When I started trading I possesed this very undesirable character trait and it took me a long time to get rid of this pest that would keep profits away from my account. It is very easy for traders -especially new ones - to get lured into believing simulations or past live testing results and jump into systems with high risks believing that a certain scenario will not happen. I cannot tell you how big a mistake it is to ignore every possibility and to act on faith and hope. Time after time I have seen traders do this and get burned in the process with their hopes in one hand and their empty accounts on the other. On todays post I want to talk to you about the great importance of the "What ifs" of trading and why it is important for you to answer every possible "what if" question you can ask until you are satisfied with every answer.

One of the most vital things when you want to succeed at something in life is definitely preparation and trading is simply not the exception to this rule. Often people will venture into trading manual or automated trading systems with little preparation and without a good plan for every possible outcome that can arise. The truth is that most people who attempt to succeed at trading with expert advisors dont even have a clue of what they do if certain scenarios arise and in the worst cases they consider some scenarios "extremely unlikely" or "impossible to happen".

I remember clearly how a person told me a few years ago that it was "almost impossible" that his Martingale system would get 7 consecutive loses since such a market situation was simply extremely rare and such a case would never appear. I told him that everytime a trade is entered the possibility to lose exists but he continued to tell me that it wouldnt and that I was simply "not understanding" the nature of his system. The years passed and his system did trade profitably for a while and after a year or so of trading it took 8 consecutive loses and wiped his account clean. It was not the fact that the consecutive loses happened what killed my friends account, it was the obvious lack of preparation for such a scenario.

This happens all the time. People trade systems believing that a certain "what if" question does not deserve an answer because it is simply "extremely unlikely" when the truth is that the mere possibility of it happening should make a trader have a plan against it. If you are trading a system believing that A or B or C wont happen then you are setting up yourself for disaster. Every unanswered "what if" question is a void in your system, a void that will one day be filled, catching you completely unprepared for the consequences.

I always answer any possible question about a trading system - especially losing situations - so that I can avoid having a situation where I am simply caught with no answer. What if system A has 6 consecutive loses ? I will suffer an X draw down and the system will be Y% away from a worst-case scenario. What if a draw down level of X% is reached ? I will stop trading the system since it is below the worst-case scenario which is double the max draw down infered from reliable simulation results, etc. One of the things I have found helps me keep up with my systems and maintain my success as a trader is to ALWAYS have a plan. The most important part of doing this is to answer EVERY "What if" question you can think about. What if you have 5 onsecutive loses ? What if you have a 2 year draw down ? What if... What if ?

As you see, one of the most important parts of success in trading is nothing more than preparation. Knowing the answer to every possible question about your system and having a plan for every possible trading outcome is vital for you to achieve success. There cannot be a lethal "What if" question. If there is any of these questions that ends in "I would lose my account" then there is something inherently wrong with your trading strategy, as a safety every system must be able to give signals of "being too risky and not worth trading" before reaching a wipeout status. For example, a system with a worst-case scenario of 30% will be stopped at this equity level, preserving the other 70%, while a system that wipes the account at 5 consecutive loses simply has no such "time" to warn its user about a problem before it is already to late. Hope for the best. Prepare for the worst.

Are you answering all your "What if" questions ? Having an answer to all of them and having a plan for every draw down and profit outcome is vital for success, that is my humble advice. If you would like to learn more about automated trading and how you too can learn to design systems based on sound trading tactics please consider buying my ebook on automated trading or joining Asirikuy to receive all ebook purchase benefits, weekly updates, check the live accounts I am running with several expert advisors and get in the road towards long term success in the forex market using automated trading systems. I hope you enjoyed the article !

forex trading journal spreadsheet

Read more

Wednesday, April 6, 2016

Watukushay FE An Intra Instrument Experiment Part No 1 ~ forex trading journal excel

0

One of the best things about the new metatrader 5 platform - as I mentioned on a previous post - is the extreme quickness in which backtesting and optimizations can be done. It is remarkable how I can now do a 200 run optimization in less than an hour while previously it took more than 5 or 6 hours and even 24-48 for certain trading systems. After porting Watukushay FE and enjoying this very fast simulations capability I decided that it was time to try a multi-instrument approach for this freely available trading system. Certainly I had donde some experiments before on the USD/CHF and the GBP/USD but I had never been able to try as many combinations and settings as I wanted to due to the inherent slowness of MQL4 based backtesting. On today and tomorrows post I want to show you some of the results of my studies on several currency pairs for Watukushay FE and how these results show us a very wide and unique perspective about the Watukushay FE trading system. For those of you who do not know anything about Watukushay FE it is a freely available trading system I coded available at http://watukushayfe.blogspot.com.

It is important to note here that I coded Watukushay FE based solely on my observations of the RSI and trend behavior on the EUR/USD and I had never thought about making this expert trade on other instruments when I first designed and implemented its logic. It is a fallacy that a "good system" should work on "all" currency pairs as it tackles a "vital aspect of market psychology" since different pairs have different trading makeups and volumes which make their particular price action very different. Pairs that people may regard as similar such as the EUR/USD and the USD/CHF are in fact tremendously different with many systems that work on the EUR/USD failing to work on the USD/CHF and vice versa. Some of the reasons why this happens include bank intervention, liquidity, volume, trade deficit difference, etc.

However it is always interesting to look at the performance of systems on other currency pairs since it brings a hint about the differences between instruments, showing us why a system may work on one and not on another. Understanding and knowing the true nature of these differences allows us to develop systems that are "adapted" to each different currency pairs trading nature. An analysis of these differences also allows us to change the design of a system- particularly its exit logic- to better exploit inefficiencies found in a particular instrument.

The first think I did with Watukushay FE was to run the "standard" settings derived from very coarse optimizations on the EUR/USD on the GBP/USD, USD/CHF, AUD/USD and USD/CAD (10 year backtests on Metatrader 5). The results are indeed good -as shown in the graphs below- in the sense that the system is profitable in the long term on all of these currency pairs, however it is important to say here that profitability is much lower than on the EUR/USD with most of these pairs reaching only a compounded yearly profit to maximum draw down ratio of 1:3 to 1:5. This shows us that the system tackles a market inefficiency that is present to a certain extent on all these currency pairs but unfavorable conditions are much more frequent than on the EUR/USD.
--
It is evident when comparing the different equity curves that the smoothest of them is the EUR/USD which - of course - achieves the best results. We see that Watukushay FE has smooth periods of profit on most of these instruments but unprofitable periods are simply very destructive for the other pairs while they are only mild for the EUR/USD. Even tough the equity curves seem to show us that all instruments could be traded profitably the potential reward for instruments other than the EUR/USD is simply not enough to compensate for the risk taken. The deeper draw down periods also make Watukushay FE on other currency pairs far more difficult to trade also limiting risk escalation to a great extent.

However it is clear that some very interesting questions arise. Is it possible to do coarse optimizations on other pairs to find more EUR/USD-like results ? It is possible to implement small modification to the logic that improve the trading technique significantly ? Are there any other instruments worth trading for Watukushay FE besides the EUR/USD ? I will tray to address some of these questions on tomorrows post. If you would like to learn more about Watukushay FE and all the Watukushay Project experts please consider buying my ebook on automated trading or joining Asirikuy to receive all ebook purchase benefits, weekly updates, check the live accounts I am running with several expert advisors and get in the road towards long term success in the forex market using automated trading systems. I hope you enjoyed the article !

forex trading journal excel

Read more

Saturday, March 19, 2016

Watukushay FE An Intra Instrument Experiment Part No 2 ~ forex trading jobs miami

0

On yesterdays post we talked about Watukushay FE and the first essays to test the intra-instrument compatibility of this trading system. We arrived at some good results which showed that Watukushay FE did achieve long term profitability on all of these instruments while the yearly compounded profit to maximum draw down ratio was always much lower than for the EUR/USD. Since I left yesterdays post with some questions regarding the optimization and modification of Watukushay FE to improve results on these currency pairs today I will dedicate this post to the answering of these questions. I will talk to you about the optimizations I have done on the Watukushay FE system on different currency pairs, what their results have been and what they tell us about the inefficiency exploited by Watukushay FE and its potential to be used on several different instruments, effectively diversifying the usage of this trading strategy.

Many of you may be thinking that the results shared yesterday point to the fact that just a few coarse optimizations would lead us to a gigantic improvement in performance which would leave us with a multi-currency Watukushay FE system, something which is very reasonable to assume given the fact that systems usually improve significantly with only moderate optimization. However what reality shows us is somewhat different. The Watukushay FE trading system fails to improve significantly on almost all trading instruments despite coarse or even finer optimization which attempt to fine-tune the systems variables to each currency pair.

For example, the GBP/USD and USD/CHF achieve compunded yearly profit to maximum draw down ratios of about 1:5 and the usage of even fine grid optimizations is not able to bring this down to a 1:3 level. When we examine the trading characteristics of this system on these pairs we see that the overall market inefficiency exploited by the EA disappears for significant periods of time in which the instruments consolidate or experience wide ranges that are not at all favorable for Watukushay FE. It becomes obvious that the system is simply not able to cut loses short on these currency pairs with its present logic. However a few ideas have come to my mind to "adapt" Watukushay FE to the trading mechanics of these pairs and improve its trading characteristics, something which I will probably leave for a future post.

Perhaps the most important achievement of Watukushay FE comes when you analyze its results on the AUD/USD and USD/CAD instruments. With only very coarse optimizations on these currency pairs we are able to obtain marked improvements that show us that -for example- in the case of the AUD/USD only a modification of the RSI period grants a significant improvement of the compounded yearly profit to maximum draw down ratio from 1:5 to almost 2:1 in a ten year run. This shows that the modification of only one variable is enough to fit a system to another currency pair when the overall inefficiency has a similar presence than in the initial instrument it was designed for. Below you can see the backtesting results for the AUD/USD before an after an RSI period change, leaving all other variables -including SL and TP - intact.
-
-
The USD/CAD also improves its results incredibly only after small RSI period changes but results are improved much more significantly after the TP and SL are optimized in a coarse manner changing the risk to reward ratio of the SL and TP to almost 1:2, this in turn changes the compounded average yearly return to maximum draw down ratio to a little bit more than 1:1 from a previous value - before optimization- of nearly 1:4. The images below show you how the overall results for this currency pair also change as a function of this very limited optimization which is most likely not going to introduce any curve fitting into the system due to its coarse nature and the overall adaptive character of the trading system.
--
After doing this analysis of Watukushay FE it is also worth noting that the optimization of this EA are heavily populated by profitable results showing you that future deviations from optimal values are not going to drastically change the risk and profit characteristics of this trading system. We have also learned that when the inefficiency is present to a good extent only minor optimizations are needed to greatly increase performance while very fine and extensive runs -when the inefficiency is absent a significant amount of time- bring us only marginal improvement to pre-optimization results.

From the above results it seems that Watukushay FE will be exploring Canada and Australia soon enough :o) Probably during the next few weeks I will release EA modifications and set files on the experts website so that people can start doing their own evaluations and tests on these currency pairs. A couple of live accounts to test these new pairs will also be added. Right now I am also exploring logic modifications to trade on the GBP/USD and USD/CHF, results I will be sharing with you once they are ready. It seems that Watukushay FE likes more instruments than what I originally thought :o)

If you would like to learn more about Watukushay FE and how you too can build your own long term profitable system based on sound trading tactics please consider buying my ebook on automated trading or joining Asirikuy to receive all ebook purchase benefits, weekly updates, check the live accounts I am running with several expert advisors and get in the road towards long term success in the forex market using automated trading systems. I hope you enjoyed the article !

forex trading jobs miami

Read more

 
Powered by Blogger