[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 294
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
I have never worked with DLL. Would you happen to have a ready code?
Although, there is nothing particularly difficult, just a simple substitution of one file for another.
In order to make a DLL you need to program in a language other than MQL4. Some people write in C/C++. I wrote it in Delphi. All in all, it depends on your own needs.
When the DLL is ready, it is connected to the Expert Advisor as well as another library of MQL4. After that you can call the functions described in the DLL.
I haven't done this kind of function, although if you look at it, there's nothing particularly complicated there - just a dumb replacement of one file with another.
Dear, does Igor Kim have a function which returns the opening price of the last open position https://forum.mql4.com/ru/38949/page5#434239
If it's not difficult, please write a function that returns the opening price of the first open position. I thought it would be enough in the line
To replace "<" with ">" but the result will not work.Hello.
Please advise how to implement this function if at all possible.
Order 1 and TP is set accordingly. A pending order 2 is placed at the same time with the order. How to delete the pending when the TP of order 1 has triggered.
Hello.
Please advise how to implement this function if at all possible.
Order 1 and TP is set accordingly. A pending order 2 is placed at the same time with the order. How to delete the pending when the TP of order 1 has triggered.
By calling the OrderDelete() trading function
What needs to be changed to make the trailing stop work in five digits? Increasing it 10 times does not help.
Most likely the problem is the non-normalised prices.
The problem is likely to be non-normalised prices.
Dear, does Igor Kim have a function which returns the opening price of the last open position https://forum.mql4.com/ru/38949/page5#434239
If it's not difficult, please write a function that returns the opening price of the first open position. I thought it would be enough in the line
Replace "<" with ">" but the result does not work.And to clarify? To choose the first one out of the open ones (those that are in the market) or the ones that are already closed? And if the first position was opened three years ago? Is it to be selected?
What's all this for anyway?
Hello Comrades!
Can you please advise whether I can determine whether the previous order was closed at Take Profit or not? If yes, how should I implement it programmatically?
I would be grateful for a link if this question has already been discussed