Thursday, January 29, 2009

How to design a trading system

The structure of the trading system

The structure of the trading system needs to focus on the behavior of the market, specifically on the movement of the trend. To do this you need to first understand the components and life-cycle trend. Taking into account the previously described behavior stockbroker, and hence the movement of prices, we can assume that at any moment the markets are composed of three trends. The first trend is the longest, consisting of several months, should be used to determine the direction of the market, and to which you want to open positions. The second movement of the observed market correction could be a trend, which will consist of a few days, and which is determined by, the use of more sensitive indicators. The last movement of the market a little bit like a lateral trend, which is among the correction and the continuation of the basic trend is the short-term price movements in one or two days, used for precise input. For the exit should be used as a short-term movement, but in this case, the basic trend is not replaced by a correction, but a new trend in the opposite direction. Following such an understanding of the market, to open a position is necessary to use two or more trend indicator, signals the opening of the position and oscillator or trend indicator, and to close the position. A more detailed description of these indicators is disclosed below.

Rules for the opening position

Quite an interesting analogy hold the author of the book "Computer analysis of futures markets," Le Beau and Lucas between the entrance to the market and firing a handgun at a target: at first sight it is necessary (to find a direction). Then vzvesti trigger (ready), and then gently press the trigger (enter the market). In fact, the same two or even three-tiered process otyskivaniya happening at the moment of entering the market. In the first instance by using less sensitive indicator of trends, with a large order of the system determines the main direction of movement of the market, or the main trend. Then, after a long-term direction of the market has been defined, the next task to find the medium ¾ indicator, which gives a series of signals inside the long-term trend. These signals can occur at the end of the main trend correction. Also, a series of signals will be needed, because the first interim signal indicator medium arise before long-term indicator will allow the system to trade in that direction. It must be borne in mind a clear sequence of signals from different sensitivity of the indicators according to which the short-term signals arise first, then medium and finally, the long-term signals. By the time will determine the long-term trend, the first intermediate and short-term signals are already there and the system will be more important to get re-intermediate and short-term signals a few times within the long-term trend.

There is a relatively large set of useful intermediate indicators, which can be single or double moving averages, breakthroughs channel signals parabolic system, the regression line trends. Using the system, the importance of a separate intermediate indicator, usually suppressed in the combined system, the fact that the system is built around a combination of indicators that could in the worst case of conflict with each other. In such a situation, it is important to choose an indicator that the trader would have felt the trust and confidence which gave a series of short signals during prolonged trend.

Open positions run market activity, followed by the intermediate signal. In addition, there is the choice of launching mechanism. For example, you can place the entry point at the new peak or trough movement or select a point of entering the borders of today's peak or depression, having a warrant. Some traders are being very cautious, decided to await the entrance to a series of peaks or troughs in the desired direction, but such tactics lead to a loss of potential profit. If you trust the first signal system, the input can be selected at the first closing in the right direction, it is joining the program allows for the exchange complex MetaStock, on the basis of which the third part of the work will be carried out testing and optimization of the trading system. The important thing to remember here is that it is necessary that the price action confirmed the signals the rest of the indicators system and allowed the market to the run entering the system. Most good traders profit immediately after the start of the system, because their systems tend to behave synchronously with all three trends from the beginning.

Terms of closing the position

Once the rules were designed for the opening of the position should be identified and with the rules of entry, as defined in the view of many traders, a more awkward. The problem is that would be able to correctly identify the end of the main trend or the beginning of correction, furthermore, should be able to retain control over when they receive a small profit or loss.

It should be noted that the opening of positions on a signal system is not always profitable, since the trend indicators can make mistakes and, in this case should be determined to stop the signals that the system will close the position. Losses in the footsteps of the signals are needed to avoid catastrophic losses. Any experienced trader uses stop signals implemented protective suspension, and traders who speculate in the markets of non-stop losses, are doomed to failure, and the only thing that can change, so this is the time for which they razoryatsya. As correctly noted the authors above-mentioned book: stop loss is similar to the contributions to the insurance policy and should be viewed as a necessary fee for the business.

When trade takes place in the anticipated direction, the trader is faced with a choice between obtaining a rapid but steady income, or the continuation of trade in the hope of more gains. What a trader in such a situation? Perhaps one of the exits can be a floating suspension, while others may yield a oscillators whose ability to guess correct the trend and turning points are described below.

Using a stop signal

There are five types of the most popular stop signals used by the creators of trading systems:

1. The initial stop signal (max loss stop): The signal, which the filing when the advance of the percent loss from the original account or a fixed amount of funds in the open position.

2. "Floating" stop signal (trailing stop). The position is closed if the predetermined amount of current profits is lost, that is a stop signal to the market, and when profits decreased by a certain percentage or a specific value of a closed position. Floating stop signal relates to sledyaschim suspension.

3. Removing the profit (profit target stop): This closes the position of the stop signal, when a certain amount of profits that were originally defined by the trader.

4. The level of break-even (breakeven stop). Allows the user to determine the level of current income, and when the market exceeded this level, the price of opening the position of becoming a stop signal to the exit. So the trader actually insure their investment.

5. The lack of activity ¾ stop signals in time (inactivity stop). This type of stop signal starts when the market is unable to provide a certain percentage of income towards the open position during the designated period.

In addition to choosing the type of suspension should solve the problem of the value of suspension. Stop losses in the general case are divided into two categories: those near and far. Ideal same stop should be one of those that are located far enough to just go abroad or accidental, from a technical point of view, meaningless price movements, and at the same time be close enough for comfortable control risks in trade. In fact, the ideal goal of the suspension are mutually exclusive, which forced the search to bring to a halt, which are either too close or too far. It should consider all the pros and cons of each option.

Close stops offer the obvious advantage of small losses at each position and moderate overall risk to the portfolio of open bidding. However, this process leads to a weakening of the financial and psychological discomfort experienced by many of the stops on the bid, which could be very profitable if the original position allowed to go their way. Traders can avoid this problem by simply defining a convenient method of re-entering, which will return them to the market in the original direction just in time to catch most of the remainder of potential income. But, as always, a compromise. This logical step to return to the market will inevitably lead to increased activity of the system, which significantly increases the cost of transaction costs and slippage.

The system, which uses near-stop, face a disadvantage, as expressed in the increased percentage of loss-making trades, but will receive the privilege of a lower average losses. The system was far from the stop, would have a tendency to increase the winning bid per cent in relation to the system with close stops. Remote stop is not faced with the challenge of re-entering, and keeps control of the slip and the cost of fees. This picture dovershaetsya significantly increased the average losses on trade and significantly increasing overall risk to the portfolio. It seems that there is the choice of the lesser of two evils, or an acceptable compromise between the equally unpleasant possibilities.

On the basis of technical indicators can be developed is not perfect but still acceptable procedure, which will include the basic principle of the job stops, avoiding most of the problems associated with random fluctuations in prices. As one possible approach would be to use the standard deviation of prices from moving average and then place the stop a few steps away from the standard deviation of the rolling average.

As a practical matter, and perhaps as an effective alternative to complex approach, the standard deviation could be used by the average daily price range as the minimum distance for the job stops, which will help avoid most of the small fluctuations in prices, leading to derganiyam. To do this, you can simply install the 5-day or 10-day moving average of peaks and troughs, and then locate the source stopping at a minimum distance, which will be equal to the distance between the moving averages. As long as the market moves favorably, too, can stop coordinated this distance. This technique will help to avoid what is called "random fluctuations in the course of the day" because it keeps stopping far enough to avoid the daily fluctuations. In order to stop the position will require an abnormal fluctuation during the day or a series of hostile daily price changes. Maybe this method does not provide an ideal stop, but it can be very useful in the sense of finding the minimum distance to stop, to avoid unnecessary dergany.

Other possibilities job stops that fit the definition of ideal suspensions are a point on the graph, such as levels of support and resistance, peaks and troughs of recent days, parabolic stop and possible envelopes or trendline, but such methods as the resistance levels and virtually no support to programming and thus nerealizuemy as a trading system.

The preferred exit strategy

There are some of the most popular exit strategy. One ¾ method of joining and keep the position for more revenue. This method is more like investing than in the medium-term trade and working for long periods. The method of re-entry and retention is more appropriate so as to traders who are not opposed to large losses and painful Losing periods, which would deprive of courage, and very costly in the short trends. This method is suitable for trade only their own considerable capital and requires a great deal of experience, confidence and discipline, and most suitable large pension and mutual funds. The main component of the risk of this method for high-income pursuits is that a single trader almost inevitably ends in mid-output period of severe losses. The vast majority of traders can not withstand the kind of high income, they have missed, and they are psychologically unable to withstand the inevitable loss, regardless of how well they were trained or educated. At the same time, large mutual and pension funds in accordance with their strategy may prove to be more flexible.

Less popular exit strategy is a method aiming exit when traders closed, reaching pre-determined price targets. However, each strategy has its reverse side. In this case, there are some fundamental problems associated with the possibility of predicting certain levels with a certain degree of accuracy. Everyone can point out some obvious support and resistance levels, which could make the trend waver, but with the exception of the overall analysis, even doubtful that a more precise aiming in fact a real possibility. No one knows where the market is unlikely to be able to predict with any accuracy.

Trader using Sighting exits, gets the advantage in that he is not faced with the problem of monitoring large unrealized losses of revenue. On the other hand, it will definitely suffer from the frustration that many prices have not reached the predicted targets. Trader will also need to learn to withstand disturbances arising from the supervision of how received less income, while it can get more if there is a little more patience.

Another popular strategy ¾ a compromise that provides the advantage of rapid income and leave at the same time, the opportunity for more revenue. The essence lies in the fact that a trader uses a dual trading account and receive income from one position to priberezhennoy price targets, and the second position allows you to be open in the hope of getting a big win. This method requires a large capital investment, compared with a trade account, but it has obvious advantages in the event of traffic ugadannogo trend. Quick income of a single contract would always give more freedom to the second, and you can afford to be very patient. To deposit one win, one can give the position a second time to avoid the premature shutdown.

In addition to the benefits of this strategy, there are negative aspects. The apparent lack of a dual strategy is that if the position is open in the wrong direction, the losses will be at two positions instead of one, with the usual strategy. The dual strategy can be an excellent choice as an exit strategy only if the trader is a very good entry strategy, and is convinced that most of the trading to start in the right direction. But before you start using this strategy, make sure both would lead to such a strategy on historical data, especially when the entry strategy is not working properly.

Another method of entry, which could be applicable to one account, gives the very beginning of a space on the market in a broad suspension until it becomes perekuplennym or not to provide an unusually large movement in a predictable way. This is followed by a stop to narrow income in order to protect a large portion of the profits, but at the same time be able to generate revenue and further, if the market will continue to move in the right direction.

As an indicator of signaliziruyuschego perekuplennogo market can be used shestiperiodny index of the relative strength of the signal which will have to make the stop. For example, when the relative strength of the indicator rises above 75, then drops to 10 or more points, should raise the stop at the minimum price for the last three trading days and to adjust them to lift the market. Often, this process allows the market to remain strong in the throws and is very close to the top.

The use of oscillators and trend indicators

Consider a trend indicators and oscillators to guess the date of completion of the trend or the beginning of correction. As we know all the technical trend indicators are trend. Needless to build, be it moving averages, or grid system, said that they were already reacting to past trends in prices, signaling the beginning of a new trend only after it appeared, but did not predict its occurrence. They help find a new trend or to determine the nature and effect of new developments as soon as possible after its occurrence. But that is after its inception? This means that some time will be lost, and this time the trend will change and shifts in prices inappropriate direction. Therefore, the trader will lose profits, if he does not have a protective floating suspension.

Way out of this situation can serve as indicators of delay or hesitation oscillators ¾ some alternative indicators to monitor trends. Unlike last oscillators are highly effective in the absence of apparent trends, where the dynamics of the market boils down to movements within a relatively narrow corridor of horizontal price, otherwise known as "market corridor." It is a corridor of prices, as has been described in the first part of the work are changing the basic trends. This is the period when the bulls are no longer able to move the market higher and the bears have not yet felt its strength and remain inactive. In the corridor of the market price is so often changing the direction that the most difficult problem is to catch the beginning and end of short movements up or down. Under such conditions, most of the systems to monitor trends are weak or unprofitable. At the same time, the use of oscillators allows the trader successfully close the positions and withdraw from the deal.

The effectiveness of the oscillators is not limited, however, only the "market corridor. In conjunction with the analysis of price charts for the period of domination in the market of a certain trend oscillators are able to predict short-term critical periods in the dynamics of the market activity ¾ the so-called state perekuplennogo and resell the market. In addition, the oscillators can easily see a weakening trend ¾ before this is clearly reflected in the price: for example, the difference between the direction of the curve oscillator and price shows that adherence to a particular market trends coming to an end, and soon spread.

Strong main trend at the expense of the dramatic changes in price oscillator drive high up in the zone perekuplennosti. In the area perekuplennosti oscillator is until the power of the trend, as measured by the ability of prices to rise as fast, not waning. Then comes the period of short-term side-trend, consisting of two or three days. During this period, prices have not changed ¾ there is a short-term weakening of the main trend. It was on the short lateral trend curve oscillator out of the zone perekuplennosti, as evidenced by the reduction of the rate of growth of prices. This signal is an oscillator can serve as a signal output, followed by a change in trend is the opposite, or will be corrected. After the correction system will be necessary to re-enter, which was written in the next paragraph of this part of the work.

Re-entry

As already stated, the ideal stop losses could be developed if the attempt to place the stop just outside the border of random price jumps. But even an ideal stop can make mistakes when entering the market for big players trying to utyanut market to correct. In this case, if one of those stops work at a time when the trend is still a movement would require a method of re-entering, which will return back to the trader's market, at a time when short-term trend will resume its march towards a long-term trend. The method of re-entering will help avoid disruptions due to omissions of any significant price movements.

The previous section examined some of the closing of positions, which depended on the correct operating system. A good way distinguishes winning trade of losing, and perhaps this is the single most important element of any system. Unfortunately, traders often obscure position earlier than the main trend that can still significantly increase the profit system. In cases where the trend continues, there must be a way of re-entering the market. Strong trends are rare and too valuable to lose them, so that closing the positions the trader must be confident that he can return to the market, if the previous stop was premature.

The mechanism of income for the re-occurrences of signals can be quite different from the main entries, because the market is in the middle of a strong, well-expressed by the trend, where the fluctuations in prices are significantly higher than at the beginning of the trend. Being in the middle of the trend, the trader would no longer be needed signals trend indicators, but only signals oscillators with small orders for greater sensitivity.

Oscillators that define the area perekuplennosti or pereprodannosti may very well work in determining the re-occurrences. Assume that the system was stopped floating stop signal on profitable long position in the correct price, which was stronger than one would think. You can observe the behavior of the relative strength index, or stochastic oscillators in such a situation to get a signal at the end of this deviation. One technique is to wait until the Stochastic Oscillator falls below a certain level and then turn back. The fall of a stochastic oscillator to any value below 40, followed by a recovery, should initiate a workable re-entry. Typically, trade on the purchase, if not the market trend is caused by the collapse of a stochastic oscillator is below 20 or 30 and the subsequent turn. However, as a trader was on a clear upward trend, it is unlikely that the stochastic oscillator will reach a very low marks in 20 or 30 .. The stronger the trend, the higher the potential to turn a stochastic oscillator. If the Stochastic Oscillator falls only to 50 or 60 and then spread, perhaps, the system does not receive a signal to exit, closing the original position and should not be thinking about re-entry. When you start a new trade on the purchase, you can put a stop loss under the level of depression correction, and then raise it to a lack of damages will be made when a new peak. These trends are dying slow and difficult, so the chance to get a good trade, with re-entry is quite high, especially if you can enter after the fall, without waiting for the next peak.

The secret of the success of re-entering was to wait until the end of the time and start quickly purchased as soon as the system to find the direction of the main trend. Waiting until the market will make a new peak is too long wait, but must make sure enough evidence to show that the correction is indeed over. Here you can talk about a very subtle point that requires careful reflection, along with the availability of sensitive and reliable indicator.

As an example of how sensitive can be an indicator of re-entering, you should give the method is very short-term oscillator, such as a three-day relative strength index (RSI) as a starting signal of re-entering. Typically, a three-day RSI so often jumps, that he is a little bit as an indicator. Because this is a very sensitive indicator, any correction, strong enough to stop the system and close the original position, because of the relative three-day fall in a very low level. When the RSI turn back for the 50 mark, it will be possible to conclude that the correction is over. Hence, the need to buy the next day, when the market goes from the peak of the day, rising to the RSI value of 50.

Technology RSI has two mark the continuation of the trend (the value of +50, and confirmation), and at the same time, it quickly enough to return to the trader at the market well before reaching a new peak. Kontrtrendovye Other indicators, such as the stochastic oscillator,% K and the index of commercial channels, may also be used in this way. % K-this is a sensitive indicator, which will work nearly as well as a three-day RSI. The idea is to use one of these indicators to provide a signal about the end of correction. To do this, set the indicator more sensitive than usual, because in this case it is needed to measure short-term correction rather than a trend.

The theory of technical analysis

The theory of technical analysis

A technical analysis. Technical ??????? this study the dynamics of the market, mostly through graphs to predict the future direction of the price. Technical analysis includes several different approaches to the study of evolution of prices, which are interconnected in a single coherent theory. This type of analysis is to study the price dynamics of the market by analyzing patterns of three changes of market factors: price, volume and if we study the market srochn s ??????????? open interest (the amount of open positions). And, for the primary analysis are prices and changes in other factors are studied to verify the accuracy of the direction of the price. This technical theory, as in any theory, there are basic tenets.

Three axioms TA. Three postulate of technical analysis as follows:

1. The market takes into account all. This postulate is the most important in technical analysis, it is necessary for an adequate understanding of the perception of all methods of analysis. Its essence is that any factor affecting the value of ??????? economic, political, psychological previously taken into account and reflected on the price chart. In other words, any change in prices is an appropriate change in external factors. The main consequence of this premise is the need to closely monitor and study the evolution of prices. By analyzing price charts and additional indicators, a technical analyst ensures that the market itself shows him the most likely direction of the movement.

This conflicts with the basic premise of the analysis, which focuses on studying the factors which appear after the analysis of findings on the movement of the market. So if demand exceeds supply, the fundamental analyst concludes increase prices. Technical analyst also concludes "the other way around: if the price increases, the demand exceeds the supply.

2. The movement of prices is subject to trends. This assumption has been the basis for the establishment of the techniques of technical analysis, as affected by market trends, as opposed to the chaotic market can be analyzed. Among the provisions that the price is subject to trends resulting two investigations. The investigation first was that the current trend is likely to grow further, but did not apply to its own opposite, that is a consequence of these excluded disorderly, erratic market movements. The investigation is the second said that the current trend will grow until the motion will not be running in the opposite direction.

3. History repeats itself. Technical analysis and study the market closely connected with the study of human psychology. So graphic pricing models that have been identified and classified in the last hundred years, reflect the essential features of the psychological state of the market. First of all, they point out what ??????????? bychi or Bear dominate at this point in the market. And if in the past, these models are employed, there is every reason to assume that in future they will work, because they are based on human psychology, which over the years does not change. It could be the last ????????? "History repeats itself" a few other words: the key to understanding the future lies in exploring the past.

The objectives of TA. Technical Analysis - Applied Social Psychology. His appointment - to identify trends in the behavior of crowds, and their changes with a view to taking stock of reasonable solutions. Technical analyst identifies market sentiment, placing a combination of the following purposes:

1) Assessment of the current direction of prices, that is, identifying the trend. It is possible the following options:

1. Moving up;

2. downward movement;

3. Flat.

2) Evaluation of the duration and period of validity of this direction. Maybe:

1. short-term trend;

2. the trend of long-term effects;

3. started the trend;

4. maturity of the trend;

5. death, the completion of the trend.

3) Evaluation of the amplitude of price fluctuations in the current direction:

1. little change of course;

2. strong change of course.

The classification of TA. All the variety of techniques of technical analysis can be divided into two large ??????? graphical techniques and analytical methods:

Graphic technical analysis is an analysis of various market graphic models generated by certain laws of motion of the price of plots, with the aim of assumptions or change the likelihood of continuing the current trend. Postulates of this kind of technical analysis are listed below the basic concepts of technical analysis: the trend lines, levels of market support and resistance levels correction current trend.

There are two types of graphical models:

1. Models of fracture ?????????? generated graphs model, which under certain conditions, can anticipate the change of the current market trend. These include such models as the "head of the shoulders," "double peak", "double-base", "tri-peak", "triple-ground."

2. Models continue ?????????? generated graphs model, which under certain conditions, show that there is a possibility of continuing the current trend. Perhaps the tendency to develop too fast and is entered in the state perekuplennosti or pereprodannosti. Then, after an intermediate correction, it will continue its development in the direction of the previous trend. In this group, provide such models as the "triangle", "diamonds", "flags, pennants and others.

Each model has a specific mechanism for education and a graphical form. The dynamics of the volume of transactions is a factor in confirming the existence of a model. All models find an explanation in terms of the psychology of market participants. Despite the seeming simplicity of this method, it is one of the basic techniques of technical analysis, and on the effectiveness of the application shows good results. A major shortcoming of this method is that it is very subjective. Every technical analyst should be a good chartist (English chart? schedule), as well as any graphical model ???????? is formed at the conclusion of the current price trends and the emergence of the likelihood of continuing or breaking the current trend.

On the analytical methods include techniques that use filtering or mathematical approximation of the time series. In technical analysis as the basic time-series uses the ranks of the share price for a certain period of time, the volume of trade and the number of open positions.

The main tool is an indicator of analytical methods, which in turn is a set of functions from one or more of the basic time series with time-window. Indicators can be divided into five categories:

1. Indicators of the trend. These indicators include indicators that serve to measure the trend ¾ its strength and duration. A classic example trendopodtverzhdayuschih indicator was a "rolling average". The same class includes such well-known indicators like MACD, Directional Movement, Parabolic, and others.

2. Indicators of variability. Indicators for the second category are used for measuring the variability of prices up an asset base. Variability ¾ this notion, describing the amount of daily, independent of the main lines, the price fluctuations. Such indicators are particularly important for the analyst to change the term market trend, or a side trend. Signals such indicators that were built with a small time window allows log and leave the markets during the day. These indicators include: Chaikin's Volatility, Standard Deviation, Bollinger Bands.

3. Indicators point. Representatives of the categories used to measure the speed of price changes over time. This, in turn, Momentum Indicator, Relative Strength Index (RSI) and the Price Rate-Of-Change (ROC). Also, under certain conditions, can be used, and MACD. But nothing prevents the use of signals as indicators of the time to confirm the trend, and to predict the time it ends, that the majority of specialists and makes.

4. LEDs cycle. These indicators are used to identify the cyclical component, and their length. This is Fibonacci Time Zones, MESA Sine Wave Indicator, and others. These indicators work well only on the side trends. It is very important, these indicators for futures traders, who work in the commodity markets, corn sugar or oil - in markets with very high cyclical component.

5. Indicators of market forces. The fifth category used as a base of independent variables, or the volume of transactions, or the number of open positions. Indicators in this category, based on the volume of data sets, give signals the strength of the current trend. Indicators for this category are On Balance Volume, Volume Accumulation, and others.

Brief history of development of TA. History of Western technical analysis has little more than a century. In the early nineties the nineteenth century, the Wall Street Journal an article by Charles Dow, where he presented a set of principles, which, in his view, could enter into a transaction to buy and sell without much risk. They have also been formulated, and now has become a classic theory of the direction of motion stock market. The principles of this theory is now used in almost all modern methods of technical analysis implicitly. Charles Dow never wrote a book, limiting their editorial articles for the magazine Wall Street Journal. After the death of Doe was replaced by B. Hamilton, who article "The End of tide" has raised the reputation of charts during the stock crash of 1929, he summed up the situation and the main Dow theory in the book market barometer ", and in 1932 the publisher of stock byulleteny Robert Rea brought it to its logical conclusion in the book "Dow Theory."

Times of the Great Depression of the thirties were the golden age of stock charts. After the collapse of 1929, many analysts has been little work and a lot of free time, and they spent it on the discovery of new theories of exchange of knowledge. That decade was marked by publications such as the legendary dealer Shabaker, Rea, Elliott, Vaykoff, Gunn and others. Their study were in two different directions. Some (Vaykoff and Shabaker) viewed as a graphic chart recording the exchange of supply and demand. Other (Elliott and Gann) were looking for "secret order" on the stock exchange. Proceedings Ralph Elliott led to the wave theory, open to the technical analysis of the magic of Fibonacci numbers. The main tenets of this theory argue that the price dynamics of a market is developing wave and there are certain patterns in the education market waves. William Gann created a complex combination of geometric, algebraic principles, which traders have used successfully on emerging futures markets. It is legendary thirties have created an entire galaxy of stars and technical analysis is not a surprise - so much was the influence of the "Great Depression" by brokers and analysts that the development of analytical prediction had been the best effect.

In 1948, Edwards and Magee have published the book "The technical analysis of stock trends." There, they identified the models such as triangles, rectangles, "head and shoulders, and other graphical models, as well as the trend line, support and resistance. Almost all of the classic technical analysis of the figures were discovered in the first half of this century, but their authorship is difficult to establish.

Since the beginning of the war and the subsequent recovery of world economy in need as such technical analysis, and again there was no longer only in the early sixties with the advent of a new crisis. In this period were systematized the basic concepts and rules of technical analysis, but also developed algorithms that reduce the labor of basic techniques. This period includes the emergence on the American stock markets moving averages (MOP), which according to the market veterans were perenyaty from antiaircrafters, which in turn used them to laying on the aircraft. The founders of the exchange of MOP were Richard Donchian and Dzh.M.Hrest. Donchian was serving firm Merrill Lynch, he developed a method of stock market games based on several SS and Hrest was an engineer in the book "Miracle profitability early deals with shares, which became classics, he described the principle of the SS in relation to transactions with the shares.

With the advent of computers has become a technical analysis to be more matematizirovannuyu form, started with great speed to develop analytical methods that use mathematical aproksimatsiyu and filtering. By that time, the creation of Dzh.Vels Uaydlerom grid system that can detect trends and to determine the appropriateness of the speed of their work in their direction. Indicators per cent variation Williams, balance the volume of Joseph Granville has also been established and used for the first time at this time as many other indicators of the founders of which history is silent.

In the late 70's with such financial instruments to reduce the risk of futures and options. It should be noted, the practice of trade with empty baskets of rice (futures in Japanese) has been known to indigenous Japanese carriers have three hundred years ago.

The beginning of the eighties glorified the emergence of such names as John Murphy and Robert Prihter that honor belongs to systematize the methods and presentation of technical analysis as a separate application of science.

Nineties also brought its own contribution to the history of technical analysis, but no longer at the world level: since ancient times in history, there were the so-called "guru" - is the market cult figure who, by making a loud name on a few successful predictions began to circulate for a reasonable fee newsletters, which provide advice to investors to buy or sell any shares. Based on these recommendations have been different types of forecasting, ranging from analytical methods to ugadyvaniem in the form of clouds signs the purchase or sale. Gradually, some investors began to rely on these letters, then the entire market in the mass hysteria began to follow the visions. And as soon as this happened, then there is not predicted such a "specialist", the collapse (or growth). At the same time, thousands of market participants ??????????, and now "former Guru" disappear from the market. Such a definition with some adjustments to fit, and Elliott, and Gannu, and Murphy and many others. More information about this phenomenon can be found in a remarkable book, Alexandra Eldera "Trading for a living."

The lines of support and resistance trend lines

The lines of support and resistance trend lines


The lines of support and resistance. The lines of resistance and support are the foundation of classical trend analysis, moreover, they are used to analyze the differences and shozhdeny some indicators. In a graphic analysis of all technical trend lines, models and figures are only ¾ combination of lines of resistance and support. The emergence of these lines is the next logical explanation.

The line connects the resistance of important market peaks or ridges. It occurs at a time when more buyers either can not or do not want to buy this valuable paper at higher prices. Simultaneously with each upward movement of prices is increasing the resistance of sellers and increased sales, which also has a downward pressure on prices. The trend upward stoporitsya and how depends on an invisible ceiling, to break that currently can not. If the bulls gather forces and bears weaken acumen, the price is likely to probet previous resistance level. Otherwise, prices will inevitably regress.

The line connects the important support minimums or bottom market. The emergence and existence of lines of support, directly opposite the lines of resistance. Here, the bulls switch places with the bears. Dealers are active players in the market, which pushed the price down, and buyers with ¾ the defending side. What would be more than passive sellers and buyers, the more likely it is that the line will support to break the price will go further down.

If the line of resistance and support line is strong and long enough withheld, depending on the combination creates various images and associations, which give the name of trend models and figures.

The lines of resistance and support better than through the best prices on the tops of emissions and nizah, and through the zone congestion pricing. Massive congestion pricing shows that it is the behavior of determining the number of traders changes direction, and the maximum emission prices in these places showed panic behavior of the weakest market participants, quickly closing its loss-making positions. The method of lines of resistance and support helps traders monitor changing trends ¾ her turn or acceleration. These levels are particularly important for the production of protective stop orders.

Support and resistance owe their existence past experiences of people etched in their memory. The memory of the past turn at this level encourages dealer make the purchase or sale. Their mass action and create a support and resistance. Bearing in mind that the price reached a certain level, have stopped falling and they went up, Throgmorton Street, probably will buy when prices are once again down to that level. Bearing in mind that the market, rising to a certain ridge, turned, Throgmorton Street will be inclined to sell and play for a fall, when prices are again close to the ridge.

Support and resistance exist because a lot of stockbroker sokrushayutsya about everything. Suffer Throgmorton Street, which kept losing position. They are just waiting to get out of the game, when the market will return to the level where they opened the position. Kruchinyatsya Throgmorton Street missed a chance to buy and they are waiting for a wind. These feelings are not very strong in a narrow range of gaming, where the fluctuations are small and the losers are not particularly uyazvleny. But breakthroughs abroad playing band cause acute pain and frustration.

When the market is kept at a level to become familiar dealer buying at the bottom of the range and sell at the top. When prices move up, sold for a fall bear muchimy pain; bulls same sadness, that does not have bought more. And both groups are waiting for opportunities to buy if you get a new ¾ chance, that is, when prices are close to previously known levels of support or resistance. By this decision, they pushed the emotions: some ¾ pain and other ¾ disappointing. Support consists of regrets about missed opportunities for bulls and bears the pain.

Resistance ¾ an area of pain bulls, bears and regrets the willingness of both groups to sell. When prices fall below the range of the game, it bought before the bulls see that lose money. They feel as trapped and waiting for recovery, just to get out of the game without a loss. Bears also grieve that poorly played down, and waiting time of recovery, to sell more. The pain of the bulls and bears unfortunate represent resistance ¾ ceiling above the market rates. The strength of support and resistance depends on the strength of massive emotions stockbroker.

The longer prices stay in the area of dense hatching, the stronger the emotional involvement of the bulls and bears in the area. When prices fall into it, it supports, and when raised to the ¾ resistance. Area dense shading can change their role, turning it into support, then in opposition.

The strength of each area of support or resistance is dependent on three factors: it is its length, height and volume of its transactions. Spatially, these parameters can be thought of as the length, height and width of the zone dense hatching.

The greater the length of support or resistance ¾ that is, the greater the length of time or the number of aged strikes, so it is stronger. The longer the duration of support and resistance, the more votes dealer "was filed in favor of the market situation, that is, the more the dealer meets this year. When two-week range is formed only minimal support or resistance when they dvuhmesyachnom range average power, because the players have time to adapt to the situation, but with two-year, cost-established as a standard, they are very high.

But the years of support and resistance levels are gradually fading. Defeated fly from the stock market game, and their successive newcomers have no emotional involvement in the old prices.

Support and resistance intensified whenever prices fall in these zones. Seeing that at some point prices are deployed, Throgmorton Street are beginning to rely on that turn, when prices again approaching that mark. This is a constancy of some exchanges and performed postulate of technical analysis, "history is repeating itself."

The greater height of the zone of support and resistance, so it is stronger. High resistance zone shows a strong reluctance and resistance to bear the recent increase in prices and weakening of the bulls. The height of the zone of support and resistance for each of the securities market is different: the height of this can vary from 1% to 7% or more of the level of prices. What a great height is a zone of support and resistance, the greater the pressure on the head of bears and bulls, respectively, it can stop.

The higher volume of transactions in the area of support and resistance, so it is stronger. The abundance of deals in the area of dense shading indicates activity stockbroker ¾ as a sign of their strong emotional involvement in this price level. The low level of transactions showed reluctant speculation dealer at a given price level ¾ it is a sign of weak support or resistance.

For the lines of resistance and support provided for the next game tactics.

1. When the trend in the direction which the dealer is close to the area of support or resistance, it is necessary to safeguard pridvinut suspension to the line of resistance or support. Defensive suspension ¾ this order to sell at a price below the market, if the dealer has played in raising, or purchase to close a short position at a price above the market, if the dealer is playing for a fall. This suspension will protect against losses if prices turned against the trend set by dealer. After reaching the area of support or resistance, the trend has shown its viability ¾ or weakness. If it forces to penetrate this zone, it is accelerating its progress, and your stiff suspension will not be affected. If the same tendency to bounce off support or resistance zone, then it has to show weakness. In this case, you will save you a stiff suspension of the profits.

2. The significance of support and resistance zones on the schedules of the more than longer time scale. For example, weekly schedules suschestvennee day. Competent dealer always leads to an analysis of several time scales based on a larger. If the trend holds weekly path through the free zone, hitting the daily developments in the area of least resistance is already significant. If the weekly charts are approaching the area of support or resistance, should reinforce the willingness to act.

3. Levels of support and resistance levels to help determine the order of protection against losses and protect profits. The lower boundary of the area of dense hatching ¾ this support. Buying and placing the suspension below this level, Throgmorton Street prepare a good foundation for the game to increase. A more cautious Throgmorton Street to buy after the price probyut level of resistance, and the suspension placed in the middle area of dense hatching. The true breakthrough ceiling should not end with the fall back in the game range. In a downtrend must act as well, but in the opposite direction.

Lines of trends. Graphs exchanges reflect actions bulls and bears. Bottom recessions show when bears vybilis of force, and the bulls have returned to power. Ridges ups show when vydohlis bulls, bears and entered into force. A straight line connecting two neighboring donyshka shows the direction of head bulls. Direct connecting two adjacent ridge, shows the direction of head bears. These are called the direct lines of trends. Stockbroker using them to identify areas of exchange.

When the price line growth trend of the growing hold over the bottom. When prices decline line trend hold over the ridges. Continuing this line in the future, you can identify the nearest point of purchase and sale.

The most important characteristic of the line trend ¾ angle of inclination: it points to the dominant stock group. If the trend line ustremlena up: it means that the tone set the bulls. In this case it is better to buy, placing a protective suspension below the trend. If the trend line points down, set the tone for the bear. So better to sell down protective suspension above the trend.

Line trends ¾ one of the oldest tools in the arsenal dealer, and is mostly a graphical tool for technical analysis. In the modern computer means to identify trends include moving averages, the difference grid system moving averages, which will be written below.

Many analysts hold the line through the trend ends ¾ maximums and minimums. It is better to hold them over the edge of areas of dense hatching, because they show the areas in which bought and sold a majority stockbroker. Technical analysis ¾ as would an opinion poll, and they are working to identify the mood of large segments and build a line across the boundary zone pushes to bias: there is a temptation to move the line to confirm their preconceived views. We need to monitor themselves and resist the temptation.

Panic plunge in prices ¾ sell it on the bottom desperate bulls, and panic buying in the area comb ¾ is close short positions bears ¾ causes lines zashkalivaniya that the graphs look like long "tail." It is therefore better to hold the line trends at the edges of zones of dense hatching, rather than the "tail" that little is reported on the exchange contingent ¾ except that of alarmist in its ranks.

The most important trend line ¾ sending its inclination. If the line goes up the hill ¾ means to wear bull market: you pick an opportunity to purchase. If the line goes downhill, the saddle bears, and we should pick the possibility of selling short. The significance of the line trend can be assessed by five factors: the scale of time, its length, the number of strokes of tangency, angle and volume of transactions.

The larger scale of time, the higher the significance of the line. The line on a weekly schedule reflects a more important trend than at the time, etc. What is the line length, so it is important. Short line shows the steps the crowd in a short period of time. Over a long line of action noted the crowd in a short period of time. The longer the line, the greater its inertia. The powerful bull market trend lines can stick a few years.

The more strokes relate to the line, so it is important. When prices are on the rise, they decline to trend line indicates a rally bulls. If prices returned to the line, then bounce off it ¾ means that the dominant stock exchange group usmirila rebels.

The line-sketch trend held only two or donyshka ridge. The emergence of a third point reinforces the importance of the line, while the fourth and fifth point to the strength of the dominant position of the Exchange Group.

Angle to the horizontal trend line reflecting the emotional mood of the dominant stock exchange group. Steep line ¾ sign of vigorous action. The relatively flat line ¾ sign nespeshnosti. A more gentle line typically stretches longer, as the tortoise in the race with the hare.

Is useful to measure the angle of each of the lines and record them on the schedule. Comparing angles, one can estimate the effect of exchange sentiments among the dominant groups. Most trend lines are under the same angle in the same market. Perhaps this is due to the behavior of the leading players, who settled in this market. Sometimes the price of escape from their trend. Then you can build a new, steeper line. It shows that the trend is gaining progress. Build a new, more steep line, it is necessary to suspend Condense: move it directly under the line of recent trends and draw with the advent of each new stroke. Breaking steep trend line is usually accompanied by a sharp turn in prices.

With the trend towards increased volume of transactions typically rises when prices rise, and less when they fall. This shows that the rises are attracted stockbroker than downs. When trend is observed: a volume increased by a recession and decreasing during the recovery. When prices return to trend line on a large extent, this is a sign of the growing number of rebels. If the volume increases, and prices are moving in the direction of trend lines, it is a sign of stability. If the volume is declining, while prices are removed from the line, this signal opsnosti for it. If the volume increases, and prices returned to the line trend, this signal a possible break through, which shows that the dominant stock exchange group loses commanding heights. But for the more confident tone, as many dealer, after the gap from the price should move a further 2-3%.

After the gap is very steep trend to higher prices often are increasing again, reaching the crest of the old and podbirayas to its already prolomlennoy bottom-line trends. This creates an almost ideal situation for sales on the decline: it is at the same time there is a double ridge, return to the old lines, and we can not rule out the difference of technical indicators that give a signal to play for a fall. In a downtrend should act like, but in the opposite direction.

For the lines of a trend following tactics game.

1. need to work towards the trend line: if it goes up, you should look for an opportunity to buy and to avoid the game down. If it goes down, you'll need to play the game and avoid demotion to increase.

2. Line trends ¾ either support or resistance. With the growth of prices should be given orders to buy near the line trend and protective suspension set below it. When trend is necessary to do the same, but in the opposite direction.

3. The steep trend line usually ends sharp prolomami. If the steepness of the line more than 45 degrees, you need to put the suspension on the trend line and its daily draw.

4. Prolomiv steep line, prices often return to the recent ridge on the shrunken size and variances to the technical indicators. This ¾ great opportunity to play for a fall. Reduced to its previous donyshka gap after the line trend creates conditions for the purchase with a relatively small risk.

Moving averages

Moving averages (Moving average)


Moving averages.

Moving average value (HS) belongs to the category of analytic tools that follow the trend. Its purpose is to determine the start time for the new trend, but also warn of its completion, or a turn. SS are designed to track trends in their development, they can be considered as a curved trendline. But CC is not intended to predict movements in the market in the sense that it makes the graphical analysis, as it always follows the market dynamics, rather than ahead of it. This figure does not forecast price movements, but only reacts to it. He always follows the movements of prices in the market and signals the beginning of a new trend, but only after it appeared.

Construction of CC is a special method of smoothing prices. Indeed, when averaging the price indices of the curve is noticeably softened, and the trend of the market has become much easier. However, by their nature, like the HS is behind the market. Short-term HS accurately the movement of prices, longer than the longest CC. The use of short HS reduces lag time, but completely remove it by using the HS is not possible. On the market side better to use short-MOP, and trend in the effective length is less sensitive.

Type SS There are three types of MOP: MOP simple, weighted and exponential MOP MOP.

A simple moving average. Simple CC, or the arithmetic mean of the value calculated by the following formula:

where Ri-price i-th day, n-order moving average.

This type of CC is widely used by technical analysts'. But some analysts challenged his dignity, while putting forward two main arguments. The first is that the analysis takes into account only the period of time, which is covered by the CC. The second argument is that the mere fact equalized CC-biggest price of each day. For example, when using a rolling ten middle, last and first day is given equal weight ¾ 10%, like all other days of the period. Five HS, in turn, implies that the average weight of price is equal to 20%. At the same time, some analysts believe that later in prices should be given a few more important. This argument is quite logical because the new trend simply need a SS more time to turn and alarm than the weighted MOP considered below.

Weighted moving average. In order to solve such as the issue of "weight" averages of the prices, some analysts use the weighted moving average (BCC). They are calculated using the following formula:

where Wi-weight of i-component (the price).

Weights prisvaemye price in the above formula can be chosen arbitrarily. Generally, the choice of weights in prices depends on the nature of the dynamics of the investigated security. The weights may grow linearly, exponentially or in any other way. In the case of a linearly-weighted SS Wi = i.

The exponential moving average.

The exponential moving average (ESS) has a more complicated construction than simple CC or BCC, which allows the ESS to eliminate two disadvantages of a simple CC. First, the ESS gives a much more important indicators of recent days. Therefore, it is balanced. But, while the previous price is given less weight in the calculation used data on prices ¾ for the entire period of validity of the securities market. The formula for calculating this type of CC is more complex and is as follows:

where t-present, t-1 yesterday, k = 2 / (n +1), where n ¾ SS procedure.

Despite the fact that ESS does not have the shortcomings of the simple HS, it is not the best of the three HS. The following will be shown through testing the effectiveness of each CC.

Rules for analysis. General rules for the analysis of SS were as follows:

1. The most important signal, indicating the direction of the trend is the general direction of movement of the HS. When ascending the HS need to adhere to bovine market bullish. It is to buy when prices fall to CC, placing a protective suspension following the recent bottom, and pull it as soon as prices closed above the previous level. In descending MOP should play for a fall, opening a short position when prices podskochat to MOP or slightly above. In this case, the protective suspension should be placed slightly higher than the previous crest and dynamically pull it if you continue Bear trend.

2. The second signal is the intersection of the SS and the schedule price. This is a strong signal for bovine emerging markets, where prices are MOP crosses schedule above, without a positive slope, and the schedule of prices is also a large positive slope. In the case of suppression of the HS and the price schedule with a negative inclination of the first and a weak positive or negative inclination of the second, served more than a weak signal in the bullish trend is emerging, and it should get a confirmation from future additional signal. For emerging market Bear received similar signals from the opposite position and inclination of the HS and the schedule price.

3. The third is the turn signal SS to a minimum or maximum value. If the MOP is a schedule of prices and has a local minimum, a schedule of prices has a positive slope, the average signal strength of the bull market and the direction of opening up the position, but if the schedule does not have a positive slope, then comes a very weak signal, to confirm that need to use three additional signals.

These rules can be guided, at the market trend. In the market without a corresponding trend graphs would have Brains. Attempting to filter out these purely mechanical Brains leads typically to a loss and a useful signal.

Using several SS

To determine the plausibility of signals from CC, traders and analysts use both a combination of two or more lines of the HS. Some traders use in the analysis of one-day schedules of the combination of HS-order 5-21 or 5-13-21. In the general case, the line should provide short, medium and long term. At the same time there are such rules:

1. In absolute bull market of the most sensitive (short) line of HS is higher, but the most coarse (long) below the rest of us. In the bear market of the reverse pattern.

2. By crossing the lines can be seen to change the trend. Initially, cross the line more sensitive, followed in ascending order of more and more serious. In accordance with the line orders are crossed and how to change their relative position, it is possible to judge what is the trend, short-term or long-term change of direction.

Regulation analysis of two SS are similar to the rules of the analysis of a CC. By analysis of two secondary rules are the following:

# The point of intersection of the SS signal spread trend.

# Points of greatest divergence MOP talk of a possible imminent change of trend.

# The general direction of two MOP describes the current trend line, the MOP will be slow to show the desired direction, but more rapid ¾ signals to buy or sell a specific direction.

Trading system based on the two SS

By themselves, the two SS can work as an autonomous trading system with independent signals. There trading system based on two HS, working on the "double-crossing." The essence of this method is that the signals for buying and selling are served after a short line crosses the long-MOP MOP. In the case where a short line crosses the long HS HS bottom-up signal the beginning of bovine trend and the system for purchase orders. When short-MOP crosses the long downward signal a change in the bearish trend bovine and the system orders at the sale. This method assumes a continuous system, ie, assumes the continued availability of open positions ¾ long or short. If you are using two SS behind the evolution of prices will be slightly higher than in the case of a single SS, from this point of view, the two signals SS will be delayed compared with SS and one of the possible gains would be lost, although in this case, there is fewer false alarms. This trading system, like all the trend indicators to make better use of market trend, as a side trend system will give many false signals and would be unprofitable.

The second trading system based on two CC can provide a more simple tones. The second method of the simultaneous application of two HS space between them is seen as a sort of neutral zone. Closing price, fixed above the two lines, gives the signal for the opening of long positions if the price is fixed below the closure of both SS ¾ signal to the game for a fall. The above signals are canceled, if the closing price provided in the neutral zone. If prices are in a neutral space between the two CC, all short positions should be closed and further action should be to abstain. The advantage of this system is that it is not in the market constantly. This trading system, like the previous ones, is to market trend and use it to bestrendovyh market is not desirable.

What is Mobile Trading?


What is Mobile Trading?

Our readers will be interested to know what is happening in the market of mobile trading today. Correspondent of "FM", met with the lead programmer for mobile trading company MetaQuotes Software Corp. (Www.metaquotes.ru) Dennis Mezentseva and tried to find it otvet.Gospodin Mezentsev, what is a mobile Trading?

This new direction in the development of online trading. Modern technology makes it possible to trade operations and technical analysis, even with the help of the so-called naladonnikov - PDA connected to the Internet. It is now possible to conduct full-fledged trade from any place on Earth where you can operate a mobile phone. It should also be noted that the telecommunication services in Russia now has enough quality and the same is also have a reasonable price. And this, in turn, further contributes to the development of mobile trading.
And how do you feel the boom of mobile trading has already passed or is yet to be overcome?

Of course, as this new direction, the boom is yet to come. Some companies have yet to come to the conclusion that this is a promising direction. Others are already busy designing and developing their own systems. Still others may have something to present. However, the market is still very few players, and all of them can be counted on the fingers. Our company is one of the first to develop programmnogoobespecheniya for mobile trading and today offers the best solutions in this field.
Tell us more in detail about how it all began.

In recent years, the number of traders who have a need to constantly keep abreast of developments in financial markets started to rise sharply. Taking all this into account, in November 2002, we began the development of terminals for the CPC. We wanted to create awareness immediately Trading platform, that is, the terminal can not only provide information about the current state of the market, but also to undertake trading activities. A first software product was the terminal MetaTrader for Palm, running the operating system Palm OS. Having successfully completed and released to the market the first version of the terminal, we have begun the second product - MetaTrader CE, working under the operating system Microsoft Pocket PC. Thus, we created two programs to the two major platforms on the market of CPC, but in this work on the terminals have not ended. Since the first version did not stop work to improve the programs and the introduction of new functions.

And what happens now represent these programs?

First, it is full of information and trading terminals, that is, they can not only receive data in real time to display them in graphical form, but to make commercial transactions and manage orders. Secondly, the MetaTrader CE integrated technical analizv a set of indicators. This set is much less than that achieved in the terminal for desktop computers, but should not forget that this is not an ordinary personal computer, a pocket. Hence, together with all its advantages and limitations arise. Unfortunately, because of restrictions platforms, technical analysis has not been realized in the terminal MetaTrader for Palm. But with the development of the CPC, I think we will be able to include in its composition and technical indicators. Show it is very difficult to judge the future of computers Palm.

Summing up, I want to say that, to date, terminals for the CPC has to compete with some of the terminals for desktop computers. And given that will be further development of this class of computers, and, therefore, will increase the possibility of the software, then I think that mobile trading - a great future.

Mikhail Novikov
Forex Magazine

Wednesday, January 28, 2009

Education MQL II Lesson number 3

Education MQL II Lesson number 3


Halhalyan Arthur
fxtest.ru
artur@fxtest.ru

Hello dear readers! Perhaps the two previous lesson was not very interesting, because could not have been to see the results of their labor. Believe me, they were necessary to further, to work. In this lesson we will learn to open positions and explain sintak-handling system to the array of quotations.
3.1. Feature SetOrder

Using the SetOrder could open positions for buying and selling at the current price or to arrange deferred warrant.

SetOrder (operation, lots, price, slippage, stoploss, takeprofit, color)

SetOrder (operation, the number of lots, the price, the maximum allowable slippage, stoploss, teykprofit, color)
3.1.1. Operation (Operation)

Transactions can be divided 2 species, the entrance to the current price, or set the pending order.

To enter the current price of the operation would take the form: op_buy or op_sell.

Op_buy-purchase contract for the current price of should be pointed .

Op_sell-sale contract for the current price of should be pointed .

To be placed pending order operation would imetvid: op_buylimit, op_buystop, op_selllimit iliop_sellstop.

If we want to put a pending warrant for the purchase, provided that the current price is below the price of the warrant of execution, the operation will look op_buystop. Ie We plan that the price will go further in that direction (naproboy, top).

If we want to put a pending warrant for the sale on condition that the current price is below the price of the warrant of execution, the operation will look op_selllimit. Ie We plan that the price spread and go in the opposite direction (turn).

If we want to put a pending warrant for the purchase, provided that the current price above the price the warrant of execution, the operation will look op_buylimit. Ie We plan that the price spread and go in the opposite direction (turn).

If we want to put a pending warrant for the sale on condition that the current price above the price the warrant of execution, the operation will look op_sellstop. Ie We plan that the price will go further in that direction (naproboy, down).
3.1.2. lots (lots)

To specify the number of lots in the warrant, you can write a specific number, for example, 1 or 2. I recommend to write reserved variable, because directly to the MT, you can put any number of lots, thus your expert will be more flexible.
3.1.3.Price (price of a warrant of execution)

To log on the current price op_buy operations or op_sell, you need to use the ask price and bid, respectively. To enter is pending order or you can write a specific price or to use an expression of this type: ask +30 * point. What does this mean?

That means the current ask (for example, 1.2800), added 30 points, ie entry price 1.2830. Point is the price point for a particular currency pair, for EURUSD point = 0.0001, for USDJPY point = 0.01. The price point to define itself, it will do for you, MT. You can write so: ask +0.0001 and it would be correct, but to connect this to the expert USDJPY it will have to redo. In order to write more flexible Experts recommend that you always use reserved variable point.
3.1.4. Slippage (slip)

If the slippage would be greater than this value, the activation order will be rejected. Most likely (if the condition of entry will not change), the expert will try to re-open position and open it only if the slippage would be less than the specified value. I use 3 or 4 points.
3.1.5. Stoploss (loss)

It should be understood that the stoploss is just a value price, which will close the position by force. Ie in the field, you can simply write a specific price.

For guidance, I recommend leaving variable stoploss, as in the creation of an expert (or cap expert) exhibit the desired amount. This will be your expert more flexible and value stoploss can be changed directly in the MP in your expert. Tribute will be kind: ask + stoploss * point. A variable is always remember! This is true for the permanent stoplossa.

If you want to have a dynamic (changing) stoploss, it can take in a variable. For example: 1]> This means that the stoploss is the minimum price last bar. Below I will discuss the details.
3.1.6. Takeprofit (teykprofit)

All that is stated in paragraph 3.1.5. fully applied and for takeprofit. More to say nothing.
3.1.7. Color (Color)

This field specifies the color, which will be painted an arrow in the quotation at the opening position. Also, the arrow will appear in front of the price of which has burst warrant. MT supports a lot of flowers, for example: gray, gray, red, blue, etc.
3.1.8 Examples of use SetOrder.

A warrant for the purchase of:

SetOrder (op_buy, lots, ask, 3, bid-stoploss * point, bid + takeprofit * point, green);

A warrant for sale:

SetOrder (op_sell, lots, bid, 3, ask + stoploss * point, ask-takeprofit * point, red);

Pay attention to the foot of the bid deemed to warrant a purchase and ask for a warrant for sale. This fact and meet the place because, to actually planted, for example, 30 points foot, it must be considered from the real price of the closure order! But do not be surprised if you see in the tool, for example, closing the position on stoplossu, not at 30 points ty loss, but at 35, spread nobody lifted.

Pending orders:

SetOrder (op_sellstop, 1, bid-50 * point, 3, (bid-50 * point) + StopLoss * Point, (bid-50 * point)-TakeProfit * Point, blue);
ho = h [1];
SetOrder (op_buystop, lots, ho, 3, ho-StopLoss * Point, ho + TakeProfit * Point, blue);
3.2. Appeal to the array of quotes.

Arrays quotations are the following names. Close (C)-closing price, Open (O)-opening price, High (H)-the maximum price, Low (L)-a minimum price, Volume (V) - the volume.

You can use these names or abbreviations, they are in parentheses. Appeals to the array of quotations carried out as to the usual array through the brackets. Index 0 is the current bar, 1 last, etc. Ie c [1], the closing price of the last bar, o [0]-opening price of the bar, h [2], the maximum price before the bar. Keep in mind that referring to the current bar (indeks0), you can be sure to change only outside its opening price, however the rest of the parameters (H, L, V, C) may change over time. The names of the arrays with the indices H, C, etc. The expert will be understood as meaning the current bar, that is, with a score of 0 (H = H [0], C = C [0]), etc.

Now create the first trading expert. We are together on the steps to create an expert in the first lesson, and I think you do not have problems. If there are any, look in there.

In the settings of an expert vystavlyaem stoplos in 40 points, teykprofit 100, the number of lots 1. You can then experiment with other values. Testing for the H1, such as the euro.

/ * [[Name: = Expert2
Author: = Fxtest
Link: = forextimes.ru
Lots: = 1.00
Stop Loss: = 40
Take Profit: = 100
Trailing Stop: = 0]] * /
if totaltrades = 1 then exit; / / 1 if you already have a go (this is the number of open positions)
if c [1]-h [2]> 10 * point then SetOrder (op_buy, lots, ask, 3, l [1]-stoploss * point, bid + takeprofit * point, green);
if l [2]-c [1]> 10 * point then SetOrder (op_sell, lots, bid, 3, h [1] + stoploss * point, ask-takeprofit * point, red);

Congratulations to the first trading expert. In addition totaltrades will not explain anything, unnecessarily in this lesson is to understand all the algorithms, in order to consolidate the material urge to look. There will also be helpful if you try to remake it and poeksperimentiru-ete with the foot.

In the next lesson, we explain the cycles and write a more complex expert.

Charles Henry Dow

Charles Henry Dow 1851 -1902


Every day in the press and on television several times a current rate of the Dow Jones - the main indicator of the New York Stock Exchange. Dow Jones-core "barometer" of the state of the U.S. economy. His rise or fall causes crow or rather, the business world tremble all over the world. The journalist, who opened the American Stock

This man knows almost everyone. In doing so, not everyone knows, aware of this. How can this be? It's that simple. The most famous index of the stock market bears his name. Charles Dow, vskormivshy Stock America is one of the fathers of the Dow Jones and perhaps one of the most famous people in the world.

Charles Dow was born on Nov. 6, 1851 in a family of farmers. While the youth has reached the age of conscious and relative independence, he left his farm and tyagotivshuyu already in the 18 years he worked at a fairly major provincial newspaper. Really it is the way to the top began in 1875 when he switched to "The Providence Star".

The new newspaper he took up the economic issues. In fact, he became a genre forebear of financial journalism, not just the well-known index. Apparently, right by those who argue that a talented person is talented in everything. One discovery leads to another. And if the Dow initially wrote stories about the search and implementation of drag.metallov, then later it turned into analysis: The carousel zakrutilas.

Charles Edward partner with Dow Jones went to conquer New York. Here he settled down in the news agency, where he is not bad behavior of financial analysts share the gold mining companies. It is understandable that a man with such a vibrant and pytlivym mind, as the Dow, it was very difficult to live with their relative inactivity.

He was not only to cover developments in the market, especially knowing that his expertise in this area ukosnitelno grow. And sooner or later will grow to such an extent that would allow to enter the stock exchange as a direct party to the events. And so it happened. Dow Jones and start their own business, which makes the coup on the American Stock Exchange.

In 1883, the first bulletin goes "Customer's Afternoon Letter", which printed a summary table with the change in equity prices during the day. To the end of 19 century it was in fact nonsense. This information has been comparatively insider: smaller companies prefer more openness. While such an analysis was conducted in brokerage companies, a broad mass of players on the market access to it was closed. And the more weight they could not expect to any regularity.

But for luck, Dow changed the situation. The original information for the newsletter was extracted very romantic ways: podslushivaniem, "vtiraniem in trust for traders and the like delicacies. But over time, the great mahinatory Exchange realized profits publications: information on price developments, they could stimulate movement in the shares they need direction. And pretty soon turned into a nondescript newsletter: "The Wall-Street Journal"!

It would seem that what remains to be human: to change the basic principles of the stock market - and can live safely. But no, Charles Dow simply could not develop. In his view, comparing the information on price changes in the leading (read - emerging market) share, you can take a single index of the stock market. With Dow promptly did.

Assigning equal weight to each stock and vyschityvaya percentage price change, he gave courses in rednemu value - and has known the Dow Jones, to identify some general direction of movement of the market. Originally there were two indexes: one applied to shares of railway companies, and another - all the rest. The latter was destined to be an authoritative indicator of the financial market for many, many years:

Charles Dow - a journalist, who opened the American Stock, a man with a unique mentality, a talented economist, was one of the remarkable cohort of people who do not posedlivost, talent and innate ability to anticipate the future allow them to virtually alone change history.

Catherine Alipova
"Info Bridge Communication"