[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 409
![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
Hello.
Can you please tell me if it's possible to create an array or its analog from variables in some way? My variant is given below, but it is, of course, erroneous.
Thank you in advance.
Hello.
Can you please tell me if it's possible to create an array or its counterpart from variables in some way? My variant is given below, but it is, of course, erroneous.
Thank you in advance.
element by element
NOrd[0]=F1; NOrd[1]=F2;....
element by element
NOrd[0]=F1; NOrd[1]=F2;....
Please explain the principle of flags action.
If Condition1 is fulfilled, then Val_max=true and we go on to check Condition2 (on subsequent ticks Condition1 is no longer checked until we forcefully declare that Val_max=false). Or at every tick Condition1 will be checked to make sure it is true and if the condition is not fulfilled, then Val_max=false ?
If Condition2 is true, then Cl_dn=true and we proceed to check Condition3 (on next ticks Condition2 will not be checked until we forcefully declare Cl_dn=false). Or at every tick Condition1 and Condition2 will be checked for validity and if they are not met, then Val_max=false and Cl_dn=false ?
If Condition3 is fulfilled and Cl_dn==true, then Val_min=true and pass on
How to check that if Condition1 is fulfilled, then do not check it anymore and at next ticks check Condition2 and so on?
element by element
NOrd[0]=F1; NOrd[1]=F2;....
No, I tried it both ways - the compiler generates errors.
And so, if NOrd[] is not an indicator and is not located in a global block:
I just have them in fact red (and there are 6 of them) and after each test I have to colour the graph manually (that's how I am...). I don't want to rewrite it.
Maybe there is a standard command?
Don't judge strictly, I'm just learning...
No, I tried it both ways - the compiler generates errors.
Read
first set the size of the array
buf[2]; .
assign
buf[0]=x1; buf[1]=x2;
It will take you 2 minutes toread it.
Otherwise, if NOrd[] is not an indicator: