MQL4 - automated forex trading   /  

Code Base

Code Base  Indicators  Fractal Graph Dimension Indicator (FGDI) To post a new code, please log in or register

Download MetaTrader 5 and visit MQL5.community Code Base
and Trade on the Go!
Prepare for the Championship
Couldn't find the right code? Order it in the Jobs section

This library is for
MetaTrader 4
Download MT 4 - 455 Kb

and Trade on the Go!

Name:
Fractal Graph Dimension Indicator (FGDI)
Author: jppoton (2009.04.21 08:14)
Downloaded: 4768
Download:
 FGDI.mq4 (19.1 Kb) View

This a rework of a script by iliko called Fractal dimension and that can be found here: http://codebase.mql4.com/2275

In there, I corrected two minor errors, and added a calculation and representation of the standard deviation of the estimation of the box-counting dimension. The two minor errors were the following:

- At line 199:
Instead of : for( iteration=0; iteration < g_period_minus_1; iteration++ )
It should be : for( iteration=0; iteration <= g_period_minus_1; iteration++ )

- At line 213:
Instead of : fdi=1.0 +(MathLog( length)+ LOG_2 )/MathLog( 2 * e_period );
It should be : fdi=1.0 +(MathLog( length)+ LOG_2 )/MathLog( 2 * g_period_minus_1);


For further details, see my blog: http://fractalfinance.blogspot.com/

Here is what it looks like on a daily chart for EUR/USD, the lower window represents the original fractal dimension by iliko, and the moving average is the FRASMA I published earlier:



0 comments  To post a new comment, please log in or register