[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 448
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
Can you tell me please, #property stacksize 3 - what does it mean, I declare 0 or 1000, or -1000, but the result does not change?
Example code, if you can, for understanding.
What is the result?
What's the result?
Alert("Итог = ",x);
This is not the result
It's not a result.
#property stacksize X
- expect it to, I don't understand how it works, why is it needed at all?
I've poked and prodded, it's no use.
or - https://docs.mql4.com/ru/basis/preprosessor/compilation
By the way, there's also a list of about twenty Special Parameters, no questions about them long ago?
P.S. My point is that if you use help and rightly formulate a question (like, why do we need this stack at all?), then you won't even need an answer. Especially if you google the technical literature on the way...
It's very simple :))) F1 in ME:
or - https://docs.mql4.com/ru/basis/preprosessor/compilation
By the way, there's also a list of about twenty Special Parameters, no questions about them long ago?
P.S. My point is that if you use help and rightly formulate a question (like, why do we need this stack at all?), then you won't even need an answer. Especially if you google the technical literature on the way...
Now this question - using fractals, how to compare the previous fractal with a newly formed one (e.g. lower ones)? (I just described the condition of occurrence through iHigh, iLow through counters, without using the function itself).
Here's a piece of code:
if (iLow(NULL,0,5) >= iLow(NULL,0,4) && iLow(NULL,0,4) >= iLow(NULL,0,3) && //фрактал вниз (обнаружение)
iLow(NULL,0,3) < iLow(NULL,0,2) && iLow(NULL,0,2) <= iLow(NULL,0,1) ) {
if (z == 0){
f1= iLow(NULL,0,3); // присваиваем переменной значение фрактала
z=1;}
else
if (z == 1) {
if (f1 > iLow(NULL,0,3)) { // сравниваем новый фрактал с предыдущим, если предыдущий больше, тогда переменной присваевается значение нового фрактала
f1=iLow(NULL,0,3);
z=0;}
else if (f1 < iLow(NULL,0,3)) {OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet);} // если новый фрактал больше предыдущего закрываем сделку
}
}
It closes if the newly formed fractal is higher than the previous one...
But it closes just after the fractal appears.
PS... Well, I must have made a mistake somewhere with describing a fractal... (I just put a standard fractal from the terminal on top...)
Now this question - using fractals, how to compare the previous fractal with the newly formed one (e.g. lower ones)? (I just described the condition of occurrence through iHigh, iLow through counters, without using the function itself).
Here's a piece of code:
.........................................................
It closes if the newly formed fractal is higher than the previous one...
But it closes just after the fractal appears.
PS... Well, I must have made a mistake somewhere with describing a fractal... (I just put a standard fractal from the terminal on top...)
Well, then look for fractals by iFractals (); Otherwise you're looking for extremes...
And a line for an example?
The forum is slowing down, I get it all, let's just say I'm not looking for easy ways :(
And a line for example?
1. Find the fractal closest to the zero bar, store its time and price level in int and double variables