And this code should be put into the function and used 4 times instead of copying the code. The fractals in Fr0 should be zeroed, so that they don't take part in the next pass.
Why go through fractals at every iteration? Isn't it easier to do it once and then analyse it later? Besides, the comparison should converge to a triangle, not to a square (there is no sense in comparing fractal 1 and 2 twice, and then 2 and 1). I did it a little differently - the indicator is sequentially looking for divergence from 0 pips and above until it finds four levels. I did not limit the distance between the levels:
Why go through fractals at every iteration? Isn't it easier to do it once and then analyse it later? Besides, the comparison should converge to a triangle, not to a square (there is no sense in comparing fractal 1 and 2 twice, and then 2 and 1). I did it a little differently - the indicator is sequentially looking for divergence from 0 pips and above until it finds four levels. I did not limit the distance between the levels:
Great! The speed is totally different... :)
May I also save the values of received levels in the buffers of the indicator? In order to process them later from Expert Advisor.
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.
Why go through fractals at every iteration? Isn't it easier to do it once and then analyse it later? Besides, the comparison should converge to a triangle, not to a square (there is no sense in comparing fractal 1 and 2 twice, and then 2 and 1). I did it a little differently - the indicator is sequentially looking for divergence from 0 pips and above until it finds four levels. I did not limit the distance between the levels:
Why go through fractals at every iteration? Isn't it easier to do it once and then analyse it later? Besides, the comparison should converge to a triangle, not to a square (there is no sense in comparing fractal 1 and 2 twice, and then 2 and 1). I did it a little differently - the indicator is sequentially looking for divergence from 0 pips and above until it finds four levels. I did not limit the distance between the levels:
Great! The speed is totally different... :)
May I also save the values of received levels in the buffers of the indicator? In order to process them later from Expert Advisor.
I am going to make an expert myself. I have some ideas. But maybe someone has more interesting ideas? I'll make one and post it in Code Base.
I am going to make an expert myself. I have some ideas. But maybe someone has more interesting ideas? I will make and post them in Code Base.
You may try to add it in this way:
if (period == 0) {period = WindowBarsPerChart();}
And display somewhere on the screen the number of bars to calculate...
if (period == 0) {period = WindowBarsPerChart();}
И выводить где-нибудь на экране количество баров для расчета...
That's not what I meant :)
Ideas about the Expert Advisor. It is clear that there is a lot more to add to the indicator itself
Идеи есть, сделайте его в виде функции, логику индюка имею в виду, сможете?
it's already in the form of functions...