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
In any expression, make it a rule to end the string with the form elements first, and only then write the body.
For example, if you use an if statement, put an opening parenthesis and a closing parenthesis. If you put an opening curly bracket, place a closing one below it. When you write function, say, NormalizeDouble, put (,Digits); and then before the comma, write what you want to round. This way you will not make mistakes. And with time your eye will get used to it and you will immediately see these small details. If I can't find the error right away I cut out the independent parts of the code and compile it, the error is probably not in this part (if it is in two places), then I paste it back in. If some function is used and needs to be checked, cut out its contents and so on.
Thank you (I copied Kim's function wrong).
Now I corrected it - it says "ending bracket expected
there should be one more bracket after return(False); in the last function
Try to initially put a set of parentheses on a new line, and then enter what you need in them. And if several functions are nested in a "matryoshka", do not be lazy to indent each internal function by a couple of spaces and then there will be no more "missing" brackets :)
Fixed it - still something is wrong.
Could someone please just write me how it would be correct to call these two Kim functions and if there are no orders, to open an order.
Fixed it - still something is wrong.
Could someone please just write me how it would be correct to call these two Kim's functions and if there are no orders - open an order.
Parameters should be passed to the function, they are described in the function description
you should pass these parameters to the user function when calling it from start()
parameters must be passed to the function, they are described in the function description
you must pass these parameters to the user function when calling it from the start() function
I don't need those parameters. I only need
2. Check for any position on the current chart symbol
ExistPositions(NULL);
But how to call this parameter correctly?
I don't need these parameters. I only need
2. To check availability of any position on current chart instrument
ExistPositions(NULL);
But how to call this parameter correctly?
I don't need these parameters. I only need
2. Check for any position on the current chart symbol
ExistPositions(NULL);
But how to call this parameter correctly?
Call it without parameters :
if(!ExistPositions()){// no open positions
if(!ExistOrders()){// no pending
I can't read it, my MetaEditor doesn't support the Russian encoding
I can't, MetaEditor doesn't support Russian encoding
Search his thread: https://www.mql5.com/ru/forum/107476, it's all there. From page 10 onwards, I think.