Questions from Beginners MQL5 MT5 MetaTrader 5 - page 653
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
Where does this message pop up? What exactly are you trying to do?
This is no longer a fractal
the lower fractal, the low of the previous candle should be higher than the fractal
if low is higher than fractal, high is even higher
Screenshots from MetaTrader platform
EURUSD, M5, 2016.10.26
MetaQuotes Software Corp., MetaTrader 5, Demo
It is in theMQL5 Strategy Tester Agent test solution application, what should I do to make it work? enter my nickname in the last tab and that's it?
Read what a fractal is
Can this condition be fulfilled?isFractalDn =i
Read what a fractal is
You'd better reread what you need to find.
isFractalDn = i
We should find that the high of the previous candle from the lower fractal is equal to the low of the lower fractal
it cannot be so because
the low of the lower fractal, both preceding candlesticks have the low higher than the low of the fractal
isFractalDn = i
This is wrong. isFractalDn() (if it is written correctly of course) should return the number of the first lower fractal candle.
And the first fractal should be looked for not earlier than on the 2nd candle. According to the mila.com conditions it should be searched till the 10th candle.
I think I understand what misled you. The visibility area i. Here is one area of visibility:
{
ExtMapBuffer3[i]=High[i+1];
}
Here is another:
int isFractalDn()
{
for(int i=0; i != 10; i++)
{
if(iFractals(NULL, 0, MODE_LOWER, i)!= NULL) return(i);
}
return(-1);
}
In this case - the scope is within the for loop.
This is wrong. isFractalDn() (if it is written correctly, of course) should return the number of the first lower fractal candle.
And the first fractal should be looked for not earlier than on the 2nd candle. According to the mila.com conditions it should be searched till the 10th candle.
I think I understand what misled you. The visibility area i. Here is one area of visibility:
{
ExtMapBuffer3[i]=High[i+1];
}
Here is another:
int isFractalDn()
{
for(int i=0; i != 10; i++)
{
if(iFractals(NULL, 0, MODE_LOWER, i)!= NULL) return(i);
}
return(-1);
}
In this case - the scope is within the for loop.
If high is searched in a different cycle then why ?
They didn't let us see the whole indicator, but it's definitely in the other one.
Apparently I misunderstood (
If otherwise:
The bar number of the lower fractal is known
From it look for the first high corresponding to the low of the known fractal in the loop