Fractals - page 17

 

is this the right place to post

I hope this makes sense

Simply

I am thinking of a Megafractal I-Ching trendline indy that counts 3 sets of fractal high or lows and uses those 3 Fractals a b c to form 1 megafractal

(1 fractal= low with 1 closed bar higher on either side or high with 1 lower either side- adjustable would be great)

and needs another 3x3 set (Fractal 2)

then draws a trendline and support/ resistance lines from high and low between the 2 megafractals-

I would like to be able to pick linear or overlaping-

ie fractal 123 456 789 or 123 234 345

or even how many and which fractals to take after a selectable 1 and MTF, selectable colors- which megafractals(ie megafractal 3, 4 etc) to take, everything...lol

Not so simply, and not sure if it's useful or what to do with the I-Ching part-

We will refer to up as a low or down as a high and as + and - respectively ie.

+, up -, down- I realise this is backwards

1..1...........1

..1...........1..1

Fractals may be in individual up or down states therefore we actually have

8 +/- permutations-

heaven + + +

earth - - -

fire + - +

water - + -

mountain + - -

lake - + +

wind + + -

thunder - - +

x 9 possible fractal set positons

...2........1..3....1...........3.....1 2 3.......1.................3.....1 2..........2 3

1..3. ......2........2.......2.........................2 3 .....1 2............3......1

..........................3...1

- any thoughts/ help would be great-

ps

I can't code, but have lots of ideas- if you really,actually help me I will pm you (after I make 10 posts) my system I just got 19 of 20 live trades right with(started with $2 so you know why I don't hire a coder), and thanks.

 
angrysky:
I hope this makes sense

Simply

I am thinking of a Megafractal I-Ching trendline indy that counts 3 sets of fractal high or lows and uses those 3 Fractals a b c to form 1 megafractal

(1 fractal= low with 1 closed bar higher on either side or high with 1 lower either side- adjustable would be great)

and needs another 3x3 set (Fractal 2)

then draws a trendline and support/ resistance lines from high and low between the 2 megafractals-

I would like to be able to pick linear or overlaping-

ie fractal 123 456 789 or 123 234 345

or even how many and which fractals to take after a selectable 1 and MTF, selectable colors- which megafractals(ie megafractal 3, 4 etc) to take, everything...lol

Not so simply, and not sure if it's useful or what to do with the I-Ching part-

We will refer to up as a low or down as a high and as + and - respectively ie.

+, up -, down- I realise this is backwards

1..1...........1

..1...........1..1

Fractals may be in individual up or down states therefore we actually have

8 +/- permutations-

heaven + + +

earth - - -

fire + - +

water - + -

mountain + - -

lake - + +

wind + + -

thunder - - +

x 9 possible fractal set positons

...2........1..3....1...........3.....1 2 3.......1.................3.....1 2..........2 3

1..3. ......2........2.......2.........................2 3 .....1 2............3......1

..........................3...1

- any thoughts/ help would be great-

ps

I can't code, but have lots of ideas- if you really,actually help me I will pm you (after I make 10 posts) my system I just got 19 of 20 live trades right with(started with $2 so you know why I don't hire a coder), and thanks.

A MegaFractal is a unique concept I never though of. When you get to 10 posts send me a PM. I would like to hear your other ideas too.

 

Here is one

When indicators on different tf, or major indicators on single tf oppose I believe we frequently have consolidation- we need a warning system that uses that theory-

But I might ask you to take down your last post if I take mine down- just not sure if I want to share my ideas with 150,000 traders ?

 
angrysky:
I hope this makes sense

Simply

I am thinking of a Megafractal I-Ching trendline indy that counts 3 sets of fractal high or lows and uses those 3 Fractals a b c to form 1 megafractal

(1 fractal= low with 1 closed bar higher on either side or high with 1 lower either side- adjustable would be great)

and needs another 3x3 set (Fractal 2)

then draws a trendline and support/ resistance lines from high and low between the 2 megafractals-

I would like to be able to pick linear or overlaping-

ie fractal 123 456 789 or 123 234 345

or even how many and which fractals to take after a selectable 1 and MTF, selectable colors- which megafractals(ie megafractal 3, 4 etc) to take, everything...lol

Not so simply, and not sure if it's useful or what to do with the I-Ching part-

We will refer to up as a low or down as a high and as + and - respectively ie.

+, up -, down- I realise this is backwards

1..1...........1

..1...........1..1

Fractals may be in individual up or down states therefore we actually have

8 +/- permutations-

heaven + + +

earth - - -

fire + - +

water - + -

mountain + - -

lake - + +

wind + + -

thunder - - +

x 9 possible fractal set positons

...2........1..3....1...........3.....1 2 3.......1.................3.....1 2..........2 3

1..3. ......2........2.......2.........................2 3 .....1 2............3......1

..........................3...1

- any thoughts/ help would be great-

ps

I can't code, but have lots of ideas- if you really,actually help me I will pm you (after I make 10 posts) my system I just got 19 of 20 live trades right with(started with $2 so you know why I don't hire a coder), and thanks.

okay wasn't that is like 3_Level_ZZ_Semafor?

 

Seems kind of like it- not as many options- but its ok, thanks-

 

Help with Fractal data

hello,

iam working on an simple Ea, but iam not an professional coder. Now iam searching a metod for use Fractal indicator data into an Ea. I have found a code to find the last Fractal data in an other Ea, and this Code works fine:

for(int a=1;a<Bars;a++)

{

if(iFractals(NULL,LowerTF,MODE_UPPE R,a)!=0)

{

LastUpFractal=iFractals(NULL,LowerT F, MODE_UPPER,a);

TimeOfLastUpFractal=Time[a];

break;

}

}

but now i am searching a possibility to found also the data from the high low Fractal indicator before the last value, for example the value of the second high before the last high, to compare the values, is this possible?

thank you in advance

Zickzack

 

A Better Fractal

I realized that the fractal program that I've been using is wrong, especially at greater than 1 hour time frames (when the high or low happens at the beginning or end of a bar). So I wrote one that is accurate through weekly, and is almost always right on monthly (different days per month is a challenge). In any case, it is much better than the one I've been using that I picked up here.

The code for the Fractal subroutine is below - it can be pasted into programs which use the old one. I've attached a single TF Fractal indicator. The code is within to display all the TF's (commented out). I usually use single timeframes.

Enjoy!

Glen

//----------------New Improved Fractal Routine--------------------------------------------------

bool Fractal (string F,int TF, int shift)

{

int barsback, barsforward, TFbarsback, TFbarsforward, M, i;

int Per = Period();

datetime barbegin = Time[shift];

int monthdays[12] = {31,28,31,30,31,30,31,31,30,31,30,31};

if(TF == 0) TF = Period();

if (Period()>TF) return(false);

int dom = TimeDay(barbegin);

int dow = TimeDayOfWeek(barbegin);

int hour = TimeHour(barbegin);

int min = TimeMinute(barbegin);

int month = TimeMonth(barbegin);

switch(TF)

{

case 1:

case 5:

case 15:

case 30:

case 60:

TFbarsback = MathMod(min,TF)/Per;

TFbarsforward = TF/Per - TFbarsback -1;

barsback = TF/Per*2+TFbarsback;

barsforward = TF/Per*2+TFbarsforward;

break;

case 240:

case 1440:

M = hour*60+min;

TFbarsback = MathMod(M,TF)/Per;

TFbarsforward = TF/Per - barsback -1;

if(dow>=3)

barsback = TF/Per*2+TFbarsback;

else

barsback = TF/Per+TFbarsback;

if(dow<=3)

barsforward = TF/Per*2+TFbarsforward;

else

barsforward = TF/Per+TFbarsforward;

break;

case 10080:

M = dow*1440+hour*60+min;

TFbarsback = MathMod(M,TF)/Per;

TFbarsforward = 8640/Per - barsback -1; // don't include saturdays

barsback = TF/Per*2+TFbarsback;

barsforward = TF/Per*2+TFbarsforward;

break;

case 43200:

int daysback = dom - MathCeil((dom-dow-1)/7); // Cancel out saturdays

int totaldays = monthdays[month] - MathFloor((monthdays[month]-dom-dow-1)/7) + daysback; // Cancel out saturdays

M = daysback*1440+hour*60+min;

TFbarsback = MathMod(M,TF)/Per;

TFbarsforward = totaldays*1440/Per - barsback -1;

barsback = TF/Per*2+TFbarsback;

barsforward = TF/Per*2+TFbarsforward;

break;

default:

Print(" Invalid Timeframe");

return(false);

break;

}

if (shift<barsforward)return(false);

if (shift>Bars-barsback)return(false);

for (i=1;i<=barsback;i++)

{

if (F=="U")

{

if (High[shift+i]>High[shift])return(false);

}

if (F=="L")

{

if (Low[shift+i]<Low[shift])return(false);

}

}

for (i=1;i<=barsforward;i++)

{

if (F=="U")

{

if (High[shift-i]>=High[shift])return(false);

}

if (F=="L")

{

if (Low[shift-i]<=Low[shift])return(false);

}

}

return(true);

}

Files:
 

i-FractalsEx Indicator

Does the i_FractalsEx indicator repaint after the bar has closed?

If it is a repaint, is there a version that is a non repaint?

This indicator seems most accurate on the 15M & 1H tf's, but could it be because of a repaint issue?

Any information on this someone is willing to share I would be most greatful.

$Trader

 

why is it called Fractals?

i believe that all of you guys know this indicator. made by Bill Williams.

i just don't get that why he named it as 'fractals' even it's just simple Swing Highs and Lows?

as far as i know it's nothing related with fractal or chaos theory.

am i missing something or it's just sales gimmick?

Files:
fromweb.gif  11 kb
 

Vilka fractals ...

Interesting way of using fractals :

Posting it "as is" (found it on the net)

Reason: