[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 575
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
to Armen
This means that the functions have not been used in the EA. Write something like
Vinin, thank you very much for your answer. But i honestly don't understand why ask1,ask2,ask3 are assigned values 1,-1,-1. what do they mean. I'm a beginner, I don't understand it too well. I will be very grateful to you).
They are assigned values that will never be equal to the price.
Can I withdraw excess funds, e.g. to the safe deposit box, if they exceed the initial deposit during the EA operation and leave them within the initial deposit without closing the open positions?
On MT5 you can see. Using TesterWithdrawal() to simulate profit withdrawal
This is not possible on MT4
Hello!
I am writing an indicator that counts the number of points the price moved up and down during one tick.
What's wrong with the code and where the error is, please advise!
Thanks in advance!
Please tell me if it is possible to withdraw excessive funds, for example, to the safe, if they exceed the initial deposit during the work of the Expert Advisor and leave them within the initial deposit, without closing the open positions?
Only allow the Expert Advisor to trade with a deposit equal to the initial deposit.
Remember the size of the initial deposit and before each opening of a position check its lot. If the deal volume exceeds the permissible value - reduce the lot or release the funds.
Hello!
I am writing an indicator that counts the number of points the price moved up and down during one tick.
What's wrong with the code and where the error is, please advise!
Thanks in advance!
Why is there so much stuff?
Remember the price of the previous tick. When a new tick arrives, count the price difference divided by the point and remember that price again as the price of the previous tick.
Why is that so much stuff?
Remember the price of the last tick. With the arrival of a new tick, count the price difference divided by the point and remember that price again as the price of the previous tick.
Gentlemen programmers!
Does the priority (and associativity) of MQL4 operations correspond to C?
I don't want to abuse parentheses, but the priority of operations is not mentionedanywhere in the documentation.
This is not an idle question. MQL4 is positioned as a C-like language. The key word here is DEFINITELY. If such a thing as a complete calculation of logical expressions is just a departure from the C standard, then visibility of variables defined in a block outside this block is a serious error in programming canons.
Who knows how far the imagination of MQL4 developers could go :).
Only allow the Expert Advisor to trade with a deposit equal to the initial deposit.
Remember the size of the initial deposit and before each opening of a position check its lot. If the volume of the trade exceeds the permissible size - reduce the lot or release the funds.