[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 222
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
Hi all.
I have a script that closes all available orders.
I don't understand three lines in it:
If it's not difficult, please translate it into Russian for a beginner.
I studied the tutorial, but I did not come across such long logical expressions.
The script I am attaching. Thank you.
Let me try to "translate" the first entry for you:
"If at least one of the expressions 1. or 2. is true, then ... "
1.the order instrument is the same as the chart instrument and the external variable OnlyThisSymbol has the value true
2.The OnlyThisSymbol external variable has a value equal to false.
Now, the meaning of this entry:
There is an enumeration of orders to be closed by positions with different filters. This record is a filter by instrument. If you set the value of the onlyThisSymbol external variable, you can choose whether you want to close orders by chart symbols only, or orders by any symbols.
Not exactly. The point is that the Experts variable already has int type, hence type conversion should take place BEFORE assigning a value to it, i.e. the compiler
* took out of the box a value of type double (it has no name in your program, and is written simply to some address known to the compiler in the main memory or in the register of CPU)
* made all necessary changes to the value of the above variable and wrote a new value (of int type!) into Experts variable,
* assigned this value (of int! type) to the variable New_Experts. They have the same type, so it's just a matter of transferring a value from one memory location to another.
P.S. It's great to see that there are people who comprehend their deeds in such detail. In fact, no kidding. Keep in touch.
Good day... Dealing with your last and penultimate messages I'm stumped. In particular (your message from the previous answer): "Then when we take a value out of the box, it is of the double type, but if we give the command to write the result into a variable of the int type, the compiler automatically takes all the necessary actions to put the value into a new box." And your message from the last answer: "The point is that the Experts variable already has the int type... Didn't we convert it to type double the moment we "put" it into a GV-variable box?
Thanks in advance for the answer
Can you advise me, friends? Does MQL4 allow setting the Account Balance value programmatically, and not only in the initial conditions of the tester?
I will explain why I need it, just to make the question clear. I want the Expert Advisor to change the Account Balance size as a variable during optimization.
Good afternoon.
I am trying to create an indicator to display Sl and Tp on the chart based on (H-L)/2, it does not work - it just draws by the close of the bar, what is the problem?
As the basis was taken by an indicator ATR.
Comrades I can't understand why CSV files are not being created, everything was working before.
What is the error number?
what is the error number?
no error number... just not creating files, looking for ALPARI\tester\files\
Well, look in the other one.