Description of the Expert advisor which I want to
create.
First
Part
Firstly I
want to create 2 fractal points. A high fractal point and a low fractal point.
By high fractal
point we mean a 5 bars formation where there is a central bar and 2 bars on the
left with lower highs and 2 bars on the right with lower highs
By low fractal point
we mean a 5 bars formation where there is a central bar and 2 bars on the left
with higher lows and 2 bars on the right with higher lows
I know how
to create this part:
High
fractal
H>Ref(H,-1)
AND H>Ref(H,-2) AND H>Ref(H,+1) AND H>Ref(H,+2)
Low
fractal
L<Ref(L,-1)
AND L<Ref(L,-2) AND L<Ref(L,+1) AND L<Ref(L,+2)
Second
Part
After we
created the high and low fractals now we must Defined the trend
Bullish trend: we have when we have upwards
breakout by one tick comparing the
previous 2 high fractals in a row
Example: we have one high fractal at 11500 on
30/6/08 and a second high fractal at 11400 on 5/7/08.Now if we have a break by
one tick higher from the 11500 we have bullish trend the opposite for Bearish trend
Bearish trend: we have ,when we have downwards
breakout by one tick comparing the
previous 2 low fractals in a row
Third
part
After we
defined the bullish and bearish trend from the second part now I want:
For the bullish trend
Every time
we have bullish trend I want you to colored with green color every bar has
lower low from the 2 previous bars on the left.
For the bearish trend
Every time
we have bearish trend I want you to colored with red color every bar has higher
high from the 2 previous bars on the left