Building Trading Systems Using Automatic Code Generation

Monday, February 28, 2011

As more and more traders have moved to auto-negotiate, has increased its interest in systematic trading strategies. While some traders develop their own trading strategies, the steep learning curve required to develop and implement a trading system is a barrier for many traders. Newly developed solution for this problem is to use the computer algorithms to generate automatic trading system code. The objective of this approach is to automate many of the steps in the traditional process of deploying trading systems.

Automatic code generation software for building trading systems based on frequently in genetic programming (GP), which belongs to a class of techniques called evolutionary algorithms. Evolutionary algorithms and GP especially developed by researchers in artificial intelligence-based biological concepts and evolution. An algorithm GP evolve a population of trading strategies from an initial population of members is generated randomly. Members of the population are competing on the basis of their relevance. Craftsman members selected as parents to produce a new State of the population, which replaces weaker (less relevant) State.

Both parents are combined by using a technique called crossover, which mimics the genetic crossover in biological reproduction. In passing, part of a genome from parent combined with part of the other parent of the genome for the production of the genome of the child. For trading system generation, genomes can represent different elements of strategic negotiation, including various technical indicators, such as moving averages, Stochastic, and so forth. different types of input and output commands and logical conditions for entering and exiting the market.

Other members of the population who produced through mutation, is a member of the population are randomly selected to be modified by changing parts of the genome. Through breeding, normally, a majority (e.g., 90%) the new members of the population are produced with others produced by mutation.

During successive generations of reproduction, the overall fitness of the population tends to grow. The eligibility is based on a set of objectives that rank or score builds each strategy. Examples of build targets include various performance measures, such as net profit fall, winners, profit factor, and so forth. They can be declared as minimum requirements, such as a profit rate of at least 2.0, a.k.a. objectives to maximize, maximizing net profits. If there are multiple build targets, the weighted average can be used for a metric of fitness. The process is interrupted after some number of generations, or the suitability of stops increase. The solution is generally taken as the fittest State population occurs, or the entire population can be sorted by fitness and saved for further review.

Because genetic programming is a type of optimization over-fitting is a concern. This is usually treated using out-of-sample test, in which data are not used to evaluate strategies during the construction phase is used to test them. Essentially, each candidate strategy constructed during the manufacturing process is a case that is either supported or refuted by the evaluation and further supported or refuted the results out-of-sample.

There are several advantages to build commercial systems through automatic code generation. Process GP enables synthesis strategies given only a high-level group of render targets. The algorithm does the rest. This reduces the need for detailed knowledge of technical indicators and design principles. Also, the GP is impartial. That most traders have developed calibrations for or against specific indicators and/or trading logic, GP directed only by what works. In addition, incorporating the proper commercial rule semantics, can be designed to produce reasonable process GP trade rules correctly and free of error code. In many cases, the procedure shall take effect not GP is only unique but non-obvious. These hidden gems would be almost impossible to find any other way. Finally, automate the manufacturing process, the time it takes to develop a sustainable strategy may be reduced from weeks or months in a matter of minutes in some cases, depending on the length of the input file, and other settings build values.

About the author:

Michael Fleming has a degree of Phd in mechanical engineering with a minor in computer science and has negotiated and studying the financial markets since 1994. To learn how to build profitable trading strategies for virtually any market and time frame, please visit Adaptrade Software (http://www.adaptrade.com/Builder/).

(c) Copyright-Adaptrade software. All rights reserved.

Article source: http://EzineArticles.com/?expert=Michael_R_Bryant

Michael R Bryant - EzineArticles Expert Author

View the original article here

0 comments:

Post a Comment