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
Please check "Dist" value
check? How? I copied the code (the part with the distance variable) from the book of MQL4:
see also: https://book.mql4.com/trading/orderclose
1. Make sure that initial value of "Dist" is correct
2. Insert alert to check value of "Dist" in the beginning of cycle: "Alert ( " Dist = ", Dist ) ; "
is there any way to select the right order without using the variable "dist"?
Answer 1
Signs ">" and "<" in the samples are in different directions for the same expression
See line 22 of closeorder.mq4 and line 6 of previous sample
I think in the second sample it must be a mistake...what do you think?
Answer 2
Depends on meaning of "the right order"
I need to select (and close) the order OP_BUY that has the lower openprice and this selection must start when there are 2 orders OP_BUY...the same thing for OP_SELL...is this so difficult to implement? I'm so confused...
ordinary work
so what am I doing wrong? How would you select the OP_BUY with the lower openprice? I tried even without "Dist"...
What's the intention with the line " if (Price < Price), Digits) " ??
Looks nuts to me.
CB
What's the intention with the line " if (Price < Price), Digits) " ??
Looks nuts to me.
not only thats.
how could this compile errorfree, with a missing left bracket.
i am tired of this code-grabbing-null-insight-full-idiots-and-full-wasicus-and-not-want-to-pay-a-cent-asking-for-help-guys
all humans make mistakes
if (a_human_made_a_mistake==true)
{human_learn_next_lesson();}
else
{reincarnate_as_plant=true;}
{human_learn_next_lesson();}
If only we had MT5. Then we could do human->learnNextLesson() instead.
If only we had MT5. Then we could do human->learnNextLesson() instead.
i have never been familiar with OOP.
i hate that. too much hassle about nothing.
in such cases, i refuse to learn... ;-)
this->repeat->this->repeat->this->repeat->this->repeat->this->repeat->this->repeat->this->repeat->this;