Archive for August, 2008

The Heart of Trading Futures Contracts: Fractals Defined

By trader7757, 31 August, 2008, No Comment

Source of some of this article is Wikipedia.


A fractal is generally “a rough or fragmented geometric shape that can be split into parts, each of which is (at least approximately) a reduced-size copy of the whole,”[1] a property called self-similarity. The term was coined by Benoît Mandelbrot in 1975 and was derived from the Latin fractus meaning “broken” or “fractured.”

A fractal often has the following features:

* It has a fine structure at arbitrarily small scales.
* It is too irregular to be easily described in traditional Euclidean geometric language.
* It is self-similar (at least approximately or stochastically).
* It has a Hausdorff dimension which is greater than its topological dimension (although this requirement is not met by space-filling curves such as the Hilbert curve).
* It has a simple and recursive definition.

Because they appear similar at all levels of magnification, fractals are often considered to be infinitely complex (in informal terms). Natural objects that approximate fractals to a degree include clouds, mountain ranges, lightning bolts, coastlines, and snow flakes. However, not all self-similar objects are fractals—for example, the real line (a straight Euclidean line) is formally self-similar but fails to have other fractal characteristics.

Benoit Mandelbrot, in one of his pioneering articles on the problems with linear based market predictions states:

“The risk-reducing formulas behind portfolio theory rely on a number of demanding and ultimately unfounded premises. First, they suggest that price changes are statistically independent of one another: for example, that today’s price has no influence on the changes between the current price and tomorrow’s. As a result, predictions of future market movements become impossible. The second presumption is that all price changes are distributed in a pattern that conforms to the standard bell curve. The width of the bell shape (as measured by its sigma, or standard deviation) depicts how far price changes diverge from the mean; events at the extremes are considered extremely rare. Typhoons are, in effect, defined out of existence.

Modern portfolio theory poses a danger to those who believe in it too strongly and is a powerful challenge for the theoretician. Though sometimes acknowledging faults in the present body of thinking, its adherents suggest that no other premises can be handled through mathematical modeling. This contention leads to the question of whether a rigorous quantitative description of at least some features of major financial upheavals can be developed. The bearish answer is that large market swings are anomalies, individual “acts of God” that present no conceivable regularity. Revisionists correct the questionable premises of modern portfolio theory through small fixes that lack any guiding principle and do not improve matters sufficiently. My own work – carried out over many years – takes a very different and decidedly bullish position”

Okay, okay, you are shaking your head what in the world does this have to do with actual investing? Yea, yea…there are lots of these little duplicating irregular shapes, but how does this help me?

I borrow again from Benoit Mandelbrots earlier article:

“In a detail of a graphic in which the features are higher than they are wide – as are the individual up-and-down price ticks of a stock – the transformation from the whole to a part must reduce the horizontal axis more than the vertical one. For a price chart, this transformation must shrink the time-scale (the horizontal axis) more than the price scale (the vertical axis). The geometric relation of the whole to its parts is said to be one of self-affinity.

The existence of unchanging properties is not given much weight by most statisticians. But they are beloved of physicists and mathematicians like myself, who call them invariances and are happiest with models that present an attractive invariance property. A good idea of what I mean is provided by drawing a simple chart that inserts price changes from time 0 to a later time 1 in successive steps. The intervals themselves are chosen arbitrarily; they may represent a second, an hour, a day or a year.

The process begins with a price, represented by a straight trend line (illustration 1). Next, a broken line called a generator is used to create the pattern that corresponds to the up-and-down oscillations of a price quoted in financial markets. The generator consists of three pieces that are inserted (interpolated) along the straight trend line. (A generator with fewer than three pieces would not simulate a price that can move up and down.) After delineating the initial generator, its three pieces are interpolated by three shorter ones. Repeating these steps reproduces the shape of the generator, or price curve, but at compressed scales. Both the horizontal axis (timescale) and the vertical axis (price scale) are squeezed to fit the horizontal and vertical boundaries of each piece of the generator.

Interpolations Forever

Only the first stages are shown in the illustration, although the same process continues. In theory, it has no end, but in practice, it makes no sense to interpolate down to time intervals shorter than those between trading transactions, which may occur in less than a minute. Clearly, each piece ends up with a shape roughly like the whole. That is, scale invariance is present simply because it was built in. The novelty (and surprise) is that these self-affine fractal curves exhibit a wealth of structure — a foundation of both fractal geometry and the theory of chaos.

A few selected generators yield so-called unifractal curves that exhibit the relatively tranquil picture of the market encompassed by modern portfolio theory. But tranquillity prevails only under extraordinarily special conditions that are satisfied only by these special generators. The assumptions behind this oversimplified model are one of the central mistakes of modern portfolio theory. It is much like a theory of sea waves that forbids their swells to exceed six feet.

The beauty of fractal geometry is that it makes possible a model general enough to reproduce the patterns that characterize portfolio theory’s placid markets as well as the tumultuous trading conditions of recent months. The just described method of creating a fractal price model can be altered to show how the activity of markets speeds up and slows down — the essence of volatility. This variability is the reason that the prefix “multi-” was added to the word “fractal.”

To create a multifractal from a unifractal, the key step is to lengthen or shorten the horizontal time axis so that the pieces of the generator are either stretched or squeezed. At the same time, the vertical price axis may remain untouched. In illustration 2, the first piece of the unifractal generator is progressively shortened, which also provides room to lengthen the second piece. After making these adjustments, the generators become multifractal (M1 to M4). Market activity speeds up in the interval of time represented by the first piece of the generator and slows in the interval that corresponds to the second piece (illustration 3).

Such an alteration to the generator can produce a full simulation of price fluctuations over a given period, using the process of interpolation described earlier. Each time the first piece of the generator is further shortened — and the process of successive interpolation is undertaken — it produces a chart that increasingly resembles the characteristics of volatile markets (illustration 4).

What should a corporate treasurer, currency trader or other market strategist conclude from all this? The discrepancies between the pictures painted by modern portfolio theory and the actual movement of prices are obvious. Prices do not vary continuously, and they oscillate wildly at all timescales. Volatility — far from a static entity to be ignored or easily compensated for — is at the very heart of what goes on in financial markets. In the past, money managers embraced the continuity and constrained price movements of modern portfolio theory because of the absence of strong alternatives. But a money manager need no longer accept the current financial models at face value.

Instead multifractals can be put to work to “stress-test” a portfolio. In this technique the rules underlying multifractals attempt to create the same patterns of variability as do the unknown rules that govern actual markets. Multifractals describe accurately the relation between the shape of the generator and the patterns of up-and-down swings of prices to be found on charts of real market data.

On a practical level, this finding suggests that a fractal generator can be developed based on historical market data. The actual model used does not simply inspect what the market did yesterday or last week. It is in fact a more realistic depiction of market fluctuations, called fractional Brownian motion in multifractal trading time. The charts created from the generators produced by this model can simulate alternative scenarios based on previous market activity.

These techniques do not come closer to forecasting a price drop or rise on a specific day on the basis of past records. But they provide estimates of the probability of what the market might do and allow one to prepare for inevitable sea changes. The new modeling techniques are designed to cast a light of order into the seemingly impenetrable thicket of the financial markets. They also recognize the mariner’s warning that, as recent events demonstrate, deserves to be heeded: On even the calmest sea, a gale may be just over the horizon.

Many people believe that the markets are random. In fact, one of the most prominent investing books out there is “A Random Walk Down Wall Street” (1973) by Burton G. Malkiel, who argues that throwing darts at a dartboard is likely to yield results similar to those achieved by a fund manager (and Malkiel does have many valid points).

However, many others argue that although prices may appear to be random, they do in fact follow a pattern in the form of trends. One of the most basic ways in which traders can determine such trends is through the use of fractals. Fractals essentially break down larger trends into extremely simple and predictable reversal patterns. This article will explain what fractals are and how you might apply them to your trading to enhance your profits.

What Are Fractals?
When many people think of fractals in the mathematical sense, they think of chaos theory and abstract mathematics. While these concepts do apply to the market (it being a nonlinear, dynamic system), most traders refer to fractals in a more literal sense. That is, as recurring patterns that can predict reversals among larger, more chaotic price movements.

These basic fractals are composed of five or more bars. The rules for identifying fractals are as follows:

* A bearish turning point occurs when there is a pattern with the highest high in the middle and two lower highs on each side.
* A bullish turning point occurs when there is a pattern with the lowest low in the middle and two higher lows on each side.

The fractals shown in Figure 1 are two examples of perfect patterns. Note that many other less perfect patterns can occur, but the basic pattern should remain intact for the fractal to be valid.

Applying Fractals to Trading
Like many trading indicators, fractals are best used in conjunction with other indicators or forms of analysis. Perhaps the most common confirmation indicator used with fractals is the “Alligator indicator”, a tool that is created by using moving averages that factor in the use of fractal geometry. The standard rule states that all buy rules are only valid if below the “alligator’s teeth” (the center average), and all sell rules are only valid if above the alligator’s teeth.

Exits and the days action

By trader7757, 28 August, 2008, No Comment

I will post my trading chart later this evening…it was an exceptional day in that the market basically went straight up, with a short respite over the noon hour.

Which brings me to a timely topic, and an oft talked about topic We’ve talked some about entries, at least in a simplistic manner, but the topic of exits has not come up. If ever there were a plethora of theories on a subject, when to exit a trade ranks near the top and few traders are without some sort of opinion on the topic that differs from the next trader…and so on.

On one hand, it’s nice to let your trades run as long as you can. Of course, this is some dicey business since the market does not post neon signs indicating just when it is going to change direction. One hard and fast rule I follow is this:

Never let a winning trade become a losing trade!

This goal can be accomplished through many different means, but I still see the most errors, including my own, at exiting at the proper time. You may have read my own disgust with myself when I exit a trade several points to early. Lately I have been placing my sells 3 points (or 12 ticks) above my entry point. I have done this to take advantage of the volatility in the market lately as it can be very difficult to manually exit a trade without losing a bundle of ticks. That being said, it can be very unnerving to exit at 12 ticks and watch the index price slide up another 4 points. It is a sinking feeling indeed. Essentially then, I have been setting up bracketed 12 tick trades at my point of market entry.

Now it would be safe to point your finger at me and say, “Dave you are trading like a wimp”. You would probably be on safe ground in saying so, but the fact of the matter is simple, this low volume market has made me a bit wimpy. A bird in the hand may be as good as two in the bush.

Under normal trading conditions I use the slower of the stochastic lines to determine my exits. When that line begins a divergence from the direction of the trade I am in I exit. However, the psychotic nature of the market traders lately would force me to have much faster reactions than I have been able to exhibit. I will devote a full blog entry to using the stochastic to exit trades in a future post, as it takes a bit of explanation to assimilate the information.

I am also very cognizant of price exhaustion while in a trade, and price exhaustion can provide a piece of your exit strategy if used properly. Higher highs, and lower lows and deviation from market direction, a fractal, are indications of a possible change in market direction. Again, with so much information to cover, I will save extended discussion of my pet market direction indicator, the fractal, for later discussion. For now, you could consider successive higher highs and higher lows as a continuation of a market directional move to the upside, and conversely, low lows and lower highs as the corollary pattern on the short side.

a nidday futures trading recap

By trader7757, 27 August, 2008, No Comment

ESU8 Click on chart to enlarge

As you can easily see, the market charged ahead today, despite a rise in crude oil price because of the rise in durable good orders. I took a long positions and made only three trades. As usual, I was a bit hasty in my exits, as is my nature, but pulled out 8.5pts@5 contracts. There were some very nice moves in the market today and it was not difficult to make the proper entry positions based upon the CCI criteria I have expounded on earlier….feel free to enlarge the chart and find where you may have entered.

The intoxicating effect of money.

By trader7757, 26 August, 2008, No Comment

As you continue to learn the system I am outlining you will begin to realize that making money, at least in the pure sense, is not so terribly difficult. I have a few basic rules to follow, a little common sense, some chart reading and before long you should be able to make money consistently.

But there is a little problem:

AFTER SEVERAL MONTHS OF MAKING MONEY CONSISTENTLY,

MOST PEOPLE END UP REVERSING COURSE AND LOSE ALL OF

THEIR MONEY.

The fact of the matter is that there is nothing more intoxicating than cold hard cash. Time and time again I have watched successful traders earn money and then fall flat our their faces because they could not manage the psychological aspects of making money and managing risk. Martin Pring has written an excellent book about investment psychology, and goes to great length to explain that most investors are very able to trade effectively. However, the problem with most traders lies in the intoxicating effects of earning money trading.

Typically, investors begin to take on too much risk, or make trades that fall outside the parameters of our discussion here, or tackle markets that our principles do not apply to. What I am trying to say is quite simple, really….the psychological aspect and the control of your own greed is, by far, the most challenging aspect of trading. Over trading, taking on too much risk by trading to many contracts, entering marginal trades, developing emotional attachments to trades…these are all the sign of impending disaster and I cannot stress enough that the psychological aspect in managing your trading life is far more challenging than the technical aspect of trading.

I know, I know…I can hear you all muttering….”that may be true of the other guy, but I am a very disciplined individual and this will never happen to me……”

It will happen to you, and how you learn to deal with the intoxicating effects of your cash earnings from trading will determine how well you succeed in the business. I can teach anyone to make the right trades, but I can’t get most people to make the right trades at the right times. There are no patterns in the markets, there are only spurts of momentum, or directional movement….and no matter how much you are sure that something MUST happen it probably won’t. I think it’s a Murphy’s law thing..or at least it seems to be.

Your ability to act in a completely rational manner and day in and day out execute trades as we outline will determine how successful you will be. I cannot harp on this topic enough…and I will, believe me. Investment psychology is the demise of 7 out of 10 traders. Don’t be one of the seven that fail, be one of the three that succeed.