Fractal Modification

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Fractal Modification

Postby Pavel&Co » Tue Apr 20, 2010 9:56 am

Hi! Goooood site hear!
There is simple indicator Fractal, but it have no any flexibility... I think that it will be not very hard to make period variable. It has fixed value equal 5 presently (two bars left and two bars right from the extreme). I'll be very grateful if it will be possible to change this for example to 11,15,31,43 and so on...

Thanks a lot!
Pavel&Co
 
Posts: 4
Joined: Tue Apr 20, 2010 9:36 am


Re: Fractal Modification

Postby Pavel&Co » Thu Apr 22, 2010 4:00 am

Thanks a lot!
But it seem's that it have some other algorithm...
Fractal, as I understand it, is the bar with highest high (lowest low) from the equal number of bars left and right from it, so it is just a peak of highs and bottom of lows.
Your version of indicator do not show all of them, sorry but i couldn't understand the code to explain in detail the difference in math methods used...
Pavel&Co
 
Posts: 4
Joined: Tue Apr 20, 2010 9:36 am

Re: Fractal Modification

Postby Apprentice » Thu Apr 22, 2010 9:46 am

You're right, it is most commonly used definition of fractals.

Bearish Fractal - 5 consecutive bars, the highest high preceded and followed by two lower highs.
Bullish Fractal - 5 consecutive bars where the lowest low preceded and followed by two higher lows.

High(-2)< High(-1)< High(0) > High(1)> High(2)
Low(-2)> Low(-1)> Low(0) < Low(1) < Low(2)

From what I saw, the existing algorithm that has already been used on the platform, i have reproduce entirety.

Personally, I have no problem with existing definitions.
It gives more noise, but also provides a number of possible opportunities for analysis, and entering into a position.
I offer indicator that matches your request.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36474
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Fractal Modification

Postby Apprentice » Thu Apr 22, 2010 10:27 am

Advanced Fractal.lua
Beta
(2.08 KiB) Downloaded 824 times


Please can you try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36474
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Fractal Modification

Postby Pavel&Co » Fri Apr 23, 2010 7:05 am

Thanks!
Now, after your explanations, i can show where the difference.
In your last version of indicator algorithm the key word "consecutive", where highs (lows) should be consecutively higher (lower). It is good when timeframe large and period of fractal small. But when you use small timeframe (1min for example) and large period (>10) then these conditions are extremely tough. In your last version you have to look hard for signals with period > 15...
So, for such circumstances the condition of consecutiveness is too rigid, to my mind. That is what i wanted to find in modified fractal.
Pavel&Co
 
Posts: 4
Joined: Tue Apr 20, 2010 9:36 am


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 20 guests