Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1270
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
Good day to all!
I have started studying mql5. I started by studying how orders are opened. I have understood that the code for opening an order is written in a separate include file. I have now mastered this code and its final variant for trading. I was amazed that the order opening in mql4 is much easier and simpler than in mql5.
I would like to ask if I am sure I already have the file with the code to open the order and I don't need to write this code. If such a file is available somewhere, then I only need to connect it to my EA and set the values of the order parameters I need? If there is such a file, where and how it should be found, and what its name is.
Thank you.
If I understand you correctly, it is #include <Trade\Trade.mqh>.
If I understand you correctly, it is #include <Trade\Trade.mqh>.
Thank you very much for this valuable information.
Do I correctly understand that I don't have to look for these files anywhere, but just write in the right place of the code #include <Trade\Trade.mqh> and this file will automatically join my Expert Advisor and it will access it when needed?
Thank you very much for the valuable information.
Do I correctly understand that I don't have to look for these files anywhere, but just write in the right place of the code #include <Trade\Trade.mqh> and this file will automatically join my EA and the EA will access it when needed?
Yes! You don't have to look for it, it's already there.
You can look at the code file(Moving Averages.mq5 or MACD Sample.mq5), from the terminal.
Yes! You don't have to look for it, it's already there.
Thank you very much for the valuable information.
If I understood correctly the file you have sent me is called CLASS This file is intended for opening an order. I think there are a lot of CLASSES and each one has its own purpose, for example to close the order, to modify the order, to output some information, etc.
Q: Where can I find a list of all classes with their detailed descriptions?
Thank you again for your help.
Thank you very much for the valuable information.
If I understand correctly the file you sent me is called CLASS This file is for opening an order. I think there are a lot of CLASSES and each one has its own specific purpose, e.g. to close an order, to modify an order, to output some information, etc.
Q: Where can I find a list of all classes with their detailed descriptions?
Thank you again for your help.
Thank you very much for the valuable information. I will now start digesting it, i.e. assimilating ..... as far as my mental capacity is concerned.
Good day to all!
I have started studying mql5. I started by studying how orders are opened. I have understood that the code for opening an order is written in a separate include file. I have now mastered this code and its final variant for trading. I was amazed that the order opening in mql4 is much easier and simpler than in mql5.
I would like to ask if I am sure I already have the file with the code to open the order and I don't need to write this code. If such a file is available somewhere, then I only need to connect it to my EA and set the values of the order parameters I need? If there is such a file, where and how it should be found, and what its name is.
Thank you.
I have a different approach to writing an EA for me. I just need to correct it for myself.
-( why reinvent the wheel when it's already been created )
----------------------------------------------------------------------
this is where we pick up the Indicators
and here we set them so that indicators open correctly according to the signal
To help me get a better understanding of MQL5, I'd be very grateful if you could translate this simple code from MQL4 into MQL5 code
Thanks for the help.
numPosOr= 4;
numStepCount= 1;
iK = (numPosOr - numStepCount) / numPosOr;
Why does this calculation makeiK = 0?
numPosOr= 4;
numStepCount= 1;
iK = (numPosOr - numStepCount) / numPosOr;
Why does this calculation makeiK = 0?
Please give me the whole code