![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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...