qjol:
iFractals returns the high from a bar if the high of 2 bars on both sides lower & vise versa for the low
thanx for the info, but what is the shift then? if the shift from the current bar or is the number of bars before the current bar within a highest fractal is found? (like iHighest) because if is the shift from the current bar how you can set a static number without knowing if that bar is a fractal...?
shift is the number of the bar that you want the fractal value for . . . if there is a fractal on that bar it gives you the high if you specify
MODE_UPPER or the low of the bar if you specify MODE_LOWER
this will give me a trendline from the previously fractal...can you give me a hint how to loop lets say 40 bars back and only consider the highest in the case of up trendeline and lower for the down trendline fractal?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
iFractals returns the high from a bar if the high of 2 bars on both sides lower & vise versa for the low
thanx for the info, but what is the shift then? if the shift from the current bar or is the number of bars before the current bar within a highest fractal is found? (like iHighest) because if is the shift from the current bar how you can set a static number without knowing if that bar is a fractal...?
ok guys thanx a lot for your help, please have a look at this
this will give me a trendline from the previously fractal...can you give me a hint how to loop lets say 40 bars back and only consider the highest in the case of up trendeline and lower for the down trendline fractal?