[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 53
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
Something seems to be clearing up.... Here's the situation: the global variable double Delete_Level is declared. In the body of the if statement, a new value is assigned to it:
And when leaving the body, the global value of Delete_Level does not change. Question: how can I change the value of global variable Delete_Level when I exit the body of if statement?
Sorry, but could you take it easy?) Help me understand the error in
The fact that there will NEVER be a perfect equality - this is the real world, the real world, in which there are some uncertainties and tolerances for this or that process, operation etc. Learn the "basics"... :-P It couldn't be simpler. Do as I recommended and tell me if the condition works, will it work? I'm interested in it myself. Thank you.
Something seems to be clearing up.... Here's the situation: the global variable double Delete_Level is declared. In the body of the if statement, a new value is assigned to it:
And when leaving the body, the global value of Delete_Level does not change. Question: how can I change the value of global variable Delete_Level when I exit the body of if statement?
How does it not change? Of course it changes. Print the code and look at the Log tab, with F12 - step-by-step test in visualisation mode.
what is the date as you and MQL understand it ?
How come it doesn't change? Of course, it changes.
It goes like this. For example, in my EA, I first declare a global variable int Orders, and then in case a pending order is placed, the value of int Orders should change as shown below:
But this will not change in Orders. Every time we get a message that "Order is set. Orders=1"
It goes like this. For example, in an EA, I first declare a global variable int orders and then in case a pending order is placed, the value of int orders should change as shown below:
But there is no change in orders. Every time I get a message that "Order is placed. Orders=1"
You don't need a global variable, but a local variable of the start function. So, please try
You don't need a global variable there, but a local variable for the start function. So try
Isn't it the same in my example? How is it different? Except that I didn't add a start function.
Isn't it the same in my example? How is it different? Except that I didn't add a start function.
You should try my example.
You try my version.
But I don't see the difference to try. Please tell me what I did wrong.