Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 528
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
Just like that.
Thank you, just what I need!
Good afternoon!
Could you please advise on this issue?
I place a pending order:
And then I try to make a trailing stop on it after it is opened:
After its opening the order becomes OP_BUY? What is the trick, why trailing does not work in this case?
Good afternoon!
Could you please advise on this issue?
I place a pending order:
And then I try to make a trailing stop on it after it is opened:
After its opening the order becomes OP_BUY? What is the trick, why trailing does not work in this case?
Good afternoon!
Could you please advise on this issue?
I place a pending order:
And then I try to make a trailing stop on it after it is opened:
After its opening the order becomes OP_BUY? What is the trick, why trailing does not work in this case?
I asked the wrong question, sorry. Taken out of context.
Especially to test trailing code, trades open, but trailing does not work, no matter how I turned it, deadlocked(
I asked the wrong question, sorry. Taken out of context.
Especially to test trailing code, trades open, but trailing does not work, no matter how I turned it, deadlocked(
Answered your question above.
Thank you very much, it helped!
You still have problems there.
The loop is forward, it should be reverse - forward will skip positions after one of them closes on the trawl
There is no check for minimum stop distance (StopLevel) - there will be modification errors if the stop is closer to the price than the minimum allowed distance (don't forget about floating spread)
Maybe something else - looked diagonally - in passing, since you have already been told.
ZS. Looked again:
this is the kind of check that lacks the very point of checking with normalisation, as you have normalised both values and when you check, the result is not normalised again.
You need to check the normalized difference of the two double values. You are comparing two normalized values.
You still have problems there.
The loop is forward; it must be reverse - with a forward loop positions will be skipped after one of them closes on the trawl
There is no check for minimum stop distance (StopLevel) - there will be modification errors if the stop is closer to the price than the minimum allowed distance (don't forget about floating spread)
Maybe something else - looked diagonally - in passing, since you have already been told.
ZS. Looked again:
this is the kind of check that lacks the very point of checking with normalisation, as you have normalised both values and when you check, the result is not normalised again.
You should check the normalized difference of two double-values. You are comparing two normalized values.
Like this?
the size of local variables is too large (more than 512 kb)
What does the error mean?I have a function with two objects:
One of the classes has a structure with more than 4000 fields (mostly enums).
What to do with this error?