0
(0)
Имя:
я-ФракталыEx
Автор: РикД (2007.08.04 09:03)
Рейтинг: 12
Скачано: 18491
Скачать:
i-FractalsEx 1
i-FractalsEx.mq4 (1.8 Кб) Вид
extern int Fr.Period = 6; - 6 бары до и 6 bars after the current bar define the fractal

extern int MaxBars = 500; - максимальное количество баров для каклукалиона

 

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.

#определить основные   1
#определить второстепенный   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() {
  Сетиндексбуффер(0, upper_fr);
  Сетиндексбуффер(1, lower_fr);

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

  Сетиндексстиле(0, DRAW_ARROW);
  сетиндексарроу(0, 217);//SYMBOL_ARROWDOWN);//234

  Сетиндексстиле(1, DRAW_ARROW);
  сетиндексарроу(1, 218); //233 SYMBOL_ARROWUP  

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

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

недействительный старт() 
{
  int подсчитано = IndicatorCounted();
  если (подсчитано < 0) возвращаться (-1);
  если (подсчитано > 0) подсчитано--;

  int limit = MathMin(Bars-counted, МаксБарс);

  //-----

  double dy = 0;
  для (интервал я = 1; я <"=" 20; я++) {
    dy += 0.3*(Высокий[я]-Низкий[я])/20;
  }

  для (i=minPeriod; я <= limit+minPeriod; я++) 
  {
    upper_fr[я] "=" 0;
    lower_fr[я] "=" 0;

    если (is_upper_fr(я, leftPeriod, rightPeriod)) upper_fr[я] = High[я]+2*dy;
    если (is_lower_fr(я, leftPeriod, rightPeriod)) lower_fr[я] = Low[я]-2*dy;
  }
}

bool is_upper_fr(int bar, int leftPeriod, int rightPeriod) { 
  в я;

  для (я=1; я<=leftPeriod; я++) 
  {
    если (bar+i >= Бары) возвращаться (ЛОЖЬ);
    если (Высокий[бар] < Высокий[bar+i] - errorInPrice) возвращаться (ЛОЖЬ);
  }

  для (я=1; я<=rightPeriod; я++) 
  {
    если (bar-i < 0) возвращаться (ЛОЖЬ);
    если (Высокий[бар]< Высокий[bar-i] - errorInPrice) возвращаться (ЛОЖЬ);
  }

  возвращаться (истинный);
}

bool is_lower_fr(int bar, int leftPeriod, int rightPeriod) {
  в я;
  для (я=1; я<=leftPeriod; я++) 
  {
    если (bar+i >= Бары) возвращаться (ЛОЖЬ);
    если (Низкий[бар] > Низкий[bar+i] + errorInPrice) возвращаться (ЛОЖЬ);
  }
  для (я=1; я<=rightPeriod; я++) 
  {
    если (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, точный фракталы-Зигзаг! 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 (Сверху вниз) 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 Вопросы: 1ул.: Это Corrective indicator or not? Seems very good BUY / SELL Signals at 4 Hours Time Frame and Upper than, But if arrows not be currective.
2й: 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

Голосов пока нет! Будьте первым, кто оценит этот пост.

Сожалеем, что этот пост не оказался для вас полезным!

Давайте улучшим этот пост!

Расскажите нам, как мы можем улучшить этот пост?



Автор: Команда Форекс Вики
Мы команда опытных трейдеров Forex. [2000-2023] которые посвящены жизни на наших собственных условиях. Наша основная цель - достижение финансовой независимости и свободы, и мы занимались самообразованием и приобрели обширный опыт на рынке Forex, чтобы достичь самодостаточного образа жизни..