Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1703

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
Yes, as long as no swaps are accrued.
and even without swaps it is incorrect
for (all) the price of the common position is not as given in the code.
and even without swaps is wrong
for (all) the price of the common position is not as given in the code.
i wonder what is wrong ?
but think about it ?
volume BUY 1 lot, SELL also...where is the total position ?
what if BUY 2, SELL 1 ?
but think about it ?
volume BUY 1 lot, SELL also...where is the total position ?
how about BUY 2, SELL 1 ?
(1 buy-0.500+1 sell-0.200)/2=0.350
1 buy on 1 sell gives an average price of 0. More accurately he does not give it at all :-) it's like the positions are closed, they are just gone
and you will also surprise the "human" with the result after you fold
1 buy on 1 sell gives an average price of 0. In fact it doesn't give it at all :-) it's like positions are closed, they just aren't there
and you will also surprise the "man" a lot with the result after you refill
Once again, read carefully! The man wants an average price.
Think before you rattle
and don't post buggy code
Think before you rattle
and don't publish buggy code
Hello.
Can you tell me what's wrong with the code? When compiling, row - 2, column - 5 gives an error.
Hello.
Can you tell me what's wrong with the code. When compiling row - 2, column - 5 gives an error.
There is no problem in the second line.
TimeCurrent() is needed here.
If a function has an int attribute, for example
int start()
{}
it should return IntegerOrExpression;
What is the point of this code, what is its purpose? What do you want to achieve? To check the ObjectCreate() function? Take an example from the help.