stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

I found out why fractal indicator must have a shift >=2
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5943
Page 1 of 1
Author:  chiefkeef [ Sat Oct 10, 2020 8:26 pm ]
Post subject:  I found out why fractal indicator must have a shift >=2

I got confused why mql4, required the fractal indicator to have a minimum shift of two. I then realised, the way the indicator works, is that to get a final value, it has to have a lower low or a higher high (depending on if it is upper or lower mode). This means to get a final value it has to wait to see what the result of the next bar is.

This confused me for a bit, and I couldn't find any help online, so I'm putting this out there to help any future traders. Hello btw.
Author:  SteveHopwood [ Sun Oct 11, 2020 10:41 am ]
Post subject:  I found out why fractal indicator must have a shift >=2

FYI, in Empty4 a fractal is formed on the middle of 5 candles.

A high fractal will have closed higher than the preceding and succeeding two. It marks a swing high.

A low fractal will have closed lower than the preceding and succeeding two. It marks a swing low.

In comparison, ZigZag forms on the middle of 3 candles.

:xm: :rocket:
Author:  chiefkeef [ Sun Oct 11, 2020 11:19 am ]
Post subject:  I found out why fractal indicator must have a shift >=2

SteveHopwood ยป Sun Oct 11, 2020 10:41 am wrote:FYI, in Empty4 a fractal is formed on the middle of 5 candles.

A high fractal will have closed higher than the preceding and succeeding two. It marks a swing high.

A low fractal will have closed lower than the preceding and succeeding two. It marks a swing low.

In comparison, ZigZag forms on the middle of 3 candles.

:xm: :rocket:
OHHHHHH

I think this has something to do with my code not working, thanks.
Author:  SteveHopwood [ Sun Oct 11, 2020 9:30 pm ]
Post subject:  I found out why fractal indicator must have a shift >=2

This is driving me nuts.

I have coded Fractal detection hundreds of times. I wanted to post the code here. Yet somehow it all appears to have disappeared. :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg:

Your best interests are served by working this stuff out for yourself. Fact is though, I love it when I see someone getting their hands dirty by grovelling under the hood of Empty4.

Sing out if you get hopelessly stuck and I will help you out. It could help someone else out as well.

:xm: :rocket:
All times are UTC Page 1 of 1