Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Suggestions for Trading Systems


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (3) Thread Tools Display Modes
  3 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-22-2007, 07:54 PM
Junior Member
 
Join Date: Mar 2006
Posts: 23
PipRippy is on a distinguished road
TASC 03/07 Fractal Dimension Index

To any friendly metatrader coder:

In the new Technical Analysis of Stocks and Commodities, there is a article by Radha Panini, it is the second article in a series. The first article went on about hurst applications and I thought at first it was going to be a promo for mesa or John Ehlers digital systems.

The second article shows a indicator called the Fractal dimension index. It is a indicator that shows strength of trend- it is compared to the vertical horizontal filter, ADX, DMI. I have used adx on most of my trades, as most traders are aware ADX it is a little slow and a little late- but can be used to make general assumptions about trending/range state. I also tried the vertical horizontal filter- but I could not find a consistent way to apply the indicator. It seems, as traders, that we are always searching for a better indicator.

This indicator backtested very favorable and of course only a email was listed for further inquiry- Sounds like a money grab. I did a search and I found some code for the indicator. It does not appear to be copyrighted.

Here is a earlier article pdf:

http://www.fractalfinancecubed.com/u...rik%20Long.pdf

Here is code for tradestation:
{ ************ Program to Calculate Fractal Dimension of Waveforms
Based on code by Carlos Sevcik,
"A procedure to Estimate the Fractal Dimension of Waveforms",
see <a href="http://www.csu.edu.au/ci/vol05/sevcik/sevcik.html " target="_blank">http://www.csu.edu.au/ci/vol05/sevcik/sevcik.html </a>
Thanks for Alex Matulich for points out this article
<a href="http://unicorn.us.com/ " target="_blank">http://unicorn.us.com/ </a>}

Inputs:
N ( 30 ) ;

variables:
Diff( 0 ),
Length( 0 ),
PriceMax ( 0 ),
PriceMin( 0 ),
PriorDiff( 0 ),
Iteration( 0 ),
FractalDim( 0 ) ;

PriceMax = Highest( Close , N ) ;
PriceMin = Lowest( Close, N ) ;
Length = 0 ;
PriorDiff = 0 ;
for Iteration = 1 TO N -1
begin
if (PriceMax - PriceMin) > 0 then
begin
Diff = (Close[Iteration] - PriceMin) / (PriceMax - PriceMin) ;
if (Iteration> 1) then
begin
Length = Length + SquareRoot( Square(Diff - PriorDiff) + (1 / Square(N)) ) ;
end ;
PriorDiff = Diff ;
end ;
end ;
if Length > 0 then
FractalDim = 1 + ( LOG( Length )+ LOG( 2 ) ) / LOG( 2 * ( N ) )
else
FractalDim = 0 ;
Plot1( FractalDim ) ;

from link:
https://www.tradestation.com/discuss...Topic_ID=13542

more links about indicator:

http://www.fractalfinance.com/software.html

I hope somebody will take the time to code this indicator- it appears that it could be applied to a robust EA!

Thank You,
M Rippy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-23-2007, 08:42 PM
iliko's Avatar
Junior Member
 
Join Date: Jul 2006
Location: France
Posts: 1
iliko is on a distinguished road
I have just finished it.

I hope there is no bug. It's Friday evening so I can not test it in live .
Attached Files
File Type: mq4 ___fractal_dimension.mq4 (20.3 KB, 405 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-23-2007, 11:25 PM
Senior Member
 
Join Date: Jun 2006
Posts: 1,091
prasxz is on a distinguished road
hi

Quote:
Originally Posted by PipRippy
To any friendly metatrader coder:

In the new Technical Analysis of Stocks and Commodities, there is a article by Radha Panini, it is the second article in a series. The first article went on about hurst applications and I thought at first it was going to be a promo for mesa or John Ehlers digital systems.

The second article shows a indicator called the Fractal dimension index. It is a indicator that shows strength of trend- it is compared to the vertical horizontal filter, ADX, DMI. I have used adx on most of my trades, as most traders are aware ADX it is a little slow and a little late- but can be used to make general assumptions about trending/range state. I also tried the vertical horizontal filter- but I could not find a consistent way to apply the indicator. It seems, as traders, that we are always searching for a better indicator.

This indicator backtested very favorable and of course only a email was listed for further inquiry- Sounds like a money grab. I did a search and I found some code for the indicator. It does not appear to be copyrighted.

Here is a earlier article pdf:

http://www.fractalfinancecubed.com/u...rik%20Long.pdf

Here is code for tradestation:
{ ************ Program to Calculate Fractal Dimension of Waveforms
Based on code by Carlos Sevcik,
"A procedure to Estimate the Fractal Dimension of Waveforms",
see <a href="http://www.csu.edu.au/ci/vol05/sevcik/sevcik.html " target="_blank">http://www.csu.edu.au/ci/vol05/sevcik/sevcik.html </a>
Thanks for Alex Matulich for points out this article
<a href="http://unicorn.us.com/ " target="_blank">http://unicorn.us.com/ </a>}

Inputs:
N ( 30 ) ;

variables:
Diff( 0 ),
Length( 0 ),
PriceMax ( 0 ),
PriceMin( 0 ),
PriorDiff( 0 ),
Iteration( 0 ),
FractalDim( 0 ) ;

PriceMax = Highest( Close , N ) ;
PriceMin = Lowest( Close, N ) ;
Length = 0 ;
PriorDiff = 0 ;
for Iteration = 1 TO N -1
begin
if (PriceMax - PriceMin) > 0 then
begin
Diff = (Close[Iteration] - PriceMin) / (PriceMax - PriceMin) ;
if (Iteration> 1) then
begin
Length = Length + SquareRoot( Square(Diff - PriorDiff) + (1 / Square(N)) ) ;
end ;
PriorDiff = Diff ;
end ;
end ;
if Length > 0 then
FractalDim = 1 + ( LOG( Length )+ LOG( 2 ) ) / LOG( 2 * ( N ) )
else
FractalDim = 0 ;
Plot1( FractalDim ) ;

from link:
https://www.tradestation.com/discuss...Topic_ID=13542

more links about indicator:

http://www.fractalfinance.com/software.html

I hope somebody will take the time to code this indicator- it appears that it could be applied to a robust EA!

Thank You,
M Rippy
Hi that's interesting indicator.....

===================
Forex Indicators Collection
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2007, 10:31 AM
SIMBA's Avatar
Senior Member
 
Join Date: May 2006
Posts: 973
SIMBA is on a distinguished road
Piprippy&iliko

PipRippy:Thanks for posting the code of this unbelievably useful indicator,as well as all the additional info on its potential meanings

Iliko:Thanks for converting to .mq4 the above mentioned indicator..I have been testing on "closed charts" and it seems to work just fine,let`s see next week with live data though it looks very promising

Thanks again to both and regards
Simba
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-19-2007, 09:09 AM
Senior Member
 
Join Date: Mar 2006
Posts: 717
barnix is on a distinguished road
FDI
-Wrong Signals
Attached Images
File Type: gif fdi_1.gif (29.0 KB, 880 views)
Attached Files
File Type: mq4 Waddah_Attar_BUY_SELL_Vol_mod_v02.mq4 (3.3 KB, 95 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-19-2007, 01:28 PM
Senior Member
 
Join Date: Feb 2006
Posts: 1,098
et_phonehome_2 is on a distinguished road
barnix

I do not think the FDI is meant to be a trading signal.
Attached Images
File Type: jpg FDI.jpg (38.7 KB, 837 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-21-2007, 02:50 PM
Member
 
Join Date: Mar 2006
Posts: 47
derikb is on a distinguished road
Hi,

I think there is an error in the following line:

for( iteration = 0; iteration < g_period_minus_1; iteration++ )

it must be replaced with

for( iteration = 0; iteration <= g_period_minus_1; iteration++ )

It can be found in the _computeFdi subroutine:

void _computeFdi( int lastBars, double inputData[] )

This doesn't change the result much.

Regards
Derik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-05-2008, 08:12 AM
Junior Member
 
Join Date: May 2006
Posts: 3
myfx is on a distinguished road
Question any idea about using fdi into an ea

I am trying to integrate fractal_dimension inside an expert , based on if the fdi < e_random_ligne -> trending and if fdi> e_random_ligne -> volatile, and that by using icustom or any other function. Please I need some help on this.
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-05-2008, 09:41 AM
Junior Member
 
Join Date: May 2006
Posts: 3
myfx is on a distinguished road
Question any idea about using fdi into an ea

I am trying to integrate fractal_dimension inside an expert , based on if the fdi < e_random_ligne -> trending and if fdi> e_random_ligne -> volatile, and that by using icustom or any other function. Please I need some help on this.
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/suggestions-trading-systems/6119-tasc-03-07-fractal-dimension-index.html
Posted By For Type Date
???????EA - ?MT4??? - 520FX[??|??|??|MT4|EA] - Powered by Discuz! This thread Refback 08-27-2008 07:53 AM
分形理论及相关EA - 【MT4交流】 - 520FX[黄金|外汇|证券|MT4|EA] - Powered by Discuz! This thread Refback 06-26-2008 01:29 PM
Fractal dimension - MQL4 Code Base This thread Refback 01-22-2008 05:07 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
JPYX index like USDX index.. endy Metatrader 4 0 04-10-2007 04:57 PM
Fractal indicator MacDaddy Indicators - Metatrader 4 7 08-04-2006 03:55 PM
Fractal EA yass Expert Advisors - Metatrader 4 1 05-07-2006 06:31 AM
Fractal Projection 006 Suggestions for Trading Systems 3 02-16-2006 06:17 PM


All times are GMT. The time now is 05:42 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.