0
(0)
نالو:
i-FractalsEx
ليکڪ: RickD (2007.08.04 09:03)
درجه بندي: 12
ڊائون لوڊ ٿيل: 18491
ڊائون لوڊ ڪريو:
i-FractalsEx 1
i-FractalsEx.mq4 (1.8 Kb) ڏيک
extern int Fr.Period = 6; - 6 bars before and 6 bars after the current bar define the fractal

extern int MaxBars = 500; - maximum number of bars for caclucalion

 

i-FractalsEx 2

11 تبصرا: 1 2 ھڪڙو نئون تبصرو پوسٽ ڪرڻ لاء, مهرباني ڪري لاگ ان يا رجسٽر

pls do we have this indicator as EA,kindly forward to me

 

[email protected]

17.07.2013 12:18 08023105152

I did a little improved and more flexibile version of this nice indicator.

#define major   1
#define minor   0

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 LimeGreen
#property indicator_width1  1
#property indicator_width2  1

extern int leftPeriod = 6;
extern int rightPeriod = 6;
extern int errorInPips = 0;
extern int nrOfPips = 4;
extern int MaxBars = 2500;

double upper_fr[];
double lower_fr[];

int minPeriod, maxPeriod;
double factorPipsToPrice;//  = 1/MathPow(10,nrOfPips);
double errorInPrice;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

void init() {
  SetIndexBuffer(0, upper_fr);
  SetIndexBuffer(1, lower_fr);

  SetIndexEmptyValue(0, 0);
  SetIndexEmptyValue(1, 0);

  SetIndexStyle(0, DRAW_ARROW);
  SetIndexArrow(0, 217);//SYMBOL_ARROWDOWN);//234

  SetIndexStyle(1, DRAW_ARROW);
  SetIndexArrow(1, 218); //233 SYMBOL_ARROWUP  

  minPeriod = MathMin(leftPeriod,rightPeriod);
  maxPeriod = MathMax(leftPeriod,rightPeriod);

  factorPipsToPrice = 1/MathPow(10,nrOfPips);
  errorInPrice = errorInPips * factorPipsToPrice;  
}

خالي شروع() 
{
  int counted = IndicatorCounted();
  جيڪڏهن (counted < 0) واپسي (-1);
  جيڪڏهن (counted > 0) counted--;

  int limit = MathMin(Bars-counted, ميڪس بارس);

  //-----

  double dy = 0;
  لاءِ (int i=1; i <= 20; i++) {
    dy += 0.3*(هاءِ[i]-گھٽ[i])/20;
  }

  لاءِ (i=minPeriod; i <= limit+minPeriod; i++) 
  {
    upper_fr[i] = 0;
    lower_fr[i] = 0;

    جيڪڏهن (is_upper_fr(i, leftPeriod, rightPeriod)) upper_fr[i] = High[i]+2*dy;
    جيڪڏهن (is_lower_fr(i, leftPeriod, rightPeriod)) lower_fr[i] = Low[i]-2*dy;
  }
}

bool is_upper_fr(int bar, int leftPeriod, int rightPeriod) { 
  int i;

  لاءِ (i=1; i<=leftPeriod; i++) 
  {
    جيڪڏهن (bar+i >= بار) واپسي (ڪوڙو);
    جيڪڏهن (هاءِ[بار] < هاءِ[bar+i] - errorInPrice) واپسي (ڪوڙو);
  }

  لاءِ (i=1; i<=rightPeriod; i++) 
  {
    جيڪڏهن (bar-i < 0) واپسي (ڪوڙو);
    جيڪڏهن (هاءِ[بار]< هاءِ[bar-i] - errorInPrice) واپسي (ڪوڙو);
  }

  واپسي (سچو);
}

bool is_lower_fr(int bar, int leftPeriod, int rightPeriod) {
  int i;
  لاءِ (i=1; i<=leftPeriod; i++) 
  {
    جيڪڏهن (bar+i >= بار) واپسي (ڪوڙو);
    جيڪڏهن (گھٽ[بار] > گھٽ[bar+i] + errorInPrice) واپسي (ڪوڙو);
  }
  لاءِ (i=1; i<=rightPeriod; i++) 
  {
    جيڪڏهن (bar-i < 0) واپسي (ڪوڙو); 
    جيڪڏهن (گھٽ[بار] > گھٽ[bar-i] + errorInPrice) واپسي (ڪوڙو);
  }
  واپسي (سچو);
}

Improvements:

1. changed colors,

2. changed arrows (exactly like Williams fractals)

3. custom left period and custom right period of the fractal,

4. custom number of pips

5. custom error in pips (more flexible comparing between current bar and left/right bars)

06.10.2010 17:52 mishhh

WOULD SOMEBODY PLEASE HELP ME. I DOWNLOADED IFRACTALsEX.MQ4, BUT IT DOES NOT COME UP ON CHART. iNDICATOR WINDOWS SAYS ITS THERE BUT NOTHING SHOWS. I TRIED "COMPLING", STILL DOESNT WORK. WHAT SHOULD I DO ?????????????????

26.07.2009 11:44 yogibear13

Wonderful, درست Fractals-ZigZag! I love this Indicator! Thank You very, very much!

28.05.2009 19:25 Poster

This indicator looks nice for average traders for a start.

مهرباني

15.11.2007 11:57 webwareshop

The problem with Fractal indicators is usually you have to wait for the length of the fractal after its occurrence to actually find out it was a fractal. It appears this is the case for this indicator.

Do the arrows plot on the current price bar or six ( ڊفالٽ ) periods after the occurrence of the high?

11.11.2007 22:39 gumpat

ruffneck75 wrote:
What do the arrows mean,which is to buy and which is to sell...

Dear ruffneck 75:
I think Yellow arrow (From bottom to top) means BUY & Red arrow (From top to bottom) means SELL. It seems very good signals at H4 and Upper time frames but if not be currective.
did u test it in different time frames for know currection specification of this inidicator?

06.11.2007 23:28 ma3x4x

2 سوال: 1st: Is it Corrective indicator or not? Seems very good BUY / SELL Signals at 4 Hours Time Frame and Upper than, But if arrows not be currective.
2nd: Are arrows genesis after candlesticks Finishing or can be change during chandle generation from buy to sell (or sell to buy) ?
06.11.2007 23:22 ma3x4x

What do the arrows mean,which is to buy and which is to sell...
03.11.2007 23:46 ruffneck75

but what's means this? when the arrow do appears?

هي پوسٽ ڪيترو مفيد هو?

ان کي ريٽ ڪرڻ لاء اسٽار تي ڪلڪ ڪريو!

سراسري درجه بندي 0 / 5. ووٽن جي ڳڻپ: 0

هن وقت تائين ڪوبه ووٽ ناهي! هن پوسٽ جي درجه بندي ڪرڻ لاء پهريون ٿيو.

اسان کي افسوس آهي ته هي پوسٽ توهان لاء مفيد نه هئي!

اچو ته هن پوسٽ کي بهتر بڻايون!

اسان کي ٻڌايو ته اسان هن پوسٽ کي ڪيئن بهتر ڪري سگهون ٿا?



ليکڪ: فاریکس وڪي ٽيم
اسان انتهائي تجربيڪار فاریکس واپارين جي ٽيم آهيون [2000-2023] جيڪي اسان جي پنهنجي شرطن تي زندگي گذارڻ لاءِ وقف آهن. اسان جو بنيادي مقصد مالي آزادي ۽ آزادي حاصل ڪرڻ آهي, ۽ اسان خود تعليم حاصل ڪئي آهي ۽ فاریکس مارڪيٽ ۾ وسيع تجربو حاصل ڪيو آهي جيئن اسان جو مطلب هڪ خودمختاري واري زندگي گذارڻ جي لاءِ آهي..