Thanks for this tutorial and the help you gave me previously. That was really helpful.
By the way, I assume the Close All here works on all trades, regardless of the magic number as it imitates MT5 close all.
How can we restrict the Close All to one magic number or maybe if that is difficult, to a certain text in Comment.
Latest posts made by zentex74
-
RE: Close All MT5 trades quicklyposted in Tutorials by Users
-
RE: MT5 Close All Fastposted in Questions & Answers
@jstap Great! I made a mistake previously, thanks a lot, it works now.
However, it doesnt move to the next step, i.e proceed with the next block. I have tested a few times and can confirm thsi is the case.
Anything I need happening around that time, I have to put it in prarellel, so this is a workaround, but it is not perfect and may not work all the time, especially if the trades must be closed first. Example is in the image below or in this prijecthttps://fxdreema.com/shared/ds59n1pEc
Is there a way I can ensure it moves to the next block after the custom block is executed?

-
RE: MT5 Close All Fastposted in Questions & Answers
@jstap Yes, I am using mt5.
May I ask where the tick section is? As in the image below, I see Settings ( I assume it is the tick you mention). I can see the Global Variables and Custom functions. Sorry, I have not used Custom Block before.

-
RE: MT5 Close All Fastposted in Questions & Answers
Wow, this is great. Thanks!
I have never used custom block before.
When trying to compile, I got this message, I wonder what I did wrong.



-
MT5 Close All Fastposted in Questions & Answers
MT5 has the Close All function which is fast, using "async" mode, faster than the fxdreema Close Position option.
I am sure it requires custom code.I have seen some links, but not sure how to implement it in fxdreema. I got the error message that CTrade is unidentified but I am not sure how to resolve this since thsi si not a variable but a class.
This is a simple project I use to test.
https://fxdreema.com/shared/A1rkQPnwd
This is the discussion on the aync mode.
https://www.mql5.com/en/forum/457067Any suggestion on how to implement it in fxdreema? I am not familiar with mql4 or 5.
Thanks in advance
-
RE: MT5 Very simple news filterposted in Tutorials by Users
Sorry for the late reply, thanks for your response
-
RE: MT5 Very simple news filterposted in Tutorials by Users
@chrisbe Hi is this still valid?

I dont understand the custom mql code and others which are not connected to anything. What do they do and what are their functions, seems like this link is no longer valid?