MagnifyCFB (Composite Fractal Behavior) indicators for MT4

1
CFB (Composite Fractal Behavior) indicators for MT4

In describing the cfb I am going to cheat : since it was invented by Jurik, here is what he is saying about it :

What is the Theory Behind CFB ?

CFB tells you how long the market has been in a quality trend. This value can be used to adjust the period length of other indicators, especially stochastic bands.

In order to quantify the overall duration of a market's trend, we replaced classical cycle analysis methods (FFT, MEM, MESA) with a form of analysis that works even when no cycles exist. We accomplished this by examining a time series for specific fractal patterns of any size. We then gather all the patterns found and combine them into one overall index, CFB (Composite Fractal Behavior) Index.

For good reason, CFB does not analyze time series data for dominant cycles. Classical cycle analysis examines data points (e.g. prices) and estimates the average presence of a cycle in the window. Now suppose a cycle with a period length of 9 days was strong for 50 days and then disappeared for the next 14 days. Because the cycle was present for 50 out of the last (50+14=64) days, the average presence of that cycle would be measured as "strong" even though it does not exist anymore!

Does CFB find the Dominant Cycle ?

No! Consider the following discussion about the MYTH of exploiting dominant cycles.

It is true that the market does have predictable cycles due to its "structural" or physical nature. For example, quarterly earning cycles, triple witching cycles, Federal Reserve meetings, weekly cycles, political election year cycles, the annual end-of-year stock dumping cycle, sunspot cycles, and the slow Kitchin (3-5 years), Juglar (7-11 years), Kuznet (15-25 years) and Kondratieff (45-60 years) cycles. They are very predictable and the markets readily discount their presence as far ahead in time as is reasonable. So there's not much left with regard to those cycles for you to exploit.

What traders see as cycles on an hourly chart, for example, is a different matter. The big, obvious cycles you see on price charts are actually the result of a combination of many weak cyclic forces that sometimes line up in phase to produce APPARENT dominant cycles that suggest the presence of a strong structural cycle that, in fact, does not exist. The slightest shifting in phase of any one component (due to crowd psychology, unscheduled events, etc.) will significantly alter the structure of the apparent dominant wave. This may drive the cycle into a "null" or random period, then reappear, completely out of phase. Now you see it ... and now you don't.

The transitory nature of these apparent dominant cycles makes their automated detection difficult and forecast unreliable. Sometimes cycle forecasting tools appear accurate and other times they are totally off mark. The reason is that tools designed to spot dominant cycles will announce whatever they find, even if they are only apparent (not structural) and transitory. For example, such tools would have no problem detecting cycles in the six charts below. But there is just one problem --- the slow cyclic price action in the six charts below is *impossible* to project into the future with any reasonable accuracy!

Why? Because we produced these six charts by simply adding consecutive random price changes. That's right!! These charts are nothing more than RANDOM WALKS. And by definition, they cannot be forecasted, no matter how impressive their apparent cyclic behavior may be!

The chart above does not "prove" market cycles are non-existent. Indeed, discretionary traders can learn to spot and use periodic price events, and take time to "understand" their causes, in order to verify whether the relevant triggers have actually occurred.

This demonstration does show, however, that cycle-finding tools like FFT, MESA and periodigrams, which have no understanding of market cause-effect relationships, can be easily fooled into seeing ghosts. In contrast, our CFB tool was designed to measure market trending action without assuming the existance of cycles. This makes CFB more reliable.

How would I use CFB's results ?

CFB produces a value proportional to a time series' trend duration. This value is in units of TIME, as measured in bars on a chart. Because CFB's output is in units of time and not price, CFB offers a unique window into a new dimension for representing signal behavior.

Investors have discovered many profitable ways to apply CFB:* To auto-adjust the lookback of classical indicators, such as RSI* To auto-adjust the lookback depth of breakout channels in trending markets* To auto-adjust the minimum amount of retracement needed to reverse position.

Making a profit in the market requires your finding a unique niche that very few other people are exploiting. CFB offers this unique perspective.

Do I specify a "period length" for CFB ?

In CFB, period length determines how many bars (time slices) are examined for specific fractal patterns. Due to the complexity of the algorithm, CFB permits only four period lengths: 24, 48, 96, 192.

The 24-bar version can see trend fractals up to 24 bars wide, and so on. You get all four versions when ordering CFB.

________________________________
Now that was Jurik

The main problem in building this indicator for metatrader was the shear number of buffers it must use for its calculations and the calculations itself. There were some attempts to make it, but those were stopped at a first step : making a basic calculation function and that was all that was done.

This is the "real" one. With some additions of course In this indicator the "period" is replaced with "depth" :

  • depth 1 -> period 24
  • depth 2 -> period 32
  • depth 3 -> period 48
  • depth 4 -> period 64
  • depth 5 -> period 96
  • depth 6 -> period 128
  • depth 7 -> period 192

What deviates from Juriks cfb is the post smoothing : since the slope should determine the "trending" or "no trending" that I thought that some smoothing would not hurt.

Smoothing used is the one from one more average and gives satisfactory results.

Do not confuse the Smooth parameter with SmoothResult, SmoothSpeedand SmoothAdaptiveparameters. Smooth is a part of cfb calculations and the last 3 are used to smooth the already calculated cfb. 
These users thanked the author mladen for the post (total 3):
ratonchjes, 太虚一毫, Chickenspicy


Re: CFB (Composite Fractal Behavior) indicators for MT4

2
Instead of adding the old, here is the new cfb channel (as I promised, whenever we can we shall post newer versions - that does not mean that all will be new, but when something that improves it can be done, it will be done)

It is made user friendly with some more additions - now it can be used in a "trend mode" too
These users thanked the author mladen for the post (total 2):
太虚一毫, DILLOooooooo1

Re: CFB (Composite Fractal Behavior) indicators for MT4

3
This is a dynamic zone cfb with any symbol and time frame options, also added the 22 price options.

Added an adjustable upper/lower trigger levels.

Seems a lot of times when the purple cfb crosses the levels coming down and crosses them again going up and then crosses the dynamic zone dotted line there are some good trades.

Also the upper dynamic zone to me is a good time for exiting a trade, as it crosses that zone downward.
These users thanked the author mrtools for the post:
太虚一毫


Re: CFB (Composite Fractal Behavior) indicators for MT4

8
cfb channel new on ds jurik mtf nmc
in picture the blue yellow red lines on H1 chart with H4 TF,bars are from ptl indicator
These users thanked the author mntiwana for the post (total 3):
ardalan1991, 太虚一毫, Jedidiah
Indicator is just a tool.

Use it only if it can benefit you. Leave it if you don't know how to use it optimally.


Who is online

Users browsing this forum: ChatGPT [Bot], FXSurf, Jimmy, ParallelNative, Tbot [Bot], TEAMTRADER, Telegram [Bot] and 100 guests